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

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!

Tobias

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.

Regards.

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
# CKGR_MOR
monitor writeu32 0xFFFFFC20 = 0x00000601
monitor sleep 10
# CKGR_PLLR
monitor writeu32 0xFFFFFC2C = 0x00480a0e
monitor sleep 10
# PMC_MCKR
monitor writeu32 0xFFFFFC30 = 0x00000007
monitor sleep 10
# PMC_IER
monitor writeu32 0xFFFFFF60 = 0x00480100
monitor sleep 100
# Set JTAG speed in khz
monitor speed 12000
load
break main
continue

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!

Tobias


[ 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