JN516x - OTP read API and how to block JTAG

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

JN516x - OTP read API and how to block JTAG

646 次查看
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..

标签 (1)
标记 (2)
0 项奖励
2 回复数

596 次查看
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 项奖励

596 次查看
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 项奖励