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++
12745 ディスカッション

SPI Slave firmware upgrade

Altera_Forum
名誉コントリビューター II
1,326件の閲覧回数

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 件の賞賛
2 返答(返信)
Altera_Forum
名誉コントリビューター II
582件の閲覧回数

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.
Altera_Forum
名誉コントリビューター II
582件の閲覧回数

Hello guys. 

 

I'v found the solution here: 

 

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

 

Thank you for help !
返信