Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

Task running at port PIC18F8680 is unstable

Posted by Nobody/Anonymous on September 23, 2005
Hello!
I have a projects running at port pic18f8860, but it is unstable!
It has four task in current version, one for USART receive/transmitter, and one for CAN BUS receive/transmiter, and other for system status of running check.The system is running fine when it is just start, but the system will be crashed when it is running longer. The USART receive/transmiter task running on queue and other task is also! The configCPU_CLOCK_HZ was be setting to 40Mhz, and configTICK_RATE_HZ is 1000.
what is happen!
pls help me!

RE: Task running at port PIC18F8680 is unstable

Posted by Nobody/Anonymous on September 23, 2005
This isn't really enough information.

The first thing to always check is your stack usage. Are any of the tasks running out of stack.

How much RAM does a PIC18F8680 have? I cannot find any reference to this device.

RE: Task running at port PIC18F8680 is unstab

Posted by Nobody/Anonymous on September 23, 2005
thank's!
Yes! I already check the stack usage, i can't find a problem.
The other simple task also may be crash when it running a longer timer, that is same blow:
static SysCheck(void)
{
for(;;)
{
uFlag |= 0x01;
WritePort(uFlag, 0x07);
portDelayTask(1000);
uFlag &= ~0x01;
WritePort(uFlag, 0x07);
portDealyTask(1000);
}
}
in here, WritePort(...) is a marco define which is used to write a byte to port, i used portENTER_CRITICAL/portEXIT_CRITICAL to protected port operation in PIC18F8680. uFlag is a global variable.

btw! PIC18F8680 have 3092byte ram and 64K program memory, and 1 USART, 1 CAN node and other. The buad rate of UASRT is being set to 9600.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner