I want to use otp, and first test my app use Booter to download the bin file to chip ram, it can work, but when I download it to otp, and of couse I 've set Application programmed flag 1 and flag2 in otp header(only set these two flags, others are remain unchanged). Then power off and power on my board, it can not work, help me please.
Device:
Hi cgha.
你使用一个定制的董事会或任何我们的dk吗?Can you please clarify the steps that you have followed? Did you test your project before programming the OTP?
Keep in mind that 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. If you would like to burn the OTP, 2 areas must be burnt:
Thanks, PM_Dialog
Yes, I am use custom board, No 32.768K crystal mount. App sleep mode is extend sleep.
1. Download the bin file to system ram, it can work with debugger not remove, if I remove debugger after ram download, then it can not work, if I plug the debugger back, it can work again.
2. Download to otp, set application flags as 'YES', can not work.
Hi cgha,
You mentioned that you don’t have any external 32K crystal oscillator. So, did you change the Low Power clock selection in order to run with the internal RCX?
#define CFG_LP_CLK LP_CLK_RCX20
Thanks, PM_Dialog