Hello,
thanks for you fast response first of all!
My statement “Chip_IAP_SetBootFlashBank()" somehow only validates but does not invalidate” was wrong.
I guess the missing invalidation of Bank A was due to the Debugger of Segger Embedded Studio preferring Bank A ..
So “Chip_IAP_SetBootFlashBank()" does correctly validate the requested bank and does invalidate the other one
After further investigations I found out, that I need to do a soft-reset AND also hard-reset to get the bootloader starting the requested Bank
Szenario: starting-point is an Application, started from Bank A, which sets Bank B with Chip_IAP_SetBootFlashBank(..B).
When reading the 4byte-signature at 0x01C is see that Bank A was correctly invalidated and Bank B was correctly validated.
..but when I perform a soft-reset with “NVIC_SystemReset()” the bootloader starts Bank A unexpectedly.
And only after performing also a hard-reset after the soft-reset, the bootloader finally starts the requested Bank B.
So after setting the requested Bank, I have to perform a soft-reset and additionally a hard-reset..
So what has to be done using only a soft-reset to get the bootloader starting the requested Bank?
Best regards
Mario Göckel
Von: jeremyzhou <admin@community.nxp.com>
Gesendet: Donnerstag, 23. Mai 2019 04:49
An: Goeckel, Mario (ext) (SHS PV R&D-PE MDGC) <mario.goeckel.ext@siemens-healthineers.com>
Betreff: Re: - Re: LPC4367/LPC4337: IAP-command "Chip_IAP_SetBootFlashBank()" somehow only validates but does not invalidate
NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>
Re: LPC4367/LPC4337: IAP-command "Chip_IAP_SetBootFlashBank()" somehow only validates but does not invalidate
reply from jeremyzhou<https://community.nxp.com/people/jeremyzhou?et=watches.email.thread> in LPC Microcontrollers - View the full discussion<https://community.nxp.com/message/1155270?commentID=1155270&et=watches.email.thread#comment-1155270>