i.MX8MMini(845s) FlexSPI NOR Flash Boot Question ?

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

i.MX8MMini(845s) FlexSPI NOR Flash Boot Question ?

2,640 Views
Danube
Contributor IV

We want to try to i.MX8MMini FlexSPI NOR flash Boot

But can't file LUT setting example file in UUU tool ?

And UUU example setting for burn FlexSPI NOR flash.

We can see example file (qspi-nor-micron-n25q256a-config , qspi-nor-micron-mt35xu512-config) in i.MX6UL / i.MX6ULL / i.MX7D MFG tool

i.MX6ULL LUT setting example

0            /*dqs_loopback=0 or 1*/
0            /*hold_delay=0 to 3*/
0            /*hsphs=0 (Half Speed Phase sampling at non-inverted clock) or 1 (sampling at inverted clock)*/
0            /*hsdly=0 (Half Speed Delay one clk delay) or 1 (two clk cycle delay)*/
0            /*device_quad_mode_en=1 to enable sending command to SPI device*/
0            /*device_cmd=command to device for enableing Quad I/O mode*/
0            /*write_cmd_ipcr=hex value to be written to IPCR register for write cmd of device*/
2000000            /*write_enable_ipcr=hex value to be written to IPCR register for write enable of device*/
3            /*cs_hold_time=0 to 0xF*/
3            /*cs_setup_time=0 to 0xF*/
8000000        /*sflash_A1_size=size in byte(hex)*/
0        /*sflash_A2_size=size in byte(hex)*/
8000000        /*sflash_B1_size=size in byte(hex)*/
0        /*sflash_B2_size=size in byte(hex)*/
0            /*sclk_freq=0 to 6*/
0            /*busy_bit_offset=bit position of device BUSY in device status register*/
2            /*sflash_type=1 (Single), 2 (Dual), 4 (Quad mode of operation)*/
0            /*sflash_port=0 or 1 (Port B used)*/
1            /*ddr_mode_enable=0 or 1*/
0            /*dqs_enable=0 or 1*/
0            /*parallel_mode_enable=0 or 1*/
0            /*portA_cs1=0 or 1*/
0            /*portB_cs1=0 or 1*/
0            /*fsphs=0 (Full Speed Phase sampling at non-inverted clock) or 1 (sampling at inverted clock)*/
0            /*fsdly=0 (Full Speed Delay One clk delay) or 1 (two clk cycle delay)*/
0            /*ddrsmp=0 to 7 (sampling point for incoming data in DDR mode)*/
2818043d        /*lut[0] command sequence*/
39040d06        /*lut[1] command sequence*/
2400            /*lut[2] command sequence*/
0            /*lut[3] command sequence*/
0            /*lut[4] command sequence*/
0            /*lut[5] command sequence*/
0            /*lut[6] command sequence*/
0            /*lut[7] command sequence*/
0            /*lut[8] command sequence*/
0            /*lut[9] command sequence*/
0            /*lut[10] command sequence*/

0 Kudos
Reply
1 Reply

2,332 Views
igorpadykov
NXP Employee
NXP Employee

Hi Apollo

for uuu example one cam look at uuu.fspi in

Linux Binary Demo Files - i.MX 8MMini EVK

So one can try to build a FlexSPI imx-boot image using 4.9.123 GA or new   L4.14.78
Yocto image and boot out of the Micron Quad NOR SPI on EVK.  Then apply the same
concepts and build the image for the custom flash.

i.MX Software | NXP 

Seems uboot FlexSPI driver uses some predefined luts based on JEDEC-standard JESD216B

using command "FSPI_CMD_RDID" Read JEDEC ID in uboot/drivers/spi/fsl_fspi.c

fsl_fspi.c\spi\drivers - uboot-imx - i.MX U-Boot 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply