We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello!
I try to load and run U-boot binary image to RAM by DS-5. I use Jtag connection to my Arm-board
I defined Debug Configuration to run uboot.ds script, which should load and run u-boot image (for Linux).
The U-boot image is binary file having 1024 x 1024 = 1,048,576 bytes
This script fails on a specific line.
1. The original edition of this line (that I get from Arm-board provider) is:
loadfile <path>/uboot.bin 0x0
The DS-5 Commands window, when running this line prints the following error:
+loadfile D:/Achilles/NfsFiles/uboot-socfpga/uboot.bin 0x0ERROR(CMD16-COR107): # in D:\Achilles\NfsFiles\uboot.ds:23 while executing: loadfile D:/Achilles/NfsFiles/uboot-socfpga/uboot.bin 0x0! Failed to load "uboot.bin"! Unable to detect image type of file "D:\Achilles\NfsFiles\uboot-socfpga\uboot.bin"ERROR(CMD656): The script D:\Achilles\NfsFiles\uboot.ds failed to complete due to an error during execution of the script
2. When I replaced this original line by more matching (by my opinion):
restore <path>/uboot.bin binary 0x0
I get the following error
+restore D:/Achilles/NfsFiles/uboot-socfpga/uboot_rls.bin binary 0x0Target Message: Memory access caused precise abort.Debug Precise Abort Registers : DFSR = 0x00001808, DFAR = 0x00000000ERROR(ITR205-TAD59-NAL18): # in D:\Achilles\NfsFiles\uboot.ds:24 while executing: restore D:/Achilles/NfsFiles/uboot-socfpga/uboot.bin binary 0x0! Unable to restore image! Download of 1,048,576 bytes to address S:0x00000000 failed while writing block of 4,096 bytes to address S:0x00000000! Bus error on memory operation.ERROR(CMD656): The script D:\Achilles\NfsFiles\uboot.ds failed to complete due to an error during execution of the script
Please help,
Yakov
Hi YakovTo load a plain binary image (as opposed to e.g. an ELF image), you are right that a "restore ... binary" command must be used. See developer.arm.com/.../restoreRegarding the download failure, are you sure you have RAM available at address 0x0 (rather than Flash), and it is writable? Try opening a Memory view in the Debugger, and manually writing some test values to address 0x0.Please be aware that DS-5 is now quite old and has been superseded by "Arm Development Studio". Are you able to update to Arm DS? A free trial of the latest Arm DS Gold Edition is available from developer.arm.com/.../downloadsHope this helpsStephen
Hi Stephen,
Thank you for the answer.
Regarding your question "are you sure you have RAM available at address 0x0"
Yes, I sure. I found ELF file and the line below works without error
loadfile <path>/uboot.elf 0x0
I can not upgrade DS-5 to the new version because I use Intel Development Kit for Altera FW design. DS-5 upgrade can cause to unpredictable behavior
Best Regars,