Running application on QSPI with U-Boot in IMX7D

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

Running application on QSPI with U-Boot in IMX7D

Jump to solution
1,684 Views
chandiniindavar
Contributor IV

Hi 

I am using "FreeRTOS_BSP_1.0.1_iMX7D_1.1_ER_Win" and following section 6.3 to run hello_world_qspi.bin

Built fsl-image-gui-imx7dsabresd.sdcard image by adding below line in to conf/local.conf [to enable qspi1 in U-Boot]

UBOOT_CONFIG = "qspi1" 

ERROR while loading SPI flash

=> fatload mmc 0:1 0x80000000 hello_world_qspi.bin
reading hello_world_qspi.bin
10604 bytes read in 33 ms (313.5 KiB/s)
=> sf probe 0:0
SF: Unsupported flash IDs: manuf ff, jedec ffff, ext_jedec ffff
Failed to initialize SPI flash at 0:0

Could any one please help me . what i am missing ?

Thanks in advance

Chandini

 

Labels (3)
0 Kudos
1 Solution
1,036 Views
chandiniindavar
Contributor IV

Hi Igor and  tianxing 

I got it working guys ..

as i said if your using kernel 4.1.12  ,we dont have to do any changes.

The problem is i was missing some hardware setting .

After hardware setting according to below . it started working fine

pastedImage_1.png

Thank a lot for replay guys

View solution in original post

0 Kudos
4 Replies
1,037 Views
chandiniindavar
Contributor IV

Hi Igor and  tianxing 

I got it working guys ..

as i said if your using kernel 4.1.12  ,we dont have to do any changes.

The problem is i was missing some hardware setting .

After hardware setting according to below . it started working fine

pastedImage_1.png

Thank a lot for replay guys

0 Kudos
1,036 Views
tian
Contributor I

the qspi flash resistor must be populated. Now it was not

0 Kudos
1,036 Views
igorpadykov
NXP Employee
NXP Employee

Hi chandini

for adding new flash ID please check

https://community.nxp.com/message/602919?commentID=602919#comment-602919 

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

0 Kudos
1,036 Views
chandiniindavar
Contributor IV

Thank for replay igor

I can find /driver/mtd/spi_nor.c 

I have already got below line in drivers/mtd/spi-nor.c

{ "n25q256a",    INFO(0x20ba19, 0, 64 * 1024,  512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_DDR_QUAD_READ) },

The link which you sent me is for  i.MX6UL , but i am bit not sure what i have to add inside structure for imx7d sabresd board.

Could you please help me ?

0 Kudos