Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ble_app_uart example changed UART pin failed

Hi expert,

         I use the example below:

D:\Nordic\nRF51 SDK\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart

I changed UART pin from default pin0.08 and pin 0.06 to pin 0.12 and pin 0.11,

the receive function is OK,but send out function is failed.

when I use Termite3.2 to send data will make the board reset.

Would you tell me why?

Regards

Tom

Parents
    • What function is giving you 0x04?

    Define "DEBUG" in the preprocessor defines, turn off optimization, set a breakpoint at line 73 in "app_error.c", and run a debug session to find out what "APP_ERROR_CHECK" returns. (more)

     I have tested this on my side with the same pin numbers and it works.

  • Hi Martin,

              I set breakpoint at line " while (loop);" in function "app_error_save_and_stop" in app_error.c ,

    I captured the picture for your reference.the error code is 0x000004.

    I also followed you instruction to set a breakpoint at line 73 in app_erroc.c 

     Line73:   app_error_fault_handler(NRF_FAULT_ID_SDK_ERROR, 0, (uint32_t)(&error_info));

    app_error_fault_handler return code 0x2413C.

               

      By the way I use a external uart to USB device to connect with pin 0.12 and pin 0.11.

Reply
  • Hi Martin,

              I set breakpoint at line " while (loop);" in function "app_error_save_and_stop" in app_error.c ,

    I captured the picture for your reference.the error code is 0x000004.

    I also followed you instruction to set a breakpoint at line 73 in app_erroc.c 

     Line73:   app_error_fault_handler(NRF_FAULT_ID_SDK_ERROR, 0, (uint32_t)(&error_info));

    app_error_fault_handler return code 0x2413C.

               

      By the way I use a external uart to USB device to connect with pin 0.12 and pin 0.11.

Children
No Data
Related