DA14531 blinky with TX=P0_0

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
jcdr
Offline
Last seen:7 months 4 weeks ago
Joined:2019-12-19 09:10
DA14531 blinky with TX=P0_0

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:
PM_Dialog
Offline
Last seen:2 days 9 hours ago
Staff
Joined:2018-02-08 11:03
Hi Jean-Christian,

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

jcdr
Offline
Last seen:7 months 4 weeks ago
Joined:2019-12-19 09:10
我使用这些dev吻ts:

我使用这些dev吻ts:

DA14531-00FXDEVKT-P "Development Kit-Pro"

DA14531-00FXDEVKT-U "Development Kit-USB"

The two new kits puchased recently.

jcdr
Offline
Last seen:7 months 4 weeks ago
Joined:2019-12-19 09:10
Note: I use JTAG SWD to

Note: I use JTAG SWD to download the code instead of the boot ROM.

PM_Dialog
Offline
Last seen:2 days 9 hours ago
Staff
Joined:2018-02-08 11:03
Hi Jean-Christian,

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

jcdr
Offline
Last seen:7 months 4 weeks ago
Joined:2019-12-19 09:10
Your welcome, please see the

Your welcome, please see the photo into the DA14531-KitPro.pdf file.

Attachment:
PM_Dialog
Offline
Last seen:2 days 9 hours ago
Staff
Joined:2018-02-08 11:03
Hi Jean-Christian,

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

jcdr
Offline
Last seen:7 months 4 weeks ago
Joined:2019-12-19 09:10
Hi, many thanks for your

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