Wiznet / WIZ550S2E

Serial to Ethernet Module based on W5500 & Cortex-M0
https://docs.wiznet.io/Product/S2E-Module/WIZ550S2E
11 stars 10 forks source link

MAC Address change will make the module report MAC Error. #10

Closed ohmsai closed 6 years ago

ohmsai commented 7 years ago

FW is written for default MAC address provided by WIZNET, if you change the MAC Address, you will need to change the FW to take care of this.

/* Check MAC Address */ check_mac_address();

This call - check_mac_address() will need to modified.

See suggested change below,, 0xAA, 0xBB, 0xCC should be reflective of your mac address prefix assigned to you. code fragment that needs to changed shown below

if(s2e_packet.network_info_common.mac[0] != 0xaa || s2e_packet.network_info_common.mac[1] != 0xBB || s2e_packet.network_info_common.mac[2] != 0xCC) { printf("Input MAC ? ");

//================================ Make a change to the ConfigData.c

void set_S2E_Packet_to_factory_value() { // ... // enter your default MAC ID you want to reset for your module. s2e_packet.network_info_common.mac[0] = 0xAA; s2e_packet.network_info_common.mac[1] = 0xBB; s2e_packet.network_info_common.mac[2] = 0xCC; s2e_packet.network_info_common.mac[3] = 0xDD; s2e_packet.network_info_common.mac[4] = 0xEE; s2e_packet.network_info_common.mac[5] = 0xFF; // ... // }

Ricky-Kwon commented 6 years ago

thanks.