This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ADC + ble connection

I am using nrf51_sdk_v6_0_0_43681 and s110_nrf51822_7.0.01 wiht nrf51822, and I modifiy code based on ble_app_uart.

Here I am trying to launch a continous ADC sample with a repeated mode timer, the timer interval is 1ms or 2ms or 4ms. Meanwhile I disconnect and conect my cellphone(Samsumg Notes 3) with nrf51822 board. Serval times later, I found that the nrf51822 system should be crashed,because my local uart can not be input and ble has no advertising.

What is the problem?

Thanks

Frank

Edit: Format + Added commas between tags

Parents
  • Hi Stefan, Great thanks for your answer.Here I found that continously ADC sampling is not the root cause of system crash. I have an function xxx_process in main loop runtine as below. It is a complicated algorithm, sometimes it will take about 2 second to finish it. When algorithm is running, and I connect/disconnect the board with my cellphone, it will cause system crash. Here I want to know if I can disable ble response before algorithm running and enable ble response after algorithm finish.

    main() { ..... //initialization for (;;) { xxx_process(); power_manage();

    }
    

    }

    Thanks Frank

  • With the code and settings you have revealed on this thread I am having no problems on my side. Are you willing to share your whole project with me through a support case. For that purpose, create a support case in our support portal on www.nordicsemi.no. Go to the bottom of the page and click Technical Support Team. Attach your code with your case and refer to this thread. Any additional description of the problem would be helpful. Include what chip version you are having (i.e. the chip markings on your nRF51 chip) and if you are using development kit, evaluation kit or your custom PCB.

Reply
  • With the code and settings you have revealed on this thread I am having no problems on my side. Are you willing to share your whole project with me through a support case. For that purpose, create a support case in our support portal on www.nordicsemi.no. Go to the bottom of the page and click Technical Support Team. Attach your code with your case and refer to this thread. Any additional description of the problem would be helpful. Include what chip version you are having (i.e. the chip markings on your nRF51 chip) and if you are using development kit, evaluation kit or your custom PCB.

Children
No Data
Related