Forum Discussion
Altera_Forum
Honored Contributor
21 years agoJMP to flash after boot
This is my application : - I have a custom bootloader in my flash : address 0x00000000 - 0x00010000 - I program via PCI an application.flash to my flash : address 0x00010000 - 0x00080000 ...
Altera_Forum
Honored Contributor
21 years agoThanks for the answer,
My sofware version are : Quartus II 4.2 SOPC builder 4.2 and NIOS IDE 1.1.0 My Flash address : 0x00000000 My Sram address : 0x00800000 My Reset address : 0x00000000 (SOPC builder) My Exception address : 0x00800000 (SOPC builder) the "Boot" program is in the flash at 0x00000000 address the "Download" program in in the flash at 0x00010000 address the "Boot" program is configured : . text -> sram .rodata -> sram .rwdata -> sram the "Download" program is configured : . text -> cfi_flash .rodata -> onchip memory .rwdata -> onchip memory The both program has the crt0.o boot loader included in the projet. When we do the Jmp to the main in flash at the end of the "Boot" program to launch the "Download" program, we don't execute the crt0 sofware but it seems that some initialization are missing (bss for example) and the call to functions from the main of the "download" program is impossible (the program crash). Perhaps, we must use some parts of the crt to initialize some data and erase the rest ? thanks for your help.