Starting from your reference application I built an application that communicates with ABCC40 through SPI.
Everything work correctly and now I wondering how to specify the Ethernet Ports Mac Addresses.
My idea is to read the MAC Addresses from Host MCU flash memory and set it into the ABCC. In future I will buy a pool of MACs.
This is not the correct procedure. The Ethernet Host Object (F9h) belongs to the application and not to the module. So the module will send request to the application to get the information about the MAC addresses and the application must answer with the wanted values.
We have prepared a definitions for this configuration in the example code in the file “abcc_obj_cfg.h”, Which you can use:
** Attribute 9: Port 1 MAC Address (Array of UINT8)
*/ #ifndef ETN_IA_PORT1_MAC_ADDRESS_ENABLE #define ETN_IA_PORT1_MAC_ADDRESS_ENABLE TRUE #define ETN_IA_PORT1_MAC_ADDRESS_VALUE “\x00\x30\x11\x00\x00\x01” #endif
** Attribute 10: Port 2 MAC Address (Array of UINT8)
*/ #ifndef ETN_IA_PORT2_MAC_ADDRESS_ENABLE #define ETN_IA_PORT2_MAC_ADDRESS_ENABLE TRUE #define ETN_IA_PORT2_MAC_ADDRESS_VALUE “\x00\x30\x11\x00\x00\x02” #endif
Yes, this is the only way and the correct way to change the MAC address for Ethernet IP modules.
I’m not sure if there is a possibility by our side to produce the modules with specific MAC address for you.
If you are interested, please contact our sales team in your country and they will check the possibility.