News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

can't reflash the qspi

Started by vishav26, July 21, 2020, 12:30:55 PM

Previous topic - Next topic

vishav26

Dear Trenz,

To start I am using the following hardware and tools:
hardware: TE0720 1cf 1gb
Software:
Petalinux 2019.2
Vivado 2019.2
Trenz board files from https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board

I flashed the qspi yesterday with a BOOT.bin which was almost 30MB and took some time to flash. I tried again flashing the device but it fails saying the error: Problem in Initializing Hardware

I used the following command to flash:
program_flash -f BOOT.bin -offset 0 -flash_type qspi-x4-single -fsbl fsbl.elf -cable type xilinx_tcf url TCP:127.0.0.1:3121

I also tried jtag flash with following command:
program_flash -f BOOT.bin -offset 0 -flash_type qspi-x4-single -fsbl fsbl_flash.elf -cable type xilinx_tcf url TCP:127.0.0.1:3121

Zynq> sf probe 0 0 0
Warning: SPI speed fallback to 100 kHz
SF: unrecognized JEDEC id bytes: 20, 00, 00
Failed to initialize SPI flash at 0:0 (error -2)
Zynq> ERROR: [Xicom 50-186] Error while detecting SPI flash device - unrecognized JEDEC id bytes: 20, 00, 00
Problem in running uboot
Flash programming initialization failed.

ERROR: Flash Operation Failed


Before yesterday flashing was working just fine untill I flashed this big image (~30MB). Now I cannot flash anymore. It would be great if you can recommend me some directions to proceed.

Thanks & Regards
Vishav

JH

Hi,
which boot mode did you set?

can you try again but change boot mode to SD (without content on SD), and use our special FSBL for QSPI programming, which will be provided on our reference designs:
https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board
https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board#TE0720TestBoard-Download

br
John

vishav26

Hi,

Thanks for the reply.

Quotecan you try again but change boot mode to SD (without content on SD)

How can I change the boot mode? Is there any switch/jumper to do that in hardware?

Quoteand use our special FSBL for QSPI programming

Do you mean fsbl_flash.elf file by special FSBL? I tried it too but it still does not work. I have also mentioned it in my post.

Thanks & Regards
Vishav

JH

Hi,

QuoteDo you mean fsbl_flash.elf file by special FSBL? I tried it too but it still does not work. I have also mentioned it in my post.
This can be a problem of Vivado 19.2, I've ask on Xilinx forum for some solution but didn't get  answers until now:
https://forums.xilinx.com/t5/ACAP-and-SoC-Boot-and/Programming-QSPI-flash-failing/m-p/1125527#M4983

So change boot mode to SD(without SD content) and try again with our special fsbl for QSPI programming.
Change boot mode will be done with JM1-32 Pin of the Module B2B respectively JB1-31 on the  Carrier B2B, see:
https://wiki.trenz-electronic.de/display/PD/4+x+5+SoM+Integration+Guide#id-4x5SoMIntegrationGuide-4x5ModuleControllerIOs

I don't know which carrier you used, so you must check how this pin is connected on your carrier

br
John