secondery bootloader(SBL) debug

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

secondery bootloader(SBL) debug

1,960件の閲覧回数
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,743件の閲覧回数
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,743件の閲覧回数
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,743件の閲覧回数
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 件の賞賛
返信