When I used "nRF5_SDK_15.0.0_a53641a\examples\ble_central\ble_app_uart_c " , it run ok . But my hareware is used PIN33 for RX, PIN32 for TX. So I changed pca10040.h ,please see the following . And now the software doesn't run. The J-LINK shows " 0> <error> app: Communication error occurred while handling UART. ".
WHY? please help me. thank you. My board is uesd 52832.
#define RX_PIN_NUMBER 19 / /8#define TX_PIN_NUMBER 18 //6
nRF52832 has 32 GPIOs from P0.00 to P0.31. Check your hardware for the right pin numbers.
#define RX_PIN_NUMBER 19 //8#define TX_PIN_NUMBER 18//6#define CTS_PIN_NUMBER 0XFF#define RTS_PIN_NUMBER 0XFF#define HWFC false// true
I changed as above. but the software still doesnot run.
J-LINK STILL PRINTS the following
0> <error> app: Communication error occurred while handling UART. 0> <error> app: Fatal error
#define RX_PIN_NUMBER 8 //8#define TX_PIN_NUMBER 18//6#define CTS_PIN_NUMBER 0XFF#define RTS_PIN_NUMBER 0XFF#define HWFC false// true
As above, the software runs well . why? The RX must be used P0.08? But my hardware can't change now.
You need to debug your code and see what is the error code that is returned when it occurs. And make sure you are not using the P0.19 pin elsewhere in you code.
These is not my code, it is yours. I download at https://www.nordicsemi.com/eng/nordic/Products/nRF5-SDK/nRF5-SDK-zip/59011 .I dId nothing but changeed PCA10040.h
I'm no Nordic. Good luck mate.