2007-09-26 02:48 AM
Bootloader on bank1 loads application to bank 0, But applic. can't run
2011-05-17 12:47 AM
Hi all.
My bootloader on bank1 gets application from uart and loads to bank0.And i tried to jump my application with and without soft remap.But my application doesn't run.I have debuged for understanding what is happenning.I listed some problems. 1- First off all when it is on bank1 hardware reset with reset button(I use Keil MCB-STR9) doesn't reset cpu until push to reset button second time.Also watchdog reset can't reset cpu 2- flashBankRemap(0x00, 0x06, 0x80000, 0x0000); // Jump to the user application and execute it appfunction = (ApplicationStartup) 0x0000; appfunction(); After appfunction(), PC loads 00 and on every step into command (debug) PC increase 4 (0-4-8-c....).I would expect PC first loads 0 and than Reset_Handler(in my prog 0x58).In your opinion can that be a problem. In this state soft remap is ok because after reset bootloader doesn't run. 3- appfunction = (ApplicationStartup) 0x80000; appfunction(); If i don't soft remap and just jump to 0x80000, PC loads with 4; it should be error because PC has to be loaded with 0x80000.Isn't it wrong? In application program on bank0 i didn't configure fmi registers. I wait your answers. Regards...