TBox emulated SDIO by FlexIO question: 1 bit or 4 bit mode?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

TBox emulated SDIO by FlexIO question: 1 bit or 4 bit mode?

跳至解决方案
1,773 次查看
Li_Chen
Contributor III

I have reviewed S32K344 TBox reference design from S32K3 Automotive Telematics Box (T-Box) Reference Design Board | NXP Semiconductors. At very beginning, I saw 4 Data lines(DATA0~DATA3) are set as FlexIOs and connect to SD card socket. I thought it's 4 bit data transfer mode for SD/MMC. However, after checking the TBox reference code, I see it's in SPI mode(1 bit data transfer). Can you confirm this?

From the RM, I see the max SPI clock over FLEXIO config are only 20MHz, I guess there is no point to enable SD/MMC 4 bit transfer mode over FLEXIO(even I don't know how), but instead, using LPSPI to achieve higher data throughput?

0 项奖励
回复
1 解答
1,719 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

The problem is that the FlexIO RTD driver does not support 4bit SPI / SDIO protocol.

Theoretically, it can be supported, that's why this is implemented in HW.

 

Regards,

Daniel

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,753 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Li_Chen,

Which reference code do you mean?

 

Thanks,

BR, Daniel

0 项奖励
回复
1,749 次查看
Li_Chen
Contributor III

The reference code are from S32K3-T-BOX Reference Design - BSPs, Drivers and Middleware(https://www.nxp.com/webapp/Download?colCode=S32K3-T-BOX-BSP)

0 项奖励
回复
1,720 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

The problem is that the FlexIO RTD driver does not support 4bit SPI / SDIO protocol.

Theoretically, it can be supported, that's why this is implemented in HW.

 

Regards,

Daniel

0 项奖励
回复