I have found many tutorials on how to compile and debug a project on the EK-RA2A1 demo board with the e2studio IDE. Even when you create a new project the debugger is set by default. But I haven't found anywhere how to configure the J-Link OB that comes with the EK-RA2A1 as an external tool in e2studio to flash the microcontroller in release mode.
Can anyone tell me how this external tool is configured?
I have already found how to flash the project with J-Link OB as an External Tool in e2studio.
Instead of using the SEGGER software I use "Renesas Flash Programmer" Usage from Comman Line:
What are you really want to do?(JLinkGCBServerCL is GDB server, you need to run GDB somewhere else to work with it.)Do you want to launch debugger without building a project?Then, create a "Debug Only" project with selecting "J-Link ARM" as Debug Hardware.(see e² studio Help "e2 studio User Guide" -> "Debugging Projects" -> "Debug External Load Module")
I am not an expert but I just want to tell you that I can help you with that. Here are the steps to configure the J-Link OB as an external tool in e2studio to flash the microcontroller in release mode:
Open e2studio and select your project in the Project Explorer.
Right-click on your project and select Properties from the context menu.
In the Properties dialog, expand the C/C++ Build category and select Settings.
In the Settings dialog, select the Tool Settings tab and expand the C/C++ Build category.
Click on the J-Link GDB Server option.
In the Command field, enter the path to the J-Link GDB Server executable, which should be located in the e2studio installation directory (e.g. C:\Renesas\e2_studio\Utilities\SEGGER\JLink\JLinkGDBServerCL.exe).
In the Arguments field, enter the following arguments:
Note: Replace [device_name] with the name of the microcontroller you are using (e.g. RA2A1).
Click on the Apply button to save your changes.
Click on the Debug Settings tab and select the J-Link GDB Server option.
In the GDB Server Configurations dialog, click on the New launch configuration button (the green plus sign) to create a new configuration.
In the Configuration Name field, enter a name for your configuration (e.g. Flash).
In the Startup tab, select the Use external tool checkbox and click on the Browse button to select the J-Link GDB Server executable.
Close the GDB Server Configurations dialog and click on the OK button to close the Properties dialog.
Now you should be able to use the J-Link OB as an external tool to flash the microcontroller in release mode. To do this, select the Flash configuration you just created from the Debug Configurations menu, and then click on the Debug button. This will launch the J-Link GDB Server and start the flashing process. MyInsite
I don't want to launch the debug, I just want to run the project. For this, the project has already been previously built in Release mode. Now all that remains is to flash it.
RFP Usage from the Command Line
Thanks Leonardo, but the C/C++ Build category does not exist in the Tool Settings tab.
I have already found how to flash the project with J-Link OB as an External Tool in e2studio with the "Renesas Flash Programmer" Usage from Comman Line.
Another possibility is to use the rfp-cli command without the project file (.rpj):
You could just use J-Link Commander (or the GUI JFlashLite), from the J-Link software and documentation package:
Yes I know. But I am developing the project in the e2studio environment and I need to Flash the microcontroller dozens of times a day. I don't want to change environment every time I have to Flash. Using the J-Link OB as an external e2studio tool when I implement a modification I can build the project by pressing ^B and Flash and Run it by pressing ^R. This way I don't even have to touch the mouse. As I said at the beginning, I do this dozens of times a day and hundreds of times during the development of a project.To use the ^R key I have assigned it as a shortcut to the function "Run Last Launched External Tool"