Skip to Content

Renesas EtherKit

January 23, 2026 by
Renesas EtherKit
Lingkail Sdn Bhd, cheahwei.leow@lingkail.com

Table of Content

Overview

Prerequisites

Hardware

Software Installation

​Modbus Poll

​RZ/N FSP Smart Configurator

​J-Link

​EtherKit BSP

Procedures

​EtherKit as Modbus Slave, read using Modbus Poll Software

EtherKit as Modbus Master, reading from MOXA

EtherKit as Modbus Master, reading from WAGO

Others

​MSH_CMD_EXPORT

Coding

modbus_master.c to read from MOXA (FC04): 192.168.101.100

modbus_master.c to read from WAGO (FC03): 192.168.137.x

Reference

Known Issues

​Project Building stuck at "linking..."

​Damaged EtherKit

​

Overview

1st part: to follow EtherKit Modbus-TCP/IP Example from GitHub.

sdk-bsp-rzn2l-etherkit/projects/etherkit_modbus_tcpip at master · RT-Thread-Studio/sdk-bsp-rzn2l-etherkit

Using Modbus Poll (Master) to read from EtherKit (slave). 

2nd part: to use EtherKit as Master, and read from slave. 

MOXA (FC04) 

WAGO (FC03) 

Prerequisites

Hardware

Before you begin, please ensure you have the following hardware:

  • Renesas EtherKit
  • ARM Emulator
  • J-Tag Connect Card
  • 2x10 Ribbon Cable
  • USB Type B cable
  • USB Type C cable
  • Ethernet Cable
  • AC/DC Adapter


Software Installation

1.Modbus Poll

You can click link below to download Modbus Poll software: 

Download

2.RZ/N FSP Smart Configurator

Renesas RZ/N Flexible Software Package (FSP) v2.2.0 with RZ/N Smart Configurator: 

Releases · renesas/rzn-fsp

3.J-Link

J-Link Software: 

SEGGER - The Embedded Experts - Downloads - J-Link / J-Trace

4.EtherKit BSP

Renesas EtherKit Board Support Package at SDK Manager of RT-Thread Studios: 


Procedures

EtherKit as Modbus Slave, read using Modbus Poll Software. 

  1. Create a New Project at RT-Thread Studios, choose Example etherkit_modbus_tcpip

  2. Configure EtherKit FSP
  3. 2.1. Update location of FSP Configurator


  4. 2.2. Select sc_v2025-01_fsp_v2.2.0

  5. Follow the FSP Configuration Instructions and RT-Thread Settings Configuration steps at https://github.com/RT-Thread-Studio/sdk-bsp-rzn2l-etherkit/tree/master/projects/etherkit_modbus_tcpip

  6. Go to Debug Configuration. This is to “update” to using new version of J-Link (older versions may not support EtherKit. Need to copy the whole J-Link folder [C: > Program Files > SEGGER > Jlink_V586] into C:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/SEGGER/J-Link. Then change the Actual executable. If successful, the Executable path will look like in the image below. ${debugger_install_path}/$$(jlink_debugger_relative_path)

  7. Note: If you don’t do this step and is using older versions of J-Link and it does not support EtherKit, you might encounter this issue when you try to flash download the program: 

  8. Connect the EtherKit to your PC as follows: 

  9. 1. USB Type-B cable (PC to ARM Emulator)
  10. 2.JTAG Connect Card (from ARM Emulator)
  11.    2x10 ribbon cable (from JTAG Connect Card to JTAG of EtherKit)
  12. 3. Power the EtherKit (9 to 24V DC).

  13. PC – [USB TypeB] – ARM Emulator – [JTAG Connect Card] – [20-pin Ribbon Cable] – EtherKit <- POWER

  14. Build the project and flash download

  15. You can verify that the Etherkit’s able to be programmed by changing the LED blinking delay time.


  16. Now plug in ethernet cable to ETH0 of EtherKit, into your PC. 
  17. Also, plug in USB type-C to USB-TTL of EtherKit, into your PC. 
  18. I set the Ethernet port’s IP to 192.168.137.10


  19. On the RT-Thread Studios, open a terminal, press reset on the Ethernet and type ifconfig.


  20. Now, I am assigning an IP address (192.168.137.11) to the EtherKit, in the same subnet as my Ethernet Port with IP 192.168.137.10, and 255.255.255.0 is the net mask.

  21. Follow the steps on using modbus_tcp_test and Modbus Poll Software at
  22. https://github.com/RT-Thread-Studio/sdk-bsp-rzn2l-etherkit/tree/master/projects/etherkit_modbus_tcpip 
  23. End result:


EtherKit as Modbus Master, reading from MOXA

  1. 2
  2. Now we are using the coding from the EtherKit as modbus TCP slave example.
  3. (Because it has already the coding to for network initialization [ifconfig, setting IP for the EtherKit])
  4. But we are adding a modbus_master.c file (coding for EtherKit as master).
  5. I add it under board > ports > modbus > tcp_modbus.
  6. Coding can be found at Coding section.
  7. Copy the code from read from MOXA FC04.
  8. Note that we are using Function Code 04, to read input registers of MOXA.
  9. Then build, and flash.

  10. The EtherKit is plugged into a switch, which assigns an IP of 192.168.101.39.
  11. Also, try to ping the MOXA at 192.168.101.100.

  12. Now run modbus_master_start