Forum Discussion
a question of download
Assume there are helloworld.c uart.c receive.c and so on.Now,I want to download them to flash,how to do it?Begin,I think I can only download a .srec to flash.In the end ,I found It can download several *.srec to flash.How to do it?
7 Replies
- Altera_Forum
Honored Contributor
Need a little more info.
If you're using NIOS II they have provided a flash programmer in the new IDE. If you use NIOS I then someone here can give you a hand (never don't it myself). - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by badomen@Aug 19 2004, 06:48 AM need a little more info.if you're using nios ii they have provided a flash programmer in the new ide. if you use nios i then someone here can give you a hand (never don't it myself). --- Quote End --- I use NIOS I,please give me the more information.
- Altera_Forum
Honored Contributor
On the altera site I think there is a flash "bootloader" document. That should give you a pretty good idea of how to do it.
- Altera_Forum
Honored Contributor
It sounds like those three .c files are all part of one project correct? When they are built using nios-build in the Nios SDK, it should create one .srec file that represents the entire program, say for instance hello_world_complete.srec. Using the srec2flash utility you can convert that .srec to a .flash file. Running nios-run on the resulting .flash file programs it into flash. The GERMS monitor running on Nios handles all the flash programming details.
- Altera_Forum
Honored Contributor
It sounds like those three .c files are all part of one project correct? Yes ,It is.When they are built using nios-build in the Nios SDK, it should create one .srec file that represents the entire program, say for instance hello_world_complete.srec. Why it should create one .srec file that represents the entire program.I don't think so.I mean how to download several .flash files to the ext_flash.Let me see a flash "bootloader" document on the altera web site.
- Altera_Forum
Honored Contributor
Not sure what that was about.
Have you searched this forum yet (downloading to flash is a common topic here) - Altera_Forum
Honored Contributor
I have searched on this forum.But I did not get any useful information.If you know how to do it?Please give me a hand?
Good luck and godspeed.