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

Ble_app_uart_saadc_timer_driven example for SDK 15.0.0

Hey, I just got this nrf52 board with pca10040 and tested few Nordic's examples, which worked just fine. I want to simply put some sine wave signal to one analog input and ad-convert the signal then send the values over ble to my end device (mobile for example).

I tested that can I use this ble_app_uart_saadc_timer_example_for_SDK_13.0.0 by only adding s132 hex file to the device even tho I have SDK 15 installed, so is that the way to do it also? Should this output some values, because I only get "UART Start!" message in Termite and if I press button 1, it only shows "UART Start!" messages again.

Also if there is a example code for converting analog input values to digital (using saadc?) and sending values via ble to mobile, let me know.

Parents
  • Hi Noobie,

    Your application takes a different code path when you press the button. I think that some function in that code path fails with an error code (other than NRF_SUCCESS) and the APP_ERROR_CHECK will by default cause a soft system reset. Please put a breakpoint in app_error_fault_handler and start your program in debugger to see the call stack and understand which function call has returned with failure. Looking at the error code you can understand the behavior from the API documentation of the failing function.

  • Okay, what is correct way of importing that file to SEGGER, because the file does not have ses project file?

    Still, shouldn't it be possible to just copy and paste the hex-file to JLINK drive and the program should work as fine, no matter what SDK you are using.

Reply Children
Related