LPC54608 MAC address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54608 MAC address

733 Views
実奥山
Contributor II

There are following MACADDRESS registers.

Table 721. MAC address high register (MAC_ADDR_HIGH, offset 0x0300)

Table 722. MAC address low register (MAC_ADDR_LOW, offset 0x0304)

Are these non-volatile?

If those are volatile,I have to preserve MAC address to flash.

Is below OK for preservation method to a flash?

const unsigned char * macaddr;

printf("0x12\n", macaddr[0]);

printf("0x34\n", macaddr[1]);

printf("0x56\n", macaddr[2]);

printf("0x78\n", macaddr[3]);

printf("0x9A\n", macaddr[4]);

printf("0xBC\n", macaddr[5]);

 

 

Labels (1)
0 Kudos
3 Replies

598 Views
実奥山
Contributor II

jeremyzhou -san

Thank you for your help.

Can I write Test_str(MAC address area) by my application program?

Please teach me how to write Tset_str.

I have to initialize MAC adress,IP address etc. by my application program.

okuyama

0 Kudos

598 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 実 奥山,

Of course, you can define the MAC and IP addresses in the application.
For instance, you can use these below codes.

const char MAC_ADDR[6]= {0x02, 0x12, 0x13, 0x10, 0x15, 0x11};
const char IP_ADDR[4]= {192, 168, 0, 102};‍‍

Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

598 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 実 奥山
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
After reviewing your question, I don't find you use the pointer macaddr points the MAC address, so you can use the below method to make it.
const char Test_str[6]= {0x02, 0x12, 0x13, 0x10, 0x15, 0x11};
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos