Note: Tested on Ubuntu 22.04
Note: This page was created during work with the CK-RX65N and the RX65NCloudKit (Blue PCB and Green PCB) and Avnet IoTConnect codebase for them, so the paths and names may be different for other boards/projects.
- Download and install GCCRX toolchain.
Note: if the .run
file throws an error during installation or refuses to install your machine requires some i386 dependencies, fix by installing
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
Note: All the testing was done on 2022/04 version of GCCRX. However, others managed to get it working with 2023/05.
Note: Previous note only relates to CK-RX65N and RX65NCloudKit projects.
-
Download and install e² studio for Linux (2023-07 version was used) Note: Default install path will be
~/.local/share/renesas/e2_studio/
The following options are required for CloudKit development: RX support, and optionally Jlink debugging, terminal, and git support. -
Reboot
Clone and import project (include nested if needed)
Manually add toolchain to e² studio - Help -> Add Renesas Toolchains -> Add -> <path to installed toolchain>
(this needs to be done once per e² studio installation). Note: Default install directory will be in ~/toolchains/
Under ck-rx65n
project add that installed toolchain by right clicking on top directory for every subdirectory (basic-sample, filex, etc...) in C/C++ Project settings -> Toolchain
Under your project, you will need to update the selected toolchain, select the basic-sample
folder and right click and access C/C++ Project settings -> Toolchain
, select the correct toolchain and apply. Most probably, you'll need to do it for the rest of subdirectories under top project folder (netxduo, filex, etc...).
Open basic-sample/basic-sample.scfg
in e² studio.
Maybe You will get a FIT packages pop-up, proceed to update the FIT packages.
IMPORTANT: Down in the opened window there should be "Components" tab. Open it and download any grey (prompted) packages.
Generate code
Build
Most of the problems can be fixed with fixing include paths - Right click failed project top directory (threadx f.e.) -> C/C++ Project Settings -> C/C++ General -> Paths and Symbols -> GNU C -> Add -> Workspace
and provide path to parent directory of missing file.
It's generally a good idea to check if unresolved function/include is actually defined somewhere before doing above.
That will probably be caused of fails in Generate Code
step. Code is generated according to .scfg
files, so it's a good idea to look into it via another text editor or e² studio Smart Configurator (check components tab firstly).
Install dependencies (e² studio fails to enter Debug mode/start GDB server witout this):
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install libusb-1.0-0
sudo apt-get install dotnet-sdk-6.0
Additional Information and ways to flash
Right-click on project basic-sample -> Debug As -> Debug Configurations
.
Choose GDB Hardware Debugging -> basic-sample HardwareDebugging -> Debugger
-> untick Use Remote Target
-> Apply -> Debug
Right-click on project basic-sample -> Debug As -> Debug Configurations
.
In Renesas GDB Hardware Debugging -> basic-sample Hardware Debugging -> Debugger
:
NOTE: This setup is valid just for CK-RX65N and RX65NCloudKit. In GDB Settings Tab:
- Debug Hardware -
E2Lite (RX)
- Target Device -
RSF565NE
- Autostart local GDB Server
In Connection Settings Tab:
- Connection type -
fine
Apply
Debug
When asked if you want to restart server - click yes.
Note: Another way to start debugger is Right Click on your project -> Renesas GDB Hardware Debugging
. This requires previous setup steps to be completed.
-
https://www.renesas.com/eu/en/software-tool/renesas-flash-programmer-programming-gui#overview
-
once you download and unzip RFP head to
docs
directory and readrfp-cli.md
file -
In case e² studio fails to install due to dependencies, click here