Hi,
I compiled the 'ble_app_noncon'example in the 'misc' folder and I download the hex file into the OTP using the smart snippets tool. When checking on a ble scanner, the device advertises only once and after that no advertisment at all. I did the following changes to the existing program.
- enabled sleep by using ARCH_EXT_SLEEP_ON
- #undef CFG_DEVELOPMENT_DEBUG
- #undef CFG_WDOG - i disabled watchdog timer
- 我在打开LED periph_init()一个d turning it off beforing _WFI() in archmain.c
After OTP, the LED blinks so the program is running. But no advertisement.
I checked the program once by downloading to system RAM and it worked perfectly for days without stopping.
Regards,
Mark
Device:


Hi Mark,
You mentioned that you burnt the application image in the OTP. Have you burnt the OTP header as well? If yes, can you please export the OTP Header and share it with me? Did you test it with WDOG and DEV_DEBUG disabled?
Thanks, PM_Dialog
Hi PM_Dialog,
I burned another chip in OTP by doing the following changes
#define CFG_CODE_LOCATION_OTP
Now the application. works fine. I had an urgent requirement in my workplace so I had to remove sleep mode. Which one do you think has solved the problem.
Note: I am using a custom built board with a battery attached.
Regards,
Mark
Hi Mark,
Probably the #define CFG_CODE_LOCATION_OTP might solve your issue. However, I am not completely sure, since I don’t have a clear view for the steps that you followed. What other changes you did? The OTP header is the same?
Thanks, PM_Dialog
Hi,
Yes the OTP headers are the same. I am sure these are the two changes that I have done.
Regards,
Mark
Hi Mark,
Which sleep mode ( extend or deep sleep) did you used in the not working firmware?
Could you export the configurations of OTP header and share it with us?
Br, Yibin