fpga4fun.com Forum Index fpga4fun.com
where FPGAs are fun
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Configuring FPGA boot rom causes program to run half speed

 
Post new topic   Reply to topic    fpga4fun.com Forum Index -> FX2 FPGA boards
View previous topic :: View next topic  
Author Message
russdx



Joined: 13 Mar 2010
Posts: 7

PostPosted: Sat Mar 13, 2010 11:14 pm    Post subject: Configuring FPGA boot rom causes program to run half speed Reply with quote

when i configure my FPGA (Xylo) normally, It runs the correct speed (24mhz) yet if i configure the boot prom with the very same rbf it will run half speed on start up (12mhz)

any ideas on what i may be doing wrong? (iv noticed you can set the fx2 clk speed 12/24/48, its like even though this is set to 24 when i program the boot prom it resets it self to 12mhz)

im using the FPGAconf 2.12.02


any help would be greatly appreciated as my project is now ready to be run stand alone without a usb umbilical cord connected to it Smile and would be great if it ran 24mhz when it starts up Smile
Back to top
View user's profile Send private message
fpga4fun
Site Admin


Joined: 18 Sep 2003
Posts: 825

PostPosted: Sun Mar 14, 2010 1:23 am    Post subject: Reply with quote

12MHz is the native speed of the board but you can change it by adding an EEPROM to the FX2 and programming it with this file from the StartupKit.
"EEPROM FX2 change startup clock to 24MHz.bin"

Check also the doc chapter 21.
Back to top
View user's profile Send private message
russdx



Joined: 13 Mar 2010
Posts: 7

PostPosted: Sun Mar 14, 2010 12:38 pm    Post subject: Reply with quote

I see

When i do a search for I2C devices nothing shows up / Trying to program the I2C EEPROM just gives an error

I did notice in the documentation it mentions the FPGA must be configured with a “soft macro” I2C controller.

I could not find any example rbf files to do this.
Back to top
View user's profile Send private message
fpga4fun
Site Admin


Joined: 18 Sep 2003
Posts: 825

PostPosted: Sun Mar 14, 2010 2:21 pm    Post subject: Reply with quote

It has nothing to do with a soft macro I2C controller, what is missing is an I2C EEPROM, you have to either solder one on the board or connect one to the I2C connector. Then you can program it.
Back to top
View user's profile Send private message
jasimpson



Joined: 27 Jun 2007
Posts: 5

PostPosted: Tue Aug 10, 2010 12:33 am    Post subject: Reply with quote

I'm trying to do the same thing, except I'd like to set the default to 48MHz.

Can you provide a "EEPROM FX2 change startup clock to 48MHz.bin" I2C EEPROM bin file that I could use for this purpose?

I'd really appreciate it. Thanks.

PS I would use the PLL, but the PPL is already being used to generate two other clocks with speeds incompatible with 48MHz.
Back to top
View user's profile Send private message
fpga4fun
Site Admin


Joined: 18 Sep 2003
Posts: 825

PostPosted: Tue Aug 10, 2010 5:57 am    Post subject: Reply with quote

Send a request to KNJN, they might have the file you need.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    fpga4fun.com Forum Index -> FX2 FPGA boards All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group