Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

SPI Slave firmware upgrade

Altera_Forum
Honored Contributor II
1,068 Views

Hello folks !! 

 

I'm writing because I need some suggestions on how to upgrade the firmware on a SPI slave. In this scenario I have a .txt file which contains the bytes I need to send, via SPI protocol, to a SPI slave hardware. 

 

The best thing I have tought is to open the .txt and copy its content into a variable. The problem is that the firmware has 224 KB size for a total of about 57K element.. And I have to initialize the variable by hand.. element x element... 

 

Any suggestions ?? 

 

Thank you for help !!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
324 Views

Could you be more precise?  

 

I guess you can copy your text file to flash, read it from there to ram and from ram send the data to SPI slave.
0 Kudos
Altera_Forum
Honored Contributor II
324 Views

Hello guys. 

 

I'v found the solution here: 

 

http://www.alteraforum.com/forum/showthread.php?t=31611 

 

Thank you for help !
0 Kudos
Reply