The pad P0_0 is by default the reset input. I have found that I need to add the following line at the beginning of the function periph_init() of the file user_periph_setup.c
GPIO_Disable_HW_Reset();
Modify the following lines in the file user_periph_setup.h inside the #if defined (__DA14531__)
#define UART2_TX_PORT GPIO_PORT_0
#定义UART2_TX_PIN GPIO_PIN_0
Keywords:
Device:
Hi Jean-Christian,
Thanks for you feedback. Can you please indicate which development board are you using? Is it the DA145xx Pro-DK or the DA1458x Pro-DK (this is the old version). I ran the Blinky example of the SDK6.0.12 in the DA145xx Pro-DK using the P0_0 as UTX and it is working correctly.
Please notice that the RESET pin function is only used at the beginning of power up. After that the pin function will change to UART according to Booting Sequence Steps. See Table 37 DA14531 datasheet.
The Reset function on P0_0 is enabled before and after the ROM booter is active. The application will start to run after the ROM booter has executed. After that, the pin can be reconfigured for an alternative function. Also, the Reset functionality can be connected to another GPIO. When P0_0 is used for a different functionality than Reset, make sure that the pin is configured to be pulled down or use a pull-down resistor to avoid a continuous reset. This is already implemented in DA145xx Pro-DK
Thanks, PM_Dialog
Thanks, PM_Dialog
我使用这些dev吻ts:
DA14531-00FXDEVKT-P "Development Kit-Pro"
DA14531-00FXDEVKT-U "Development Kit-USB"
The two new kits puchased recently.
Note: I use JTAG SWD to download the code instead of the boot ROM.
Hi Jean-Christian,
Can you please share a photo with the jumpers and wiring configuration you are using in the DA14531-00FXDEVKT-P "Development Kit-Pro"? Have you connected the UTX from the J1 header with the P20 ( which is the DA14531 P0_0) in the J2 header?
Thanks, PM_Dialog
Your welcome, please see the photo into the DA14531-KitPro.pdf file.
Hi Jean-Christian,
I tested further this issue and you are right! If you want to configure the P0_0 as UART TX, you should call GPIO_Disable_HW_Reset() function as correctly mentioned in order to disable the reset functionality. Additionally, you should put the brown write (according to your attached image) to P20 instead of P22.
Can you please indicate if this setup is working?
Your feedback would be more than welcome!
Thanks, PM_Dialog
Hi, many thanks for your confirmation work.
The brown wire is already on P20, but I agree the picture angle make it easy to confuse with P22.
Of course I indicate that this setup is working, since I first reported the solution :-)
Best Regards.
Jean-Christian de Rivaz
Innodelec sàrl