AnsweredAssumed Answered

KBOOT ROM never executes application, bootloops

Question asked by Andrew Kroll on Sep 14, 2017
Latest reply on Sep 26, 2017 by Andrew Kroll

As the title says, just reenters ROM after timeout.

 

MKE16F512VLH16

K1.5.1 ROM

 

BCA:

0x3c0: 6b 63 66 67 ff ff ff ff ff ff ff ff ff ff ff ff
0x3d0: ff ff e8 03 ff ff ff ff ff ff ff ff ff ff ff ff
0x3e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x3f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

 

Flash configuration field:

0x400: ff ff ff ff ff ff ff ff ff ff ff ff de fb ff ff

                                            ^^

                                           ||

                                      boot from rom

 

If I disable ROM and only enable with BOOT0 pin, the application runs as expected.

 

Two quesions to help resolve the issue:

Is there something the ROM configs that is causing a fault in my start up code? I can post my start up code if required.

Does Zeroing RAM at start up of app cause the fault?

 

 

Outcomes