# FREERTOS+TCP Renesas RA6M4 & KSZ8864 Ethernet switch chip

**URL:** <https://forums.freertos.org/t/freertos-tcp-renesas-ra6m4-ksz8864-ethernet-switch-chip/18742>\
**Category:** Libraries\
**Created:** [December 18, 2023, 11:56am UTC](https://forums.freertos.org/t/freertos-tcp-renesas-ra6m4-ksz8864-ethernet-switch-chip/18742 "2023-12-18T11:56:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torpedod](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@Torpedod](https://forums.freertos.org/u/Torpedod)\
**Post date:** [December 18, 2023, 11:56am UTC](https://forums.freertos.org/t/freertos-tcp-renesas-ra6m4-ksz8864-ethernet-switch-chip/18742/1 "2023-12-18T11:56:52Z")

</div>

Hi people,  
I have a custom board based on RA6M4 runinng FREERTOS + TCP with KSZ8864 Ethernet switch chip. I have implemented the driver but i cant get an ip address to ping, its simply not working. Pls help

---

<div class="post-metadata">

**Author:** ![NikhilKamath](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/nikhilkamath/32/2934_2.png) [@NikhilKamath](https://forums.freertos.org/u/NikhilKamath)\
**Post date:** [December 18, 2023, 2:59pm UTC](https://forums.freertos.org/t/freertos-tcp-renesas-ra6m4-ksz8864-ethernet-switch-chip/18742/2 "2023-12-18T14:59:06Z")

</div>

Hello - welcome to FreeRTOS community.

Can you provide us more details so that we can help - which version of FreeRTOS+TCP, do you have wireshark capture? if not can you capture the packets.

---

<div class="post-metadata">

**Author:** ![Torpedod](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@Torpedod](https://forums.freertos.org/u/Torpedod)\
**Post date:** [December 18, 2023, 3:16pm UTC](https://forums.freertos.org/t/freertos-tcp-renesas-ra6m4-ksz8864-ethernet-switch-chip/18742/3 "2023-12-18T15:16:13Z")

</div>

Thanks, i’ll get a capture and share.

---

<div class="post-metadata">

**Author:** ![RAc](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rac/32/1389_2.png) [@RAc](https://forums.freertos.org/u/RAc)\
**Post date:** [December 18, 2023, 3:26pm UTC](https://forums.freertos.org/t/freertos-tcp-renesas-ra6m4-ksz8864-ethernet-switch-chip/18742/4 "2023-12-18T15:26:43Z")

</div>

If it is a custom board, it may be very hard to pinpoint the problem because we may be facing hardware design issues.

The usual suspects to look for are the PHY address and the choice of MII - RMII in the PHY driver, those must match the hardware design. If that looks ok, set some breakpoints in the PHY interface logic to determine if you can communicate at all with the PHY. If that looks ok, the next step, as @NikhilKamath suggested, is to see whether your target is able to read packets from the network at all or send packets to the network. If that appears to work, it is probably a configuration error on your target.

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [December 18, 2023, 3:38pm UTC](https://forums.freertos.org/t/freertos-tcp-renesas-ra6m4-ksz8864-ethernet-switch-chip/18742/5 "2023-12-18T15:38:15Z")

</div>

FreeRTOS+TCP does have [a driver](https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/source/portable/NetworkInterface/ksz8851snl/NetworkInterface.c) for ksz8851, but it can not be used on any platform.

The EMAC is accessed using SPI and the SPI code is dependent on the CPU that you use. The driver was developed for an Atmel platform.
