FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [March 2013 Threads] 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|