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

Working / sample programs crashing on Custom Board?

Hi, I have made my custom board using nrf51422 sample chips (Which came nrf 51422DK ), but my working / sample program which works on DK gets crashed on custom Board.

Blinking works fine, but uart and other soft device programs crashes.

Marking on my chip is: NRF51422 QFAC A1 1503AD

Parents
  • The UART module normally use the internal oscillator, not the external crystal, so you should not need to do anything. You can see this from the Block resource requirements section in the Product specification. Just in case there is a clock issue, can you try to set constant latency mode in order to force the clock always on? Put this line in the beginning of your main function:

    NRF_POWER->TASKS_CONSTLAT = 1;
    

    From your debugging, it seems that an error is found in the call to APP_ERROR_HANDLER() on line 42 in your main.c. This is due to a APP_UART_COMMUNICATION_ERROR, which indicate that a communication error has occurred during reception. The error is stored in app_uart_evt_t.data.error_communication field. Can you check that field in the debugger?

Reply
  • The UART module normally use the internal oscillator, not the external crystal, so you should not need to do anything. You can see this from the Block resource requirements section in the Product specification. Just in case there is a clock issue, can you try to set constant latency mode in order to force the clock always on? Put this line in the beginning of your main function:

    NRF_POWER->TASKS_CONSTLAT = 1;
    

    From your debugging, it seems that an error is found in the call to APP_ERROR_HANDLER() on line 42 in your main.c. This is due to a APP_UART_COMMUNICATION_ERROR, which indicate that a communication error has occurred during reception. The error is stored in app_uart_evt_t.data.error_communication field. Can you check that field in the debugger?

Children
No Data
Related