Hello-
I'm working with an Altera Cyclone V SoC with a Cortex A9 core. In our application, we have an external SDRAM chip mapped into memory location 0x00100000-0xC0000000 on the SoC. I have a bootloader program that is downloaded to the On-Chip RAM (0xFFFF0000-0xFFFFFFFF) on the SoC.This bootloader runs first in order to initialize the SDRAM (among other things). Once this bootloader gets to its stopping point, the SDRAM can be loaded with the application code. This sequence works great when I run it in the ARM-DS5 environment with a USB Blaster II programmer.
I'm investigating whether I can use the Jlink programmer with Ozone to accomplish the same thing. I have it mostly working with my Jlink but I am still running into an issue. Here's a description of my problem:
From Ozone, using a .jdebug script I'm able to load the bootloader and run it.Then when bootloader reaches its stopping point the .jdebug script detects this and attempts to load the application to the SDRAM (using the File.Load() command).Every time it goes to load the application code, I see the error shown in ozone_error_1.png.
Immediately after that, I see the error shown in ozone_error_2.png.
Idon’t understand why it is trying to do a 'flash download' to programSDRAM? The memory range listed on the'flash download' dialog is clearly the SDRAM memory space. Is there something that I have to do to getJlink to recognize that region as SDRAM and not flash?
After these errors occur, I see the following errors reported in my console:
File.Load ("./Debug/sel2245-42.elf");
Debug.ReadIntoInstCache: updated instruction information within 2 code ranges (0x00100000-0x00113468)
Timeout while restoring target, core does not stop. (PC = 0xFFFF0148, CPSR = 0xA000007F, LR = 0xFFFF01C9)!
Timeout while preparing target, core does not stop. (PC = 0xFFFF01B8, CPSR = 0x4000007F, LR = 0xFFFF01C9)!
Failed to initialize RAMCodeTimeout while restoring target, core does not stop. (PC = 0xFFFF0160, CPSR = 0x6000007F, LR = 0xFFFF01C9)!Timeout while preparing target, core does not stop. (PC = 0xFFFF01BC, CPSR = 0x4000007F, LR = 0xFFFF01C9)!
Failed to initialize RAMCode
Download failed: J-Link reports an unspecified download error
Thank you in advance for any help you can provide!
-Joe
P.S. I have attached my .jdebug file for reference.
I'm working with an Altera Cyclone V SoC with a Cortex A9 core. In our application, we have an external SDRAM chip mapped into memory location 0x00100000-0xC0000000 on the SoC. I have a bootloader program that is downloaded to the On-Chip RAM (0xFFFF0000-0xFFFFFFFF) on the SoC.This bootloader runs first in order to initialize the SDRAM (among other things). Once this bootloader gets to its stopping point, the SDRAM can be loaded with the application code. This sequence works great when I run it in the ARM-DS5 environment with a USB Blaster II programmer.
I'm investigating whether I can use the Jlink programmer with Ozone to accomplish the same thing. I have it mostly working with my Jlink but I am still running into an issue. Here's a description of my problem:
From Ozone, using a .jdebug script I'm able to load the bootloader and run it.Then when bootloader reaches its stopping point the .jdebug script detects this and attempts to load the application to the SDRAM (using the File.Load() command).Every time it goes to load the application code, I see the error shown in ozone_error_1.png.
Immediately after that, I see the error shown in ozone_error_2.png.
Idon’t understand why it is trying to do a 'flash download' to programSDRAM? The memory range listed on the'flash download' dialog is clearly the SDRAM memory space. Is there something that I have to do to getJlink to recognize that region as SDRAM and not flash?
After these errors occur, I see the following errors reported in my console:
File.Load ("./Debug/sel2245-42.elf");
Debug.ReadIntoInstCache: updated instruction information within 2 code ranges (0x00100000-0x00113468)
Timeout while restoring target, core does not stop. (PC = 0xFFFF0148, CPSR = 0xA000007F, LR = 0xFFFF01C9)!
Timeout while preparing target, core does not stop. (PC = 0xFFFF01B8, CPSR = 0x4000007F, LR = 0xFFFF01C9)!
Failed to initialize RAMCodeTimeout while restoring target, core does not stop. (PC = 0xFFFF0160, CPSR = 0x6000007F, LR = 0xFFFF01C9)!Timeout while preparing target, core does not stop. (PC = 0xFFFF01BC, CPSR = 0x4000007F, LR = 0xFFFF01C9)!
Failed to initialize RAMCode
Download failed: J-Link reports an unspecified download error
Thank you in advance for any help you can provide!
-Joe
P.S. I have attached my .jdebug file for reference.