Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
KrPa_4189911
Level 1
Level 1
First like given

Hello,

I am developing an application there is a requirement that facilitates the SDIO Interface mode from a single-bit data bus to four-bit data bus in runtime.

The application looks like:

  1. configure the SDIO interface using 1 Bit mode ( only one DAT[0] line would be enabled) [io_cfg.s0Mode = CY_U3P_SPORT_1BIT]
  2. Do some Read/Write
  3. Reconfigure the SDIO Interface using 4 Bit mode (All 4 lines, DAT[0] to DAT[3] lines would be enabled )[io_cfg.s0Mode = CY_U3P_SPORT_4BIT;]

How to enable these SDIO lines run-time? If it is possible to do so, will it affect interrupt handling?

SDIO Host: FX3S

SDIO Slave: Embedded SDIO card

KandlaguntaR_36​ You might aware of this setup.

Thanks

Krunal

0 Likes
1 Solution
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi Krunal,

For reconfiguring the iomatrix, you will have to do app stop involving gpiodeinit, uartdeinit, spideinit, flushing ep memory, destroying dma channel etc. - following which iomatrix can be reconfigured and app can be started.

Please refer to AN84868 where it is done.

Regards,

Hemanth

Hemanth

View solution in original post

0 Likes
1 Reply
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi Krunal,

For reconfiguring the iomatrix, you will have to do app stop involving gpiodeinit, uartdeinit, spideinit, flushing ep memory, destroying dma channel etc. - following which iomatrix can be reconfigured and app can be started.

Please refer to AN84868 where it is done.

Regards,

Hemanth

Hemanth
0 Likes