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

  • What math library do you use for the cos/sin functions? What is your connection parameters, i.e. connection interval, slave latency and timeout?

  • Hi Stefan, I just include math.h, sin/cos/sqrt can be available. Below is my connection parameters: #define MIN_CONN_INTERVAL 24 #define MAX_CONN_INTERVAL 90 #define SLAVE_LATENCY 0 #define CONN_SUP_TIMEOUT 400 #define FIRST_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER) #define NEXT_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(30000, APP_TIMER_PRESCALER) #define MAX_CONN_PARAMS_UPDATE_COUNT 3 #define APP_ADV_INTERVAL 128 #define APP_ADV_TIMEOUT_IN_SECONDS 0

  • 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.

Related