DA14585 Advertises only once on POR after OTP

Learn MoreFAQsTutorials

6 posts / 0 new
Last post
MarkDsylva_2277
Offline
Last seen:3 days 1 hour ago
加入:2019-06-19 04:20
DA14585 Advertises only once on POR after OTP

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:
PM_Dialog
Offline
Last seen:4 days 3 hours ago
Staff
加入:2018-02-08 11:03
Hi Mark,

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

MarkDsylva_2277
Offline
Last seen:3 days 1 hour ago
加入:2019-06-19 04:20
Hi PM_Dialog,

Hi PM_Dialog,

I burned another chip in OTP by doing the following changes

  • #undef CFG_CODE_LOCATION_EXT
    #define CFG_CODE_LOCATION_OTP
  • app_default_sleep_mode = ARCH_SLEEP_OFF

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

PM_Dialog
Offline
Last seen:4 days 3 hours ago
Staff
加入:2018-02-08 11:03
Hi 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

MarkDsylva_2277
Offline
Last seen:3 days 1 hour ago
加入:2019-06-19 04:20

Hi,

Yes the OTP headers are the same. I am sure these are the two changes that I have done.

Regards,

Mark

CYibin
Offline
Last seen:2 months 1 week ago
Staff
加入:2017-12-14 02:48
Hi 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