Learn MoreFAQsTutorials

4 posts / 0 new
Last post
cgha
Offline
Last seen:2 months 1 week ago
Joined:2016-03-23 13:05
Can not Boot from otp

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:
PM_Dialog
Offline
Last seen:10 hours 28 min ago
Staff
Joined:2018-02-08 11:03
Hi cgha.

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:

  • The OTP image area, where the user code is placed and mirrors to the sysram at boot.
  • The OTP Header area, where flags and specific values that define the operation of the device are placed (more information regarding the values of the OTP Header can be found in the Smart Snippets User guide).

Thanks, PM_Dialog

cgha
Offline
Last seen:2 months 1 week ago
Joined:2016-03-23 13:05
Yes, I am use custom board,

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.

PM_Dialog
Offline
Last seen:10 hours 28 min ago
Staff
Joined:2018-02-08 11:03
Hi cgha,

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