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

Is it possible FreeRTOS App debugging?

Posted by Colin Cho on March 21, 2013
Hello,

Finally I've got my working application on FreeRTOS V7.4.0 based on STM32 compiled by IAR 6.10.

Now, I'm working with bootloader came from ST IAP example.
So, I want to move my application from 0x0 flash to 0x8003000 flash.

My changes here:
1. Modify IAR icf file: .intvec start: 0x08003000, ROM Start: 0x080030EC, ROM End: not changed.
2. Set the Vector Table base address in main.c, prvSetupHardware() like this: NVIC_SetVectorTable( NVIC_VectTab_FLASH, 0x3000 );

And then I want to Debug with J-Link, however it stopped at vPortStartFirstTask function in portasm.s
vPortStartFirstTask
/* Use the NVIC offset register to locate the stack. */
ldr r0, =0xE000ED08
ldr r0, [r0]
ldr r0, [r0] ---------------------------------------------------------------------------> when I execute this line then board stopped
/* Set the msp back to the start of the stack. */
msr msp, r0
/* Call SVC to start the first task. */
cpsie i
svc 0

So, my question here;
Is it possible to debug flash shifted FreeRTOS in this way? (other run-to-complete debugging is OK, but it's not)

My plan is that if my FreeRTOS app work fine at flash 0x00803000 and then
my bootloader at 0x0 flash jumps to 0x00803000.

Please any comments
thank you

RE: Is it possible FreeRTOS App debugging?

Posted by Colin Cho on March 22, 2013
Hello folks..

I got the answer for my questions.

The answer was already posted in this forum.

https://sourceforge.net/projects/freertos/forums/forum/382005/topic/5407814

It's long discussion for 3 days.
I read this very carefully line by line.
It's really helpful to me that understanding RTOS and interrupt vector table.

Thank you so much dibosco & richardbarry.
I really appreciate your patience and keep this on the forum.

Sorry for my pure English and
thanks again.


[ 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