This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/OMAPL138B-EP: NDK, all parts have the same MAC address

Part Number: OMAPL138B-EP
Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Tool/software: Code Composer Studio

Hi

I took the NDK Hello World example and changed it to fit my application and send data over via UDP packets over Ethernet. The code runs on the ARM9 inside the OMAP-L138 on a custom made board. The code runs fine, but as it turns out all the copies of this hardware use the same MAC address: 00:01:02:03:04:15 This clearly cannot work if multiple devices are connected to the same network!

I dug a little deeper and found out that this address is hard coded in the file: ti/pdk_omapl138_1_0_8/packages/ti/transport/ndk/nimu/src/v6/nimu_eth.c

I already tried to change the MACADDRLO and MACADDRHI registers directly, however this did not work.

There are forum posts suggesting to change the library function and recompile.

However, simply changing it to a different (but constant) address won't help. Also I have no idea how to rewrite and recompile this library.

If the OMAP devices had a pre-programmed MAC address, it would also be fine to use this one...

Thanks for any suggestions.

Kind Regards, Fritz

  • Hi Fritz,

    If I recall correctly, the bootloader initializes the device with a random mac address at boot. Can you try commenting out the section of code that hard-codes the mac address and then check the MACADDR registers to see if they have been initialized? You can pull in the modified nimu_eth.c file into your CCS project if you do not wish to recompile the entire library.

    Regards,
    Sahin