Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


Task disappear in PIC24

Posted by ccliu on August 17, 2013
I am developing software for microchip microcontroller PIC24 (PIC24EP) and we choose FreeRTOS as OS.

I find that after few hours running of our program, a task which is blocked forever. After tracking the problem, I find that it is waiting a message in a queue but the another task which should send message to the queue disappear.

The situation is exactly as same as following post.


Originally, I am using same FreeRTOSConfig.h from Demo. After reading above post, I tried to adjust configKERNEL_INTERRUPT_PRIORITY to higher priority level. However, it does not help.

I wonder if anyone can help on it.

RE: Task disappear in PIC24

Posted by Richard on August 17, 2013
Leave configKERNEL_INTERRUPT_PRIORITY at 1. Do you have any other interrupts in your system? If so, do they use any FreeRTOS API functions? If so, what priority are they running at, and can you post their code here?


RE: Task disappear in PIC24

Posted by ccliu on August 17, 2013
Yes. There are a number of interrupts in this system. For uart's interrupt, they use FreeRTOS API (ISR type) for sending message to wake up waiting tasks. I am on the road and I may post them once backed home. BTW, what priority I should set for interrupt with using FreeRTOS APIs and without using APIs?

RE: Task disappear in PIC24

Posted by Dave on August 17, 2013
According to the documentation on a PIC24 any task using the FreeRTOS API must run with the same priority as the kernel.

RE: Task disappear in PIC24

Posted by Richard Damon on August 17, 2013
Small correction to DaveDoors

any INTERRUPT using the FreeRTOS API must run with the same priority as the kernel

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

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists