For the DA14681:
Is it possible retrieve a chip serial number from within the FW that is unique for each chip?
Is it located in the OTP header? If so at what location is it stored and do you have some example of how to read it?
Keywords:
Device:
Hi jojo,
The fields in the OTP that are tagged as Position/Package and Tester/Timestamp (the addresses 0x7F8EA00 and 0x7F8EA08), the combination of the two registers can give you a unique identifier and you can read them using the Snippets below:
hw_otpc_init(); // Start clock.
hw_otpc_disable(); // Make sure it is in standby mode.
hw_otpc_init(); // Restart clock.
hw_otpc_manual_read_on(false);
p = (uint32_t *)(0x7F8E9C0 + 64);
printf("%08x \n\r",*p);
p++;
printf("%08x \n\r",*p);
p++;
printf("%08x \n\r",*p);
p++;
printf("%08x \n\r",*p);
hw_otpc_manual_read_off();
hw_otpc_disable();
Thanks MT_dialog
Hi DA team
i use "DA1468x_DSPS_v_1.160.2" project in DA14682 platform,
I use the code you provided, but the output is all 0.
i don't know why , can you tell me why ? please tell me why... help~
Hi There,
Can you please provide me more inputs regarding your issue? Did you burn the OTP? Also, are you using a custom board or any of our development boards? What do you mean the output is all zero? Could you please provide me a screenshot?
Thanks, PM_Dialog
I not burn the OTP , I using a custom board .
"the output is all zero" is mean "printf" all zero.
Mean i can,t read "0x7f8ea00" address ,Is there still a need some configuration?
Hi There,
To be honest, I am not able to understand how you are using this code snippet, but you can use the SmartSnippets studio in order to read the chip serial number. So, you need to open the toolbox and open the OPT programmer. After that, you should connect to the OTP header.
Thanks, PM_Dialog
I can use the SmartSnippets Tool to read the chip serial number.
But i need to read chip serial number in code,
Can you give me a simple DEMO(project) to read the chip serial number?
very thanks
Hi
I still can't read the serial number in OTP through the program.
Can you give me a simple DEMO ?
please ~
thanks very much!
Hi There,
Could you please try this code snippet in any example of the SDK? I will try to replicate this issue in DSPS, but normally this is the procedure you should follow in order to read the OTP header.
Thanks, PM_Dialog