cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
revital.l
Visitor
Visitor
9,105 Views
Registered: ‎02-23-2016

SPI SREC Bootloader

Hi,

 

This bootloader is working for me.... but I works very slow (takes 7 seconds)

How can I accelerate it?

I heard there is a dividor in the spi driver - how can I change it?

 

Thanks Alot,

Revital

0 Kudos
Reply
8 Replies
revital.l
Visitor
Visitor
9,102 Views
Registered: ‎02-23-2016

SW can change it through XQspiPs_SetClkPrescaler function 

But we don't use spi ps but axi spi....

There is no appropriate function for that....

 

Thanks,

Revital

0 Kudos
Reply
debugasm
Adventurer
Adventurer
9,098 Views
Registered: ‎02-23-2013

Change type of bootloader.

 

Use a "Binary" bootloader instead of "SREC".

 

debugasm

 

0 Kudos
Reply
revital.l
Visitor
Visitor
9,095 Views
Registered: ‎02-23-2016

I am using a template project

There is no binary bootloader in the templates only SREC

 

Thanks,

Revital

0 Kudos
Reply
smarell
Community Manager
Community Manager
9,065 Views
Registered: ‎07-23-2012

Please refer to https://forums.xilinx.com/t5/Embedded-Development-Tools/very-slow-SPI-bootloader/td-p/642007
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos
Reply
revital.l
Visitor
Visitor
8,746 Views
Registered: ‎02-23-2016

It is solved...

 

Thanks

0 Kudos
Reply
legend198908
Visitor
Visitor
2,949 Views
Registered: ‎12-07-2017

Hi, revital.l:

             How did you solve this problem ?  I also met this problem, my boot period is more than 32s.

                                  

0 Kudos
Reply
20801700
Participant
Participant
1,291 Views
Registered: ‎07-24-2017

This one is way faster:

https://github.com/henrikbrixandersen/elf-bootloader/blob/master/lib/sw_apps/elf-bootloader/src/elf-bootloader.c

write the elf file in your flash as it is (not in SREC format). From eb-config.h choose the base address of your elf file. You might want to change SPI_READ_OPERATION and SPI_FLASH_NDUMMY_CYCLES parameters depending on the flash setup you are using.

 

Btw, it is not mine, I just want to put it in here so that people with this problem can reach it easily.

 

0 Kudos
Reply
bkzshabbaz
Contributor
Contributor
1,270 Views
Registered: ‎01-25-2018

Do you have 

#define VERBOSE 

in your bootloader.c file?

I found that commenting out/removing that line will make the bootloader run faster.

0 Kudos
Reply