MQX 4.2 & Quad SPI driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MQX 4.2 & Quad SPI driver

ソリューションへジャンプ
1,382件の閲覧回数
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,166件の閲覧回数
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,166件の閲覧回数
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,167件の閲覧回数
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