Altera_Forum
Honored Contributor
22 years agoHow can I start different programs from flash.
How can I start different programs from flash.
Dependend on a configuration structure in flash I want to start different programs from flash. the reset vector in SOPC Builder should always point to address 0x000000 in flash. it then starts a self made factory programmed bootloader at 0x000000, ,which itself should be able to start different programs from flash, eg. program 1 at 0x100000 (in flash), program 2 at 0x200000 (in flash) till now I'm able to receive serial S-Records and write them into flash I had a look at the altera bootloader, and I think the programs are stored in flash in a special format: from bootloader.S# | dvb2004: Each "program record" looks like so:# | 4 bytes Length L# | 4 bytes Address A How can I convert the .elf files to S-Record files with different address regions in flash ? Each program should have the altera booltloader in front, which copies the program to the sram. How can I make a jump to the different programs (from c-code), perhaps small assembler routine. thanks