Is there a tutorial somewhere on how to program the RA6M1 flash with E2 lite programmer from e2 studio? I am currently programming it in debug mode but when the hardware is turned off and on the program does not seem to still be in it. What settings do I need to do in the e2 studio to make it program the flash and do I need to set the MD pin high or low? It is currently pulled high. Thanks.
MD pins needs to be pulled high to operate in single-chip mode:
For standalone operation you can program the hex-file into the flash using RFP with the E2-Lite. Depending on your exact hardware implementation of the debug interface / connector, you can program over JTAG, SWD, or SCI using the E2-Lite. Using SCI will require the ability to pull MD low.
Refer to the document, "E2 Emulator, E2 Emulator Lite Additional Document for User's Manual (Notes on Connection of RA Devices)" for more info.
Thanks for your reply. What is RFP? So do I need to change the C/C++ Build Settings under project Properties, in GNU Arm Cross Create Flash image from Motorola S-record to Intel hex? As you said I need a hex file not an elf file? Also do I need to tick Section -j.text or section -j.data? My hardware interface is SWD.
Renesas Flash Programmer GUI supports both of the (Motorola) S-Record and Intel Hex file formats.
www.renesas.com/.../renesas-flash-programmer-programming-gui
Thanks, can you program the flash in e2 studio?
E2studio can indeed download code into the flash of the MCU. This may however include components to support debugging. It is not clear to me how e2studio handles this, but the document "E2 Emulator, E2 Emulator Lite Additional Document for User's Manual (Notes on Connection of RA Devices)" says this:
Which I interpret to mean that something like RFP should be used to program the device when debugging is not used.
If you want only to program the device (no debugging) please use Renesas Flash Programmer. You can use E2 Lite to program it.