Yamazaki-san, The feature of uptdating OTP from JTAG is not supported in currentr SmartSnippets. It will be implemented in the future SmartSnippets. Thanks, Dialog Support
If I want to lock the OTP memory after programming so it can't be modified anymore, how do I do that? I want to make sure it can't be modified after it has been programmed. 我启用应用程序标记吗and disable the JTAG in the OTP header to accomplish this?
You are correct, if you set the application flag in the OTP header you will disable the UART/SPI adn I2C interface. If you at the same time disable the JTAG there is no interface active on the DA14580.
Of course you can use the I2C interface, what my colleague means is that if you burn the application flags in the OTP the primary booting sequence will be disabled (check the SPI/UART/I2C procedure for a valid image in order to boot).
Yes if you burn the application flags and you didnt disable the JTAG enable field in the OTP, you are not going to be able to boot via uart in order to burn the OTP and the only way is through JTAG. About the application flags they dont serve a different purpose they just indicate to the boot rom code that there is an application in the OTP. Both of them are read by the Boot ROM software when start executing.
I tested that if i connect my board via UART, all the SmartSnippets function cannot work. I connect my board via JTAG, all the SmartSnippets function can work, is it correct?
And one more question, if I use 2V power, which pin should I use? VBAT1V or VBAT3V? or both is ok because DA14580 have DC-DC converter?
According to Table 266 in DA14580 datasheet, is it means that DA14580 recommanded working power is 1.41V?
The functionality of smart snippets as far as the power profiler concerns depends on the dev kit that you are using, the power profiler is available only for the pro and expert dev kit.
About the UART, in order to operate from uart (for downloading code, connect/burn/read OTP) the corresponding UART ports should be connected in the proper baud rate (every uart pin pair has a fixed baud rate). You can set the UART ports from the board setup option in smart snippets, then the ss will require to reset your board in order to download the appropriate program from read/burn the OTP or download your code via UART.
Regarding operating the 580 with 2V please follow the following link
Yes I know about the function of SmartSnippets. My question is that after I burn application flags,it only inactive the UART port, I can still use JTAG to use all the function?
I read the text in the link, so if I want to use OTP, the best power for DA14580 is 2.5V (according to Figure 10 in DA14580 datasheet) ?
If you burn the application flags you wont be able to download code through UART (Smart Snippets UART booting) or any other serial interface (SPI/I2C) since the bootloader is going to be disabled and booting is done only through the OTP. You are able to use the peripherals after the booting from OTP is done. But you can use the JTAG connection to donwload code, burn your flash, burn additional flags in OTP.
Regarding the OTP, the lowest safe voltage in order for the OTP to be read when the system boots up is about 2.5V and also provides a bit better efficiency of the dcdc converter.
Yamazaki-san,
是的,你可以从JTAG OTP更新。在这种情况下,please enable JTAG flag in OTP header.
Thanks,
Dialog Support Team
Thank you for your quickly coment.
However, although OTP programmer (in SmartSnippets rev2.1) is not supporting JTAG I/F, how should we use OTP programmer with JTAG?
Yamazaki-san,
The feature of uptdating OTP from JTAG is not supported in currentr SmartSnippets. It will be implemented in the future SmartSnippets.
Thanks,
Dialog Support
If I want to lock the OTP memory after programming so it can't be modified anymore, how do I do that? I want to make sure it can't be modified after it has been programmed.
我启用应用程序标记吗and disable the JTAG in the OTP header to accomplish this?
Hi JoJo
You are correct, if you set the application flag in the OTP header you will disable the UART/SPI adn I2C interface. If you at the same time disable the JTAG there is no interface active on the DA14580.
Regards
TN_Dialog
What is "disable the UART/SPI and I2C interface" means? Can I still get data from an I2C accelerometer?
Hi daniel59,
Of course you can use the I2C interface, what my colleague means is that if you burn the application flags in the OTP the primary booting sequence will be disabled (check the SPI/UART/I2C procedure for a valid image in order to boot).
Thanks MT_dialog
Hi MT_dialog,
Thanks for your reply.
So if i already burn the application flags, the only way i can change the hex file is using JTAG and burn the OTP memory?
And why there is 2 application flags? Do they have different usage?
Daniel
Hi daniel59,
Yes if you burn the application flags and you didnt disable the JTAG enable field in the OTP, you are not going to be able to boot via uart in order to burn the OTP and the only way is through JTAG. About the application flags they dont serve a different purpose they just indicate to the boot rom code that there is an application in the OTP. Both of them are read by the Boot ROM software when start executing.
Thanks MT_dialog
Hi MT_dialog,
I tested that if i connect my board via UART, all the SmartSnippets function cannot work. I connect my board via JTAG, all the SmartSnippets function can work, is it correct?
And one more question, if I use 2V power, which pin should I use? VBAT1V or VBAT3V? or both is ok because DA14580 have DC-DC converter?
According to Table 266 in DA14580 datasheet, is it means that DA14580 recommanded working power is 1.41V?
Daniel
Hi daniel59,
The functionality of smart snippets as far as the power profiler concerns depends on the dev kit that you are using, the power profiler is available only for the pro and expert dev kit.
About the UART, in order to operate from uart (for downloading code, connect/burn/read OTP) the corresponding UART ports should be connected in the proper baud rate (every uart pin pair has a fixed baud rate). You can set the UART ports from the board setup option in smart snippets, then the ss will require to reset your board in order to download the appropriate program from read/burn the OTP or download your code via UART.
Regarding operating the 580 with 2V please follow the following link
http://support.dialog-semiconductor.com/operation-da14580-regulated-2v-s...
Thanks MT_dialog
Hi MT_dialog,
Yes I know about the function of SmartSnippets. My question is that after I burn application flags,it only inactive the UART port, I can still use JTAG to use all the function?
I read the text in the link, so if I want to use OTP, the best power for DA14580 is 2.5V (according to Figure 10 in DA14580 datasheet) ?
Daniel
Hi daniel59
If you burn the application flags you wont be able to download code through UART (Smart Snippets UART booting) or any other serial interface (SPI/I2C) since the bootloader is going to be disabled and booting is done only through the OTP. You are able to use the peripherals after the booting from OTP is done. But you can use the JTAG connection to donwload code, burn your flash, burn additional flags in OTP.
Regarding the OTP, the lowest safe voltage in order for the OTP to be read when the system boots up is about 2.5V and also provides a bit better efficiency of the dcdc converter.
Thanks MT_dialog
Dear TN_Dialog
Hi,
Excuse me for asking such a silly question!
Can you tell me where I can find the OTP header?
Thanks a lot.
Hello Reza.yazdani67,
you may refer to the AN-B-020 or OTP header in Smartsnippet tool
BR, MH_Dialog