Dear Guys,
In typical SoC product, the FLASH memory is initially empty after being shipped from factory, in which the data are all "0xFFFF_FFFF".
I am curious how Cortex-M0 deals with the undefined instruction data "0xFFFF_FFFF" after being fetched from empty FLASH, before it is programmed by tools.
Does anyone know that ?
Stevens
Thanks a lot
As the value doesn't map to a "valid" opcode, you'd get an exception due to an Undefined Instruction. Take a look at section B1.5.14 (Fault behavior) of the ARMv6-M Architecture Reference Manual. Or alternatively...
Cortex-M0 Devices Generic User Guide: 2.4. Fault handling
Understood. Thanks a lot, Martin. (^_^)