Dear all:
Now I am using JN5161 to develop a Green power switch(using MicroMAC Stack). and I have some questions about JN516x:
1. By default, every JN516x have a 64bit pre-programmed MAC address, but i can't find the right API to read the OTP information.
2. How to lock the debug port and block the dumpflash and dumpeeprom function in bootload? So that we can avoid the hacker to read out the bin file.
Thanks very much. And hopes you everythings goes well..
I found the right answer from ZLG FAE.. Thanks..
1. using deviceconfig= in the CLI tools
2. I rewrite the struct from zigbee stack.
//define the MAC address
/* Customer MAC address at page 5, word 7 (16-byte words, 16 words/page) */
#define MAC_ADDR1_BASE 0x01001570
/* Default MAC address at page 5, word 8 (16-byte words, 16 words/page) */
#define MAC_ADDR0_BASE 0x01001580
//typedef the struct
typedef struct{
uint32 u32L;
uint32 u32H;
}MAC_ExtAddr_s;
//read the MAC address
sMacFrame.u32L = *(uint32 *)(MAC_ADDR0_BASE + 4);
sMacFrame.u32H = *(uint32 *)(MAC_ADDR0_BASE);