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.
解決済! 解決策の投稿を見る。
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
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
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