Quality RTOS & Embedded Software

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


SAM-ICE AT91SAM7X-EK FreeRTOS Debug problem

Posted by Tonau on March 10, 2009
Hello @ all,

I tried to debug the newest version of FreeRTOS with the GNU Compiler Toolchain. The Toolchain is configured as described in James P. Lynchs "Using Open Source Tools for AT91SAM7S Cross Development" Revision C. Changes are made to the GDB commands, since the tutorial is for the SAM7S, like described on the yargato homepage.
The problem is, that eclipse isn't possible to start the debugsession. It hangs at about 27%. I also changed the CFFLAG to - O0 to disable optimisation.
The rest of the toolchain works fine, compilation is ok and loading the program into flash via SAM-BA also works fine and the FreeRTOS port seems to work well.
Has anyone the correct settings for debug via SAM-ICE with eclipse?

Thanks a lot!


RE: SAM-ICE AT91SAM7X-EK FreeRTOS Debug probl

Posted by Richard on March 10, 2009
Can SAM-ICE be used with this setup as is? I think you can buy some GDB interfaces from Segger.


RE: SAM-ICE AT91SAM7X-EK FreeRTOS Debug problem

Posted by Tonau on March 10, 2009
Hi I testet again a little with this debug commands and the debug starts but doesn't stop at main and normal debug operations are not possible.
# Listening for commands on this PC's tcp port 2331
target remote localhost:2331
# Set gdb server to little endian
monitor endian little
# Set JTAG speed to 30 kHz
monitor speed 30
# Reset the chip to get to a known state.
monitor reset 8
monitor sleep 10
# Disable the watchdog and setup the PLL
# WDT_MR, disable watchdog
monitor writeu32 0xFFFFFD44 = 0x00008000
monitor writeu32 0xFFFFFC20 = 0x00000601
monitor sleep 10
monitor writeu32 0xFFFFFC2C = 0x00480a0e
monitor sleep 10
monitor writeu32 0xFFFFFC30 = 0x00000007
monitor sleep 10
monitor writeu32 0xFFFFFF60 = 0x00480100
monitor sleep 100
# Set JTAG speed in khz
monitor speed 12000
break main

Sometimes the connection closes down when i pause the debugging and sometimes it hangs and the step commands are not possible.
I used the same configuration with the test project from yargato and all worked fine.
Is there a problem in debuging FreeRTOS in RAM, because flash debugging seems not to work with SAM-ICE, together with eclipse, without an extra licence.

Best Regards!


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

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


FreeRTOS and other embedded software careers at AWS.

Latest News

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.

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

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