I have a strange behavior, my program is working well when i use it as normal.
When i use bootloader and put my program with an offset in flash, the __WFI make nothing !
All is correct, i checked PCON & SCR but when __WFI is executed the processor don't enter in sleep mode.
My debug probe doesn't disconnect, current stay in full range and my program goes on ...
Is someone have hints ?
Because i don't understand and don't know where search for correct this.
Thanks a lot, Philippe.
PS : The bootloader is used for firmware flash from USB Key and is working (many used before this try)
Sorry for my english.