Forum Discussion
Altera_Forum
Honored Contributor
16 years agofail to boot from norflash to sdram?
hi~~~everyone~~
I have a problem,I use the tool quartus 9.0(sp2)+ IDE9.0(sp2) to embed a nios system on my board. The Fpga device is CycloneIII.cpu clock is 100Mhz, sdram clock is 100Mhz,and phase offset is -67 degree to cpu clock. i use quartus 8.0+ IDE8.0 instead, it do not works for me. When i use "run as",it can run at sdram,but when i download the .elf to the norflash and the .pof to the epcs,after power on,the c program can not run at sdram,it seems it not copy the code from the norflash to the sdram to run at sdram.if i put the .text in the onchip_ram or cfi_controller instead,it works. In additon , the chip of sdram is very hot when i touch it with my fingers. I also want to know the function of printf whether or not there is a bug in it. it often prints the thing which is not wanted. it often prints unreasonable things. I really don't know what happened.please helps,thank you all!!!!3 Replies
- Altera_Forum
Honored Contributor
Where is your Reset Address pointed on the Nios II CPU Wizard (it should be pointed at the norflash's base address)? How are you programming your norflash?...your EPCS?
Use elf2flash and sof2flash, along with nios2-flash-programmer (or the Nios II Flash Programmer in the IDE) to program your flash content. Regarding printf...no known bug. If you're seeing this over jtag_uart, then I'd suspect some sort of SI (signal integrity) issue. Cheers, --slacker - Altera_Forum
Honored Contributor
thank you for your time, i have found the problem, the power supply is not correct.it is the reason why the chip of sdram is too hot.thank you very much.
- Altera_Forum
Honored Contributor
hi,dear slacker,i use the right power supply,but it still can not boot from the flash to sdram.no idea what is wrong.
i use the Nios II Flash Programmer in the IDE to program my flash content.is it wrong?