Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
User20876
Level 1
Level 1
Hi, I set xmc1302 BMI to User Productive Mode, can I reset it back?
0 Likes
4 Replies
SudheeshK
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted
Hello,

"It is possible to change the BMI value in this mode. This is done by embedding the provided “Request BMI
installation routine (new BMI)” in the user code. The “Request BMI installation” routine is provided inside the
XMC1000 ROM at location 0x00000108. The application software can run this routine to change the BMI value
under user-defined conditions. For example, the change of BMI value can be triggered from an external
interrupt or from GPIO pin latch values."

Please see more details from the following application note: https://www.infineon.com/dgdl/Infineon-ApplicationNote_XMC1000_Microcontroller_BootModeHandling-AN-v....

Thanks and Regards,
Sudheesh
0 Likes
User20876
Level 1
Level 1
Thanks Sudheesh,
If I did not embed "Request BMI installation routine" in my code, that mean the chip can not be erase, is that true?
0 Likes
SudheeshK
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted
Hello,

Unfortunately, it is not possible to change BMI from UPM to another value, if the "Request BMI installation routine" is not embedded in the code.
As mentioned in our application note, User Productive mode should only be used once the user has confirmed that their code is FULLY TESTED.
This mode provides MEMORY PROTECTION by not allowing external tools such as the debugger, read/write access to the flash memory.

Thanks and Regards,
Sudheesh
0 Likes
VinGan
Level 2
Level 2
10 replies posted 5 replies posted 10 sign-ins

Hi,

If we make a "Request BMI installation routine" to put the code into "User Productive Mode" , will the code go to locked mode and continue executing normally?
Ideally we want to lock the firmware from within the firmware and unlock it using another mode using a pin etc. 
Would this be possible?
Kind regards

VG

0 Likes