Dialog Semiconductor customer support - DA14531 prod_test https://support.dialog-semiconductor.com/resource-keywords/da14531-prodtest-0 en prod_test uninitialized port_sel https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/prodtest-uninitialized-portsel

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

Device: 
Fri, 06 Mar 2020 10:45:08 +0000 jcdr 346856 at https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/prodtest-uninitialized-portsel#comments