SDCARD SPI Driver

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

SDCARD SPI Driver

跳至解决方案
965 次查看
Mike_d
Contributor IV
I noticied that the clock for the SPI bus is set to 400KHz in the MQX driver.  I'd like to run it as fast as possible. Can someone tell me what I need to do to run it at 20MHz?
0 项奖励
1 解答
281 次查看
DavidS
NXP Employee
NXP Employee

Hi Mike_d,

Assuming M52259EVB bsp inside the m52259evb.h you can change the baud rate:

/*
** The SPI settings.
*/
#define BSP_QSPI_RX_BUFFER_SIZE                       (32)
#define BSP_QSPI_TX_BUFFER_SIZE                       (32)
#define BSP_QSPI_BAUDRATE                             1000000

Regards,

David

在原帖中查看解决方案

0 项奖励
1 回复
282 次查看
DavidS
NXP Employee
NXP Employee

Hi Mike_d,

Assuming M52259EVB bsp inside the m52259evb.h you can change the baud rate:

/*
** The SPI settings.
*/
#define BSP_QSPI_RX_BUFFER_SIZE                       (32)
#define BSP_QSPI_TX_BUFFER_SIZE                       (32)
#define BSP_QSPI_BAUDRATE                             1000000

Regards,

David

0 项奖励