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 ?
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
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.
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?
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.
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
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
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
Thank you!
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
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