Forum Discussion
Altera_Forum
Honored Contributor
21 years agoI have the .text set to flash and the other 2 set to RAM. This is how I get the code compiled for flash. Then I run the Flash programmer and it works fine - code programmed to flash successfully. When I reset, the "Boot ROM" message comes up, but when I use the function call below (where SOME_ADDR is the address of flash) nothing happens. In addition I try to set the PC to 0x100000 (flash base) directly using the CLI, and then GO - nothing happens.
# define SOME_ADDR 0x .... void whatever () { void (*foo)(void) = (void (*)(void)) SOME_ADDR; ... foo(); /* call SOME_ADDR */ }