SDCARD SPI Driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SDCARD SPI Driver

Jump to solution
983 Views
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 Kudos
1 Solution
299 Views
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

View solution in original post

0 Kudos
1 Reply
300 Views
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 Kudos