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++
12600 Discussions

How to programme flash through uart?

Altera_Forum
Honored Contributor II
1,074 Views

I want to know how to programe flash through uart? Thanks.

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
220 Views

I wrote a short program that reads data into a buffer (over USB, in my case) and then writes that data to the flash using the CFI flash device driver function alt_flash_cfi_write. Check the peripherals handbook on how to use the flash interface. If you don't want to write a whole sector at once (i.e. transfer a whole flash-sector's worth of data) you'll have to use the "fine-grained" flash interface. 

 

 

Andrew
0 Kudos
Altera_Forum
Honored Contributor II
220 Views

Armen, 

 

Did you ever figure out a way to do this? 

 

-Nick
0 Kudos
Altera_Forum
Honored Contributor II
220 Views

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif Now I can do this.

0 Kudos
Reply