I'm came across a strange behavior while debugging various firmware on the STM32L151xD using IAR 6.50.6.
I've found out that flashing a FW with Use Flash Loader checked everything goes smooth. After that, if I try to flash on the same device another FW with Use Flash Loader unchecked, the flashing process goes smooth but I can't debug and IAR shows a series of verify error like
Verify error at address 0x08000000, target byte: 0xD0, byte in file: 0xC8
I know that the flash loader read the application binary image from the host, unpack the image, and write the image to flash memory.
What happens if I check/uncheck on IAR and try to debug?