XMC1400 Boot with erased Flash

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User10696
Level 4
Level 4
First solution authored
Can anyone tell me what happens if the Flash has been erased and the BMI ist set to ASC_BSLTO mode and the controller is reset?

The controller will start in ASC mode and wait for the host to send the header. If this does not happen the controller will try to start from flash. But if this has been erased it will receive an invalid address for the reset vector.
What happens next? Does it reset and start the sequence again or go into some kind of halt or lockout and do nothing? I cannot find any information in the reference manual.

This situation can happen if something goes wrong during a software update.
0 Likes
1 Solution
SudheeshK
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted
Hello,

If BMI is set to ASC_BSLTO mode and the flash is erased, then a hardfault will be generated and execution will jump to the exception handler in SRAM.
You can find this information from the Reference manual. Refer the below screenshots for a better understanding.
4900.attach

4901.attach

Please feel free to ask if you need any clarifications.

Thanks and Regards,
Sudheesh

View solution in original post

0 Likes
1 Reply
SudheeshK
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted
Hello,

If BMI is set to ASC_BSLTO mode and the flash is erased, then a hardfault will be generated and execution will jump to the exception handler in SRAM.
You can find this information from the Reference manual. Refer the below screenshots for a better understanding.
4900.attach

4901.attach

Please feel free to ask if you need any clarifications.

Thanks and Regards,
Sudheesh
0 Likes