Hello,
I passed severy days figure out why the DA14531 prod_test don't run reliably on both the Development Kit-Pro and Development Kit-USB if the communication is configured to TX=P0_0 and RX=P0_1. What I found is that the port_sel variable that is used to setup the UART pins stay uninitialized. Most of the time the memory containing the port_sel variable hold a zero value matching the P0_0_AND_P0_1_INITIALIZED_FROM_EXT_TOOL constant and the application work as expected. But sometimes this that memory contain a non zero value and the aplication fail to communicate.
I successfully solved this problem by adding the following line into the beginning of the function periph_init() of the file user_periph_setup.c:
port_sel = UART_PORT_SEL;
And add this line into user_periph_setup.h just after the definition of the enum:
#define UART_PORT_SEL P0_0_AND_P0_1_INITIALIZED_FROM_EXT_TOOL;
Best Regards.
Jean-Christian de Rivaz