User`s manual
RX600 & RX200 Series Simple Flash API for RX
R01AN0544EU0250 Rev.2.50 Page 12 of 33
March 4, 2014
3. Usage Notes
3.1 Debugging within HEW
Using the E1, E20 and J-Link, you are allowed to debug while erasing and programming the on board flash memory
and data flash memory. Care should be taken to make sure that the flash block holding the user program is not erased
unless the user has some way of programming new code while executing in RAM.
You cannot use FDT or RFP programming software to view previously written data to flash memory when an ID code
has not been set. The reason for this is that RX600 and RX200 Series devices will automatically erase all flash memory
when entering boot mode as a built-in security feature. If an ID code is set then access to boot mode will be allowed
without first erasing flash memory. Please see the ‘ID Code Protection (Boot Mode)’ section of your MCU’s hardware
manual for more information.
If you attempt to disconnect and then re-connect to your system with HEW or e
2
studio, the entire flash memory will be
erased upon re-connecting with default debugger settings. In order to preserve the flash values you will need to specify
which flash blocks you want to be overwritten, rather than erased. How to do this is shown below.
In HEW:
This is done in the ‘Configuration Properties’ window underneath the ‘Internal flash memory overwrite’ tab. Place a
check in the boxes next to the flash blocks you desire to be overwritten instead of being erased. A screenshot of the
window is below.