Altera_Forum
Honored Contributor
8 years agoRunning a Program from SDRAM instead of OCRAM
Hello,
I'm currently trying to run code I had previously run on the OCRAM onto the SDRAM. I was using the Bare Metal User Guide(https://www.altera.com/documentation/lro1424280108409.html) to do this, but found that changing the scatter file and using the preloader didn't help. I have tried adjusting the settings in the bsp-editor when creating my preloader but haven't had any luck so far. I am using the DS-5 compiler. The error I'm given is like this, which according to the tutorial is appearing because there is no preloader:ERROR(CMD16-TAD274-NAL22): ! Failed to load "bare metal-hello-world-01.axf"
! Failed to write 4,896 bytes to address S:0x02000000 while writing block of 4,096 bytes to address S:0x02000000
! General error on memory or register access. I am using this as my scatter file: SDRAM 0x02000000 0x02000000 ; 32M SDRAM
{
APP_CODE + 0
{
* (+ RO , + RW , + ZI )
}
ARM_LIB_STACKHEAP 0x03000000 EMPTY 0x0x01000000 ; Application heap and stack
{ }
} I'd appreciate any direction anyone could provide, including messing with any other settings available for this.