thank you very much for the Link,
We use a bootloader with a UART component as communication channel, so in my project a "Launcher.c" is not generated.
Where can I find the code instead ?
Could you please share the project?
Thank you for sharing the bootloader project.
(1) Please probe VDDD, XRES untill observing the issue and confirm whether there is any glitch/abnormality.
(2) At which stage are you observing the metadata corruption? (in bootloader, while bootloading, in bootloadable, during first run of application, while toggling power/reset continously etc.,)
(3) Remove watch dog resets if enabled in your projects. The device should not be reset during flashwrites which can take as much as 20 mS.
(4) If step 3 does not help, please replace the Bootloader_Exit in your bootloader project with
This does not involve flash writes but will have almost the same result.
thank you for your reply.
We are actually trying to record the Signals VDD and XRES in the case the BT-chip will not start anymore.
So the hardware runs in a continous power-on-off cycle and a uC-test-pin is used for triggering.
I think that the metadata corruption is coused by the bootloader during start-up or powering down (brown out?).
In the apllication there is no code for writing to flash and the app is flashed using the bootloader only one time at production.
Do I understand the Bootloader_Exit function in the right way that the Byte-Flash-Write is done after checking the validation
and immediately before starting the app?
If the app ist started with corrupted metadata (app will not run at the next start), this will give us the possibillity to repair the metadata-row
by storing the data in the host and transferring it to the PSoC via UART.
The problem we have is that the electronic units are allready produced and potted by an epoxy material.
Unfortunately we have the bootloader flash sections fully protected, so there no way to change the bootloader by the app.
We can test a modified bootloder, if it will be an alternative in the future.
I have attached the schematic, maybe this is helpfull.
Thanks and best Regards
BTM_SCHEM_A1.pdf 65.2 K