Skip to content

khlee1025/newratek

Repository files navigation

Newratek NRC7394 W5500 Bridge Firmware

This repository contains the NRC7394 W5500 bridge firmware build notes and the generated firmware binaries for nodes 1-3.

Firmware Binaries

The latest ready-to-submit files are in:

w5500_bridge_fw_v2/
Node Wi-Fi mode Network mode Static IP Netmask Gateway
1 AP Bridge 192.100.114.1 255.255.0.0 192.100.114.1
2 STA Bridge 192.100.114.2 255.255.0.0 192.100.114.1
3 STA Bridge 192.100.114.3 255.255.0.0 192.100.114.1

Binary files:

w5500_bridge_fw_v2/node01_ap_192.100.114.1_bridge.bin
w5500_bridge_fw_v2/node02_sta_192.100.114.2_bridge_ping_ap_5s.bin
w5500_bridge_fw_v2/node03_sta_192.100.114.3_bridge_ping_ap_5s.bin

The same binaries are also packaged as:

w5500_bridge_fw_v2.zip

w5500_bridge_fw/ and w5500_bridge_fw.zip are the earlier build without the STA-to-AP ping addition.

Source Changes

The firmware is based on the NRC7394 SDK W5500 bridge example:

nrc7394_sdk/package/sdk/apps/sample_w5500_eth

Important changes:

  • wifi_user_config.h uses FW_NODE_ID to select AP for node 1 and STA for nodes 2-20.
  • wifi_user_config.h sets bridge mode, static IP, netmask 255.255.0.0, and gateway 192.100.114.1.
  • Makefile passes FW_NODE_ID into the build as a compiler define.
  • w5500_example_main.c starts a 5-packet, 1-second interval ping to the AP gateway after STA connection succeeds.
  • Docker build support is included in docker/; copy those two files into the SDK clone root before building.

Build Examples

From nrc7394_sdk after copying docker/Dockerfile.sdk and docker/docker-compose.yml into that directory:

docker compose up -d --build sdk-build
docker compose exec sdk-build bash
cd /work/package
make select target=nrc7394.sdk.release APP_NAME=sample_w5500_eth BUILD_NAME=w5500_bridge_ping_node01 FW_NODE_ID=1
make

Use FW_NODE_ID=2, FW_NODE_ID=3, and so on for other nodes.

Note

If a board already has NVS Wi-Fi settings stored, those runtime values may override the compiled defaults. Clear/reset NVS before validating static IP settings if the board was previously configured.

About

NRC7394 W5500 bridge firmware submission

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors