Altera_Forum
Honored Contributor
20 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 - When my programation is completed I do a asm("JMP 0x00010000"). I was expecting the application to start !. Unfortunatly, NIOS IDE inserts a piece of code before my application in the application.flash. For intance, my application is set to work in flash, so the ALTERA boot_loader_CFI.S is inserted in front of my application. The problem is : I don t know to which address I must do my JMP, to reach the main() of my application !. If I use global data in my application, the JMP address is different. If I declare functions before the main(), the main() address is again different !. I am really stucked now. Please Help !.