4.6. Renesas

4.6.1. R-IN32M3

  1. Prerequisites

    Hardware:

    • R-IN32M3-EC Evaluation Board,

    • adviceLUNA Emulator

    Software:

    • microVIEW-PLUS debugger,

    • GNU compiler (Sourcery G++ Lite for ARM EABI)

  2. Verify TCP/IP evaluation sample from Renesas works fine.

  3. Download from official Renesas site following files:
    • r-in32m3_tcpip_evaluation.zip

    • r-in32m3_samplesoft.zip.

  4. 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 = ???;
    
  5. Import project Workspace/RIN32M3/EcMasterDemo into Eclipse IDE.

    Hardcoded parameters for the demo can be changed using DEMO_PARAMETERS definition.

  6. Upload Workspace/RIN32M3/EcMasterDemo/Release/EcMasterDemo.bin with debugger and run

4.6.2. R-IN32M4

  1. Prerequisites

    Hardware:

    • SBEV-RIN32M4CL3 Evaluation Board

    Software:

  2. Build EcMasterDemo

    1. 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.

    2. Start IAR Workbench and import EcMasterDemo project into workspace

    3. 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 = ???;
      
    4. Import project Workspace/RIN32M3/EcMasterDemo into project.

    5. Build the project and upload it to the board

  1. 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

  1. 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)

  2. 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 = ???;
    
  3. 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.

See also