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




Loading

FreeRTOS Hangs witn PIC18f4550

Posted by https://www.google.com/accounts on October 12, 2012
Hi there,
kindly i need your help running my 1st FreeRTOS program, i used the rtosdemo1 in PIC18_MPLAB demo folder.
i just created my own task to toggle a LED on/off.

after the scheduler starts, the debugger stuck at portRESTORE_CONTEXT(); in void vPortYield( void ) i don't know what is the reason.

there is no error in compilation.

while in the same function "void vPortYield( void )", i gets the warning or error about "portSAVE_CONTEXT( portINTERRUPTS_UNCHANGED );"
the message says "unexpected token: _asm"

here is my configuration:
1- MPLAB X IDE v1.41
2- PICC18 Compiler v 3.43
3- FreeRTOS v7.1.0


RE: FreeRTOS Hangs witn PIC18f4550

Posted by MEdwards on October 12, 2012
The FreeRTOS web site does warn that PIC18 is a bad target for an RTOS. Its architecture does not lend itself, and its compiler assumes single threading.

I suspect your problem is more related to the PIC18 chip architecture not being identical to the base PIC18 chip the port was written on. Changed compiler versions will also give you problems no dount.

RE: FreeRTOS Hangs witn PIC18f4550

Posted by https://www.google.com/accounts on October 12, 2012
would you please send me the link to that article?

i wonder how there is a port for PIC18 in the downloadable source if the PIC18 is not a good target !!

RE: FreeRTOS Hangs witn PIC18f4550

Posted by Richard on October 13, 2012
Just because it is not a good target does not stop people from using it. Consider the hardware stack that has to be swapped in and out as part of a task context, the segmented memory that stacks can't easily cross, and the fact that the compiler itself is not re-entrant, and you begin to see the problems.

You will see on this page: http://www.freertos.org/RTOS_ports.html that the PIC18 is listed, but only in brackets (although it is not made clear on the page why, admittedly).

The PIC18 section of this page: http://www.freertos.org/a00090.html#MICROCHIP starts by saying it is "less than ideal".

Regards.


[ 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