Use IAR 8.2 to open the projects STM32L4R9I_EVAL\Applications\USB_Device\MSC_Standalone
Down and debug then IAR show warning on verify error .
If i use the ST-Link Utility to erase chip and then download then it work .
How come ?
Surely, that is a question for IAR ?
The fact that it works with ST-Link Utility shows that it is nothing to do with the ST bits (the chip itself, ST-Link, etc).
I program and verify the USBD_MSC.bin use the ST-link and it work .
The IAR 8.2 verify error at the address 0x08002000 .
Dump the data at the address 0x08002000 is 0xFFFFFFFF , looks like IAR 8.2 just erased and did not program .
If IAR 8.2 had problem but why erase chip before use IAR8.2 will work at the first time.
Does anyone use the IAR 8.2 with the STM32L4 without problem ?
Again, why don't you ask IAR ?
In Keil I had to select dual bank mode for the flash algorithm for the L4R9-DISCO to program, with the default settings I saw verify errors.
Retrieving data ...