Altera_Forum
Honored Contributor
10 years agoa question about boot from QSPI
Hi,
I need some help about boot from QSPI. I know altera named our boot-stages as BootROM, Preloader, U-boot or RTOS or Baremetal on 3th stage. I have succeeded to boot from QSPI now. But I want to divide the Baremetal stage into 2 stages to acomplish some other jobs. Stage1:UART burn Program (1)If there is handshake signal from UART,program will receive Uart data stream--"App Pragram data" and write it to QSPI. Uart data stream is tranmited from Uart of PC and this data file is .bin generated by DS-5. (2)If there is no handshake signal,program will read App Pragram data from QSPI and write it to RAM.then jumps to entry point of App Pragram. so,after powerd on,Preloader will load this program,now I can do it. UART burn Program is stored from 0x60000 of QSPI and runs from 0x100040 of DDR. Stage2:App Pragram. ... UART burn Program is stored from 0x160000 of QSPI and runs from 0x200040 of DDR. I have modified .ld file for RAM region. But when program counter jumps from Stage1 to Stage2,App Pragram doesn't run! I simlpy add a jump cmd at the end of Stage1,such as ‘b 0x200000’, and program counter indeed jumps to this address. do I missed something? Thanks!