Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNeed a way to make firmware upgrade
Hello, I'm using altera cyclone with flash and Sram and usb_uart. My goal is to upgrade the commands to the nios processor(upgrade the Nios code) without using jtag. I want the cpu to read it...
Altera_Forum
Honored Contributor
16 years ago10x!...
Just for you to know... I'm intending to write 2 codes: 1. Code that manage the flash. that means that It will supervise on the codes that I will write in the flash(will make sure the code is good, no problems,check versions update,write the versions to the flash and so) this code will be permenant and I'll put it on other device(mabye on-chip memory). 2. the actuall version of the program.it will be writen on the flash. If I got your right, if I want to read the code from the flash I just need to write(assuming that the on-chip code will manage the flash right and watch for errors): { register unsigned int my_reg; my_reg = (unsigned int)<the flash address like defined in SOPC>; __asm__("jmp %0;" :/*no output*/ :"r"(my_reg)); } 10x alot.