This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

why is my system resetting every minute or two when i call "sd_ble_gap_adv_start"?

i couldnt find any question related to my specific problem.. when i call that function my system is resetting after a minute or so and sometimes it is shut off. i am using a custom made prototype not the dev kit.. the problem is i have a few prototypes and the dev kit but only one prototype is acting up like that. not sure of which sdk in use here for i am not the only one working on the prototypes.

the same code is applied on all. so would be possible that it is a chip version that is differing? im not sure what the problem is but it goes away when i comment out the "advertising_start()" function or this part of it "err_code = sd_ble_gap_adv_start(&adv_params); APP_ERROR_CHECK(err_code);"

thank u in advance for ur help

Parents
  • Hi,

    The default advertising time is 180 seconds:

    #define APP_ADV_TIMEOUT_IN_SECONDS      180
    

    After 180 seconds you get the advertising timeout event, and the chip will try to enter sleep mode. If you are in debug mode, the chip will reset. See here for more info on this. You should power-cycle the device after you have flashed the device.

  • not at all but i suppressed it for now by lowering the APP_ADV_TIMEOUT_IN_SECONDS form 180 to 59. but ble as whole is causing connectivity problems. i came across another small bump; im using pwm module 0, 1 and 2. in module 2, channel 2 is not functioning when using channels 0, 1 and 2 for an rgb led so switch channel 3 to the same pin instead of channel 2.

    any idea about what might cause this kind of behavior?

Reply
  • not at all but i suppressed it for now by lowering the APP_ADV_TIMEOUT_IN_SECONDS form 180 to 59. but ble as whole is causing connectivity problems. i came across another small bump; im using pwm module 0, 1 and 2. in module 2, channel 2 is not functioning when using channels 0, 1 and 2 for an rgb led so switch channel 3 to the same pin instead of channel 2.

    any idea about what might cause this kind of behavior?

Children
No Data
Related