MQX 4.2 & Quad SPI driver

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

MQX 4.2 & Quad SPI driver

跳至解决方案
1,406 次查看
BlueJay
Contributor III

Hello,

as I have seen the default settings of the quad spi driver of MQX is set in single mode:

init_qspi.c

static const QuadSPI_INIT_STRUCT _bsp_quadspi1_init_data = {

...

    QuadSPI_CLK_SDR_MODE,               /* Clock Mode */
    QuadSPI_SINGLE_MODE,                   /* IO Mode */
    33000000,                                              /* Serial Clock: Read */

...

};

I would like now to set it into quad mode. I am not sure if it is enough only change the IO mode into "QuadSPI_QUAD_MODE".

Does someone have experience about it, or can someone give me hints about the settings for quad spi driver. I use the quad-spi 2 of VF3xx.

Many thanks in advance for any hints.

0 项奖励
回复
1 解答
1,190 次查看
BlueJay
Contributor III

Hi Daniel,

thanks for your reply.

Yes, there is init data structure :_bsp_quadspi1_init_data

The IO mode Needs to be changed into Quad mode

In additional the _bsp_quadspi1_flash_cmd needs to be updated also.

Regards

Bluejay

在原帖中查看解决方案

2 回复数
1,190 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Blue:

I think you can change the IO mode in the QuadSPI_INIT_STRUCT.

you also can use IOCTL command to do that.

ioctl(qspifd, QuadSPI_IOCTL_SET_QUAD_IO, NULL);

Regards

Daniel

0 项奖励
回复
1,191 次查看
BlueJay
Contributor III

Hi Daniel,

thanks for your reply.

Yes, there is init data structure :_bsp_quadspi1_init_data

The IO mode Needs to be changed into Quad mode

In additional the _bsp_quadspi1_flash_cmd needs to be updated also.

Regards

Bluejay