JN516x - OTP read API and how to block JTAG

cancel
Showing results for 
Search instead for 
Did you mean: 

JN516x - OTP read API and how to block JTAG

137 Views
26803385
Contributor I

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..

Labels (1)
0 Kudos
2 Replies

87 Views
26803385
Contributor I

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);

0 Kudos

87 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Zero,

Please look at the files attached. The document could help you with the OTP Register for the JN516X

Regards,

Mario

0 Kudos