Altera_Forum
Honored Contributor
19 years agoBootloader problems
Hello guys,
We have made our own bootloader, which boots a cyclone 1 and a stratix GX. First the Cyclone configures himself through an EPCS. The configuration which is loaded in the Cyclone loads another configuration, from a flash device, with a small bootloader program in the onchip-memory into the Stratix GX. When this is done the bootloader request the Nios-code for the actual program from the cyclone. The Cyclone then transfers the Nios-code to the Stratix GX's SRAM. after this the bootloader wil be stopped and there is a jump in the bootloader code to the address of the first word in the sram where the nios-code is stored. so far everything goes fine..... but when the code jumps to the Sram. My nios program won't run... what could be the problem? I know that SRAM is filled with the correct data because in the debug mode I can see it getting filled and that data is the same as the data provided by my script. I know that my jump works because when I let the bootloader code jump to the SRAM I can see that the bootloader start over and over again. this is my bootloader code: I did compile my bootloader program with the reset addres to onchip_memory and the exception_addres to SRAM in SOPC When i compiled my test program, the one that stands in SRAM, I compiled it with both the exception and reset addres at SRAM. Hope you guys have some tips for me.... Thanks in advance