MQX 4.2 & Quad SPI driver

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

MQX 4.2 & Quad SPI driver

Jump to solution
1,409 Views
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 Kudos
Reply
1 Solution
1,193 Views
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

View solution in original post

2 Replies
1,193 Views
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 Kudos
Reply
1,194 Views
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