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.

    1. If you are running the same code on all prototypes, and only seeing the reset issue on one of them, I would guess that there is a hardware issue with that specific prototype. You didn’t find any error codes when you tried to debug?

    2. If you are seeing this pwm issue on all prototypes, I would recommend creating a new question here on DevZone, and explain this pwm issue in more detail.

Reply
    1. If you are running the same code on all prototypes, and only seeing the reset issue on one of them, I would guess that there is a hardware issue with that specific prototype. You didn’t find any error codes when you tried to debug?

    2. If you are seeing this pwm issue on all prototypes, I would recommend creating a new question here on DevZone, and explain this pwm issue in more detail.

Children
No Data
Related