Author Topic: microblaze QSPI BSP example is not working  (Read 477 times)

Shantaram

  • Active Member
  • *
  • Posts: 5
microblaze QSPI BSP example is not working
« on: January 06, 2022, 06:12:19 AM »
Hello Folks,


Board:- TE0714-03
Part No: xc7a50tcsg325-2
Vitis Ver. 2019.2
QSPI Flash: Micron (mt25qu128)

 

 I am trying to run BSP example ( xspi_stm_flash_example) on board but its stuck in Flash_write loop.
Snippet from Code:-

/*

* Wait till the Transfer is complete and check if there are any errors

* in the transaction..

*/

while(TransferInProgress);

if(ErrorCount != 0) {

ErrorCount = 0;

return XST_FAILURE;

}


 
Always return XST_FAILURE.

 

Thanks in advanced.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1921
Re: microblaze QSPI BSP example is not working
« Reply #1 on: January 06, 2022, 09:22:11 AM »
Hi,
did you setup AXI-QSPI IP correctly on your Vivado design? Did you checked if you has timing issues on your microblaze design or important path which are maybe unconstrained?

"xspi_stm_flash_example" is from Xilinx, maybe it's better to ask also on Xilinx forum, I can't help much there.

br
John

Shantaram

  • Active Member
  • *
  • Posts: 5
Re: microblaze QSPI BSP example is not working
« Reply #2 on: January 06, 2022, 09:34:55 AM »
Hello john,

Thanks for prompt response.

AXI-QSPI IP is configured correctly. When I boot from QSPI its working. But i need to store some configuration parameter in QSPI.
For that I am referring BSP AXI QSPI example. But Its not Working it fails while Writing data into QSPI.



JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1921
Re: microblaze QSPI BSP example is not working
« Reply #3 on: January 06, 2022, 09:40:58 AM »
Hi,

Quote
When I boot from QSPI its working.
You mean you load something with your application from your microblaze from the flash?
QSPI boot on power up comes from bootrom, which doesn't use your mircoblaze and this ip.

br
John

Shantaram

  • Active Member
  • *
  • Posts: 5
Re: microblaze QSPI BSP example is not working
« Reply #4 on: January 06, 2022, 10:03:56 AM »
Hello John,

I have generated BIN file which include Bitstream and SREC SPI bootloader. The elf file( ELF to bootable SREC format) store in some offset location on QSPI. And its working well. So I have created two partition of QSPI. So first partition have BIN file and elf file (SREC format) and second partition is for storing the system level configuration parameter in run time (After booting). I am referring BSP QSPI example to store the data to Second partition offset, but it fails while writing data.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1921
Re: microblaze QSPI BSP example is not working
« Reply #5 on: January 06, 2022, 12:12:09 PM »
Hi,
Ok, than it looks like a software issue. In this case you should write one time to Xilinx forum, community is much bigger there. I didn't work with this example so I can't help much more.
And you should start SDK debugger step during to code to see where it exactly stops, maybe this helps to find out why it doesn't work.

br
John