Post Go back to editing

How do I debug my application which is not booting properly

Hi,

  My application code works fine while running from emulator, but it fails when booted from the flash. How do I debug it.

Parents
  • Another tip is to edit your boot-kernel .asm such that the first executed instruction is JUMP(PC,0);.  This way, the part will load the boot-kernel and then just sit there executing the same instruction over and over again.  After you reset the board and it starts booting, you connect with the emulator (be sure session is configured to NOT reset upon connection), change that instruction to a NOP;in the disassembly window, and then step/run through the rest of the boot sequence.

Reply
  • Another tip is to edit your boot-kernel .asm such that the first executed instruction is JUMP(PC,0);.  This way, the part will load the boot-kernel and then just sit there executing the same instruction over and over again.  After you reset the board and it starts booting, you connect with the emulator (be sure session is configured to NOT reset upon connection), change that instruction to a NOP;in the disassembly window, and then step/run through the rest of the boot sequence.

Children
No Data