⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
9 posts / 0 new
Last post
jojo
Offline
Last seen:3 months 4 days ago
加入:2014-01-29 14:02
Chip serial number

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:
MT_dialog
Offline
Last seen:1 month 3 days ago
Staff
加入:2015-06-08 11:34
嗨,乔乔,

嗨,乔乔,

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

魏文彬
Offline
Last seen:3 months 1 week ago
加入:2019-04-10 03:51
Hi DA team

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~

PM_Dialog
Offline
Last seen:16 hours 40 min ago
Staff
加入:2018-02-08 11:03
Hi There,

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

魏文彬
Offline
Last seen:3 months 1 week ago
加入:2019-04-10 03:51
I not burn the OTP , I

I not burn the OTP , I using a custom board .

“输出是零”is mean "printf" all zero.

Mean i can,t read "0x7f8ea00" address ,Is there still a need some configuration?

Attachment:
PM_Dialog
Offline
Last seen:16 hours 40 min ago
Staff
加入:2018-02-08 11:03
Hi There,

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

魏文彬
Offline
Last seen:3 months 1 week ago
加入:2019-04-10 03:51
I can use the SmartSnippets

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

Attachment:
魏文彬
Offline
Last seen:3 months 1 week ago
加入:2019-04-10 03:51
Hi

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!

PM_Dialog
Offline
Last seen:16 hours 40 min ago
Staff
加入:2018-02-08 11:03
Hi There,

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