secondery bootloader(SBL) debug

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

secondery bootloader(SBL) debug

1,942 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lshl on Sun Sep 06 00:33:55 MST 2015
So, I've seen a lot of posts in the matter, but non have referred to this specific problem...

I have a simple bootloader and the freertos_blinky.
The blinky is compiled to be at 0x2000.
When loaded and run it's all good, the bootloader jumps, and the blinky runs.
But, when I'm trying to debug the blinky, it just founds itself in some undefined flash address...

I attached all relevant projects.

Thanks

Original Attachment has been moved to: bl.zip

标签 (1)
0 项奖励
回复
3 回复数

1,725 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Mon Sep 07 02:38:06 MST 2015
Usually I'm not reloading symbols  :((

If bootloader and application are flashed already it should be no problem to debug the bootloader until 'Instruction Stepping' is jumping to the first application address (=ResetISR of application).

To debug the application I'm setting a breakpoint at ResetISR of application and starting a debug session.
Now debugger should stop at ResetISR, which should be the same address bootloader was jumping to before  :)
0 项奖励
回复

1,725 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lshl on Mon Sep 07 01:24:45 MST 2015
Sorry about that, it appears I attached the blinky without the 0x2000 flash offset.
But I actually managed to debug using the recipe described here.
Thanks for your help (for some reason it didn't work yesterday - oh well, white robe syndrome).
0 项奖励
回复

1,725 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sun Sep 06 08:03:23 MST 2015
I'm not sure what you are doing in detail  :~

After converting your blinky project to the actual LPCXpresso version flash start address is 0x0   :quest:

Could be useful to post a useable project...
0 项奖励
回复