Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHi austin944,
I eventually could boot my application from SD. The memory issue of my previous post was actually a false problem: data gets loaded correctly; I don't know why, but sometimes the disassembly in the debugger is correct, sometimes is completely messed up because of the half-word shift. I haven't investigated further on this point for the moment. The data 0xEA00024 at address 0x100040 is correct, too: I made some sort of copy&paste error when I compared the memory. You were right, I had to use the raw memory image directly from objcopy output; no need to use the one created by mkimage. As I said above, the application starts but then it hangs when the code initializes irq and peripherals, and that's why I thought I could not boot it. Actually it did boot and run for a very short moment: I added a LED blink at the very beginning of main() to confirm this. My next task is to find out the missing initializazion (or whatever) which prevents the code execution to go further. It runs perfectly when I start with the debugger, so there's no problem with the application itself.