Forum Discussion
Altera_Forum
Honored Contributor
22 years agoHow to Program Hynix flash memory?
I want to use Hynix 29LV160T in my nios2 board. As yet,HAL of NiosII doesn't support other flash memory except Intel and AMD. In the NIOS2 IDE,can i upload the program content (file) to SDRAM? Then i can program the flash memory other than CFI command.
3 Replies
- Altera_Forum
Honored Contributor
It is true that non-CFI flash devices are not supported by the Nios II flash programmer.
However, if you can get your program content into a binary format, using nios2-elf-objcopy or some equivalent, I think you should be able to have it linked in as a data section of your own "non-CFI flash programmer" routine using the Gnu "INCBIN" assembly directive. From there, your flash programmer software, including the program content with which you are trying to load flash, can be downloaded to Nios II using the IDE. Then all the programming routine needs to do is start grabbing words from the offset of the binary image you included with INCBIN, and programming them into flash. You can find details on use of the INCBIN directive in the file C:\altera\kits\nios2\documents\gnu-tools\binutils\as.html in your Nios II install. - Altera_Forum
Honored Contributor
nate_knight: Thank you for reply.But I can't find C:\altera\kits\nios2\documents\gnu-tools\binutils\as.html in Nios II install.
- Altera_Forum
Honored Contributor
http://www.delorie.com/gnu/docs/binutils/as_toc.html (http://www.delorie.com/gnu/docs/binutils/as_toc.html)
I believe this is the same thing. The doc is being added to the next release of Nios II. Kerri