4.6. Renesas
4.6.1. R-IN32M3
- Prerequisites
Hardware:
R-IN32M3-EC Evaluation Board,
adviceLUNA Emulator
Software:
microVIEW-PLUS debugger,
GNU compiler (Sourcery G++ Lite for ARM EABI)
Verify TCP/IP evaluation sample from Renesas works fine.
- Download from official Renesas site following files:
r-in32m3_tcpip_evaluation.zip
r-in32m3_samplesoft.zip
.
- Create ENI file for EtherCAT configuration.
xxd.exe
is capable of converting ENI files to a C file as array, e.g.xxd.exe -i eni.xml ENI.c
Replace ENI.c file with generated one. File should be manually modified to look like:
unsigned char MasterENI_xml_data[] = { ... }; unsigned int MasterENI_xml_data_size = ???;
- Import project
Workspace/RIN32M3/EcMasterDemo
into Eclipse IDE. Hardcoded parameters for the demo can be changed using DEMO_PARAMETERS definition.
- Import project
Upload
Workspace/RIN32M3/EcMasterDemo/Release/EcMasterDemo.bin
with debugger and run
See also
4.6.2. R-IN32M4
- Prerequisites
Hardware:
SBEV-RIN32M4CL3 Evaluation Board
Software:
IAR Workbench 9.10.1,
“R-IN32M4 series R-IN32M4-CL3 Driver/Middleware Release Note - Sample Code” package
Build EcMasterDemo
Install “R-IN32M4 series R-IN32M4-CL3 Driver/Middleware Release Note - Sample Code” and set the path the environment variable MIDDLEWARE_LOC to the same folder.
Start IAR Workbench and import EcMasterDemo project into workspace
- Create ENI file for EtherCAT configuration.
xxd.exe
is capable of converting ENI files to a C file as array, e.g.xxd.exe -i eni.xml MasterENI.c
Replace MasterENI.c file with generated one. File should be manually modified to look like:
unsigned char MasterENI_xml_data[] = { ... }; unsigned int MasterENI_xml_data_size = ???;
Import project
Workspace/RIN32M3/EcMasterDemo
into project.Build the project and upload it to the board
See also
Troubleshouting
If after upload a program into serial FLASH the application has been trapped in HardFault_Handler_rom() reset the board with reset button.
4.6.3. RG/G1e
- Prerequisites
Hardware:
RZ/G1E Starter Kit board,
J-Link PRO emulator
Software:
SEGGER J-Link debugger,
GNU compiler (
gcc-arm-none-eabi-4_8-2013q4-20131204-win32.exe
)
- Create ENI file for EtherCAT configuration.
xxd.exe
is capable of converting ENI files to a C file as array, e.g.xxd.exe -i eni.xml ENI.c
Replace ENI.c file with generated one. File should be manually modified to look like:
unsigned char MasterENI_xml_data[] = { ... }; unsigned int MasterENI_xml_data_size = ???;
- In command line window change folder to
Workspace/RZGNoOS/EcMasterDemo
. Run make. Hardcoded parameters for the demo can be changed using DEMO_PARAMETERS definition. DEMO_PARAMETERS is hardcoded for 20 seconds demo duration.
- In command line window change folder to
See also
RZ/G1E NonOS-PF User’s Manual