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

ARM Cortex-M3 vs.M0 Debugging (Can't Monitor Task States) Using IAR C-SPY

Posted by cheuschkel on December 5, 2016

**Apologies for the misleading title - the processors in question are a Cortex-M4 vs. Cortex-M3. **

I'm using the OpenRTOS IAR plugin to debug a project that uses both a dual-core Cortex-M4 (LPC 43xx) and M3 (LPC17xx), both running FreeRTOS. On the M4 I can monitor task states using the plug-in. However, on the M3 I don't see the same information. I did not notice anything noticeable differences in the FreeRTOS configuration files that would prevent me from monitoring the task states. Am I missing something? Is this a difference between FreeRTOS versions?

The plug-in details are as follows: OpenRTOSPlugin.dll v3.0.0 by WITTENSTEIN high integrity systems (both processors)

The IAR EW version is as follows: IAR Embedded Workbench IDE - ARM 7.80.1 (both processors)

The FreeRTOS versions are as follow: Cortex-M4 tskKERNELVERSIONNUMBER "V8.0.1" Cortex-M3 tskKERNELVERSIONNUMBER "V9.0.0"

Thanks, Cory H.


ARM Cortex-M3 vs.M0 Debugging (Can't Monitor Task States) Using IAR C-SPY

Posted by rtel on December 6, 2016

Are you using the M3 and M0 cores separately - one at a time - or is this a dual core device and you are debugging both at once? If separately then I am not aware of any reason why it would work with one and not the other. If together at the same time then I don't think the plug-in will support that.


ARM Cortex-M3 vs.M0 Debugging (Can't Monitor Task States) Using IAR C-SPY

Posted by cheuschkel on December 6, 2016

They are used seperately and not a dual-core device (even though the M4 is a dual-core device, we are only running 1 core). Each processor has its own IAR project and seperate set of application code. I have tested running them both at the same time and independently (essentially with the M4 powered down and just running the M3 project) and experience the issue. Please see the attached image that demonstrates the missing Task State column.

Attachments

Capture.PNG (9067 bytes)

ARM Cortex-M3 vs.M0 Debugging (Can't Monitor Task States) Using IAR C-SPY

Posted by rtel on December 6, 2016

Perhaps it is something to do with a difference in the FreeRTOSConfig.h files - but I'm guessing.

The plug-in determines the FreeRTOSConfig.h settings by attempting to read various different values from the task control block when it first connects. Values that are excluded from the build because of a FreeRTOSConfig.h setting return an error when the plug-in tries to read them, and the error is visible in the IAR output window. The errors will only show once per debug session, the first time the plug-in is used for that session, as once the plug-in knows the values don't exist it won't attempt reading them again.

Do you see these error messages when you start a debug session - are there any differences in the messages output between the working and non-working projects?


ARM Cortex-M3 vs.M0 Debugging (Can't Monitor Task States) Using IAR C-SPY

Posted by cheuschkel on December 6, 2016

I did not see any error messages pertaining to my problem in the Debug Log window unfortunately. Attached is the output from running both debug sessions. I can include the FreeRTOSConfig files for your convenience, but I will have to create a few different posts.

Attachments


ARM Cortex-M3 vs.M0 Debugging (Can't Monitor Task States) Using IAR C-SPY

Posted by cheuschkel on December 6, 2016

Non-working FreeRTOSConfig.h (M3) attached.

Attachments

FreeRTOSConfig.h (9680 bytes)

ARM Cortex-M3 vs.M0 Debugging (Can't Monitor Task States) Using IAR C-SPY

Posted by cheuschkel on December 6, 2016

Working FreeRTOSConfig (M4) attached.

Attachments

FreeRTOSConfig.h (7801 bytes)

ARM Cortex-M3 vs.M0 Debugging (Can't Monitor Task States) Using IAR C-SPY

Posted by rtel on December 6, 2016

I think you will have to contact WITTENSTEIN high integrity systems, who maintain the plug-in, to see if they can ascertain the cause.


ARM Cortex-M3 vs.M0 Debugging (Can't Monitor Task States) Using IAR C-SPY

Posted by cheuschkel on December 6, 2016

Thanks for taking the time to look into this. I'll contact them and see what they think of the problem.


[ 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