Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



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

Renesas

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