When I finish debugging my software, I want to download firmware to the OTP of chip. I plan to download the firmware to the chip by UART, for example, can I use the the pins of P0.4 and P0.5 to connect to my PC? do you have any guidelines about hardware connection and software operation? Thank you!
Device:
Hi Jack Zhang,
I would strongly recommend you to use the latest version of the SmartSnippets studio, which is version 2.0.8.Through the studio, you could open the latest version of SmartSnippets toolbox. The OTP has 3 areas where the user can burn data:
When the user tries to burn the OTP he have to make sure that the programming voltage is clean and must not exceed 6.8V. Also the 6.8V can only be applied to VPP after the VBAT3V is supplied and must be removed from VPP before the VBAT3V is removed, otherwise the chip could be damaged.
In order to burn the OTP with the most common configuration please follow the below instructions:
Go to the OTP Header tab.
Some additional information about the OTP. When the OTP is burned and the application flags on the OTP header are also burned, the primary bootloader is disabled so the scanning procedure doesn't take place, thus you will not be able to boot from the SPI or UART or I2C. You will be able to directly burn your sysram though via JTAG as long as the OTP header field called JTAG enable flag stays Enabled. Also, OTP stands for One Time Programmable, thus you can’t erase and re-write the OTP multiple times, but you can only flip the bits that are still set to 0 and turn them to 1.
Thanks, PM_Dialog