Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20693 Discussions

Can I change configuration's address ?

Altera_Forum
Honored Contributor II
1,391 Views

hi,all 

 

I want to add update function to my EP2C8 + EPCS16 board using rs232 port, 

 

I know that the fpga configuration data is stored in EPCS16 from address 0x0, 

 

when power on, EP2C8 read configuration data from epcs16 by AS mode, 

 

I want to place another configuration data copy in epcs16, and when power on,  

 

fpga read the new configuration data, how can I do it ? or anyone know other update  

 

solution? 

 

thanks very much
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
579 Views

As far as programming the EPCS16 device, you may be able to use the Serial Flash Loader megafunction: 

http://www.altera.com/literature/an/an370.pdf 

or you could use the "EPCS Device Controller Core" (SoPC builder based) 

http://www.altera.com/literature/hb/nios2/n2cpu_nii51012.pdf 

 

For loading multiple configurations, you'll need to use the remote update core: 

http://www.altera.com/literature/ug/ug_altremote.pdf 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
579 Views

thanks for your reply.  

 

It's useful for me.  

 

ep2c8 must read config data from address 0 of the epcs16 ? 

 

can i change ep2c8 read config data from another address when power on?
0 Kudos
Altera_Forum
Honored Contributor II
579 Views

On power-on no. However, using the remote update core, you can specify a different address and trigger a reconfig. 

 

So 

1 - On power-on, config data at address 0 will always be booted first. 

2 - If you want to boot from another address other than 0, write to the remote update core to specify the new address and trigger a reconfig. 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
579 Views

thanks 

 

I think I should do these to implement system updating by rs232 : 

 

rs232 receive config data and software (flash file) from PC, and store it in sdram,  

 

after all bytes are received successful, using epcs hal funtion write config data to  

 

epcs16 from address 0, and write software image follow it. then restart system, 

 

That's OK ? 

 

Any other better idles ?
0 Kudos
Reply