Configuring SWCLK/SW_DIO as GPIO pin

Learn MoreFAQsTutorials

7 posts / 0 new
Last post
wisilica
Offline
Last seen:7 months 3 weeks ago
加入:2015-03-17 08:16
Configuring SWCLK/SW_DIO as GPIO pin

Hi,

I would like to configure the SWCLK and SW_DIO pins as GPIOs in WLCSP34. What are the steps that is required to do so and what are the constraints in doing this ?

Thanks
Wisilica

Device:
MT_dialog
Offline
Last seen:2 weeks 5 days ago
工作人员
加入:2015-06-08 34
Hi wisilica,

Hi wisilica,

You will have to make sure that the debugger module is off (SYS_CTRL_REG[DEBUGGER_ENABLE]) and then you can configure them as normal GPIOs.

Thanks MT_dialog

gme_johannes
Offline
Last seen:6 days 1 hour ago
加入:2017-12-22 10:09
Hi,

Hi,
regarding the question of this thread - is this also possible with SWCLK/SWDIO on the Murata LBCA2HNZYZ?
Once I set the SYS_CTRL_REG register accordingly, what are the internal GPIO names?
Best regards
Johannes

PM_Dialog
Online
Last seen:10 min 17 sec ago
工作人员
加入:2018-02-08 11:03
Hi gme_johannes,

Hi gme_johannes,

The Murata LBCA2HNZYZ uses the DA14580 chip, so regarding the datasheet the SWCLK is in P1_4 and the SWDIO is in P1_5. The configuration of the SWCLK/SWDIO pins is the same as mentioned in the current thread.

Thanks, PM_Dialog

gme_johannes
Offline
Last seen:6 days 1 hour ago
加入:2017-12-22 10:09
Thank you!

Thank you!

gme_johannes
Offline
Last seen:6 days 1 hour ago
加入:2017-12-22 10:09
Follow up:

Follow up:

Currently I program the attached SPI flash via JTAG (SWDIO/SWCLK), not using a secondary bootloader but working in Development mode.
If I set DEBUGGER_ENABLE to 0 and program such a firmware to the SPI flash, will I still be able to access the SPI flash through Smart Snippets somehow?

From figure 1 in AN-B-001 I see that if a valid image is found on an SPI slave, it will boot immediately. JTAG is not scanned before.

Since UART and the SPI bus on my board share a pin, I assumed it will not be possible through UART either.
However inhttps://support.dialog-semiconductor.com/p05-spi-miso-and-uartrx-conflic...I see that the mechanism can still work since everything is first uploaded to the DA, then pin functions are toggled, and only then SPI will be flashed?

Best regards
Johannes

PM_Dialog
Online
Last seen:10 min 17 sec ago
工作人员
加入:2018-02-08 11:03
Hi gme_johannes,

Hi gme_johannes,

As soon as you have the debugger disabled (DEBUGGER_ENABLE to 0), you are not able to attach the SPI flash through JTAG using Smart Snippet. Since you download firmware to the SPI flash, your code will run and the debugger will be disable. Although, you are able to access the SPI flash through UART. Regarding the figure 1 in AN-B-001, the UART procedure is before SPI Slave procedure, so you are able to do something like that.

Thanks, PM_Dialog