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-aware Eclipse plug-in problems

Posted by dnadler on July 13, 2017

Hi Guys - This isn't strictly a FreeRTOS problem but a problem with Eclipse debugging. Hope someone can help...

**FreeRTOS task missing or incorrectly shows stack overflow ** FreeRTOS Task Aware Debugger for GDB version 1.0.2 (201702241004) Segger J-Link V6.14 MCUXpresso (Eclipse Neon?) from NXP on a Kinetis K64 (Cortex-M4F). FreeRTOS 9.0.0 (M4F port) and ARM GCC tools of 1Q2017 (not NXP-distributed GCC). Debug build with no GCC optimizations. ~~~

define configUSEPORTOPTIMISEDTASKSELECTION 0 // Note: 1 causes FreeRTOS Eclipse plug-in to crash...
define configTASKRETURNADDRESS 0 // place 0 task return address on stack to help FreeRTOS-aware debugger (GDB unwind thread stack)
define configCHECKFORSTACK_OVERFLOW 2 // FreeRTOS vTaskSwitchContext checks for stack overflow => void vApplicationStackOverflowHook

~~~

When I pause the application in the debugger, sometimes the MainLoop task is missing. When visible MainLoop always erroneously shows stack overflow (verified all OK using uxTaskGetStackHighWaterMark, after I nearly had a heart attack), as shown here:

Any ideas? Thanks! Best Regards, Dave


FreeRTOS-aware Eclipse plug-in problems

Posted by rtel on July 14, 2017

Which plug-in are you using? Probably best to report the problem to the person supplying the plug-in. I suspect either a subtle bug in how the structures are being read, or just an error in how the internal FreeRTOS data structures are being interpreted.


FreeRTOS-aware Eclipse plug-in problems

Posted by dnadler on July 14, 2017

As listed above, "FreeRTOS Task Aware Debugger for GDB version 1.0.2 (201702241004)" I'm not sure where it comes from, but I'll try find out...


FreeRTOS-aware Eclipse plug-in problems

Posted by dnadler on July 14, 2017

OK, this seems to be from NXP. The solution: ~~~

define configUSETRACEFACILITY 1 // without this, FreeRTOS-aware debug task list can miss tasks and show bogus stack overflows

~~~


FreeRTOS-aware Eclipse plug-in problems

Posted by rtel on July 14, 2017

Ah, interesting. I'm not sure why that would be. Did you work that out yourself, or is it documented somewhere.

If it is from NXP then I suspect the plug-in will have come from PEMicro.


[ 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