How to change QuadSPI configuration parameters

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

How to change QuadSPI configuration parameters

823 Views
masaru_kamimura
Contributor I

Hello iMX7D engineer.

I want to change the QuadSPI configuration parameters in the program.

I think each parameter can be set in some register.


Now I want to change the following parameters.

I can't find a way out of it in the Reference Manual.

- Serial Clock Frequency

   I want to change 01 to 00.
   01 49MHz -> 00 18MHz

- Mode of operation of serial Flash

   I want to change 04 to 01.

   04 Quad -> 01 Single


What bit in what register should I change?
I would be happy if there was a correspondence table for each parameter and each register.

pastedImage_5.png

Labels (1)
0 Kudos
3 Replies

751 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

Thank you for contacting us.

The corresponding information is also available in the same reference manual you already referred to, chapter 6.6.6.3. Nevertheless, there is a typo in the reference manual; the correct address shall be 0x1000 not 0x400 and every parameter size shall be taken into account when setting the QSPI (table 6-50).

Hope it helps!

BR,

Ivan.

0 Kudos

751 Views
masaru_kamimura
Contributor I

Hi Ivan

Thank you for your information.

I want to know how to change and set the register.

Serial Clock Frequency -> What register to change?

Mode of operation of serial Flash -> What register to change?

Please let me know if you know.

Best regards

Kamimura

0 Kudos

751 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

Please refer to the table 6-50 in the reference manual. The offsets are still respected but the correct SPI address is 0x1000 in FLASH as mentioned before, so if you want to write e.g. to DQS Loop back, the offset is 0 so it will go from base address + 4 bytes. Then you will find the address for the next parameter e.g. Hold delay, with offset 4. Please refer to that table and write to the correct address for the parameters you are interested on.

BR,

Ivan.

0 Kudos