UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant fujiajun
Participant
566 Views
Registered: ‎01-11-2018

srec bootloader running problem

Hi all:

I am now working for booting  a hello world app in ddr3 using the srec spi bootloader.

The problem is when I use the program FPGA function in SDK to generate the download.bit and program FPGA, the bootloader just print "SREC SPI Bootloader" and it freeze here. But when I tried to run the srec bootloader.elf from the "RUN AS" in SDK it just works and the hello world also works.

I have tried one day to solve the problem, but failed. What I missed? Anything can save me!

0 Kudos
4 Replies
Mentor watari
Mentor
550 Views
Registered: ‎06-16-2013

Re: srec bootloader running problem

Hi @fujiajun

 

Would you make sure the followings ?

 

- Consider memory map on SPI FLASH

- Make sure setting of SPI FLASH in srec boot loader in xilisf library

- Make sure value of "FLASH_IMAGE_BASE_ADDR" in blconfig.h

- Make sure location of code section, data section, heap and stack section and heap/stack size in script.ld

 

Because of system debugger can resolve above considerations. Therefore it works fine.

 

Best regards,

 

Participant fujiajun
Participant
528 Views
Registered: ‎01-11-2018

Re: srec bootloader running problem

Thank you for your reply first.

Yes, I have done this.

I tried configure my SPI ip with standard configuration, the bootloader can boot fine. The problem we mentioned before , happened when I configure the ip with the QUAD configuration.

It seems the SREC loader is fail in the middle of the two printed information.

0 Kudos
Participant fujiajun
Participant
524 Views
Registered: ‎01-11-2018

Re: srec bootloader running problem

- Consider memory map on SPI FLASH

I am sure the other things  I have done, but can you explain this further? Thanks.

0 Kudos
Mentor watari
Mentor
519 Views
Registered: ‎06-16-2013

Re: srec bootloader running problem

Hi @fujiajun

 

> - Consider memory map on SPI FLASH

 

Because of this SPF FLASH has two binary file.

One is FPGA bit file with microblaze SPI SREC code. This file size depends on FPGA device.

Other is your program which run on DRAM.

 

In this case, these files are independently placed on SPI FLASH. No overlap.

 

Therefore, I already mentioned as "Consider memory map on SPI FLASH".

 

Best regards,

 

 

0 Kudos