Setting Flash ID Bytes With R8C/M16C in IAR EW
Up to IAR
When using the IAR tools to build project for the R8C/M16C line of devices, it's very straighforward to set the flash protection ID bytes used to prevent access to the device using the serial interface. In the IAR tools, the ID byte locations are contained in the linker command file, *.xcl. Typically when creating an IAR project, the linker command file is created automatically as part of the project structure and can be accessed thru the IAR IDE. The picture below shows just such a project as an example and were to edit the ID bytes. Note that once the flash ID bytes are set, the device will now become locked to those values and they (those values) will be required to unlock the device for future programming and debugging. Enjoy!

