Altera_Forum
Honored Contributor
10 years agoDS-5 Baremetal:Failed to load image
Hi,
I'm running a baremetal application to write and read a byte of data into the DDR memory. The attached image shows the configuration of the DS-5 debugger being used. The error log is as shown: Stopping running target Altera - Cyclone V SoC (Dual Core) on TCP:localhost on connection Connected to running target Altera - Cyclone V SoC (Dual Core) on TCP:localhost Execution stopped at: S:0x3FF84E5C source /v "D:\Altera\embedded\ds-5\sw\debugger\configdb\Scripts\altera_target_check.py" S:0x3FF84E5C LDR r3,[pc,#188] ; [0x3FF84F20] = 0xFF706FFF No SYSID registers could be found. Has a peripheral description file been supplied? source /v "D:\Altera\projects\system\software\spl_bsp\preloader.ds" +stop WARNING(CMD315): Target is not running +wait 5s +reset system +wait 5s +set semihosting enabled 0 +loadfile "$sdir/uboot-socfpga/spl/u-boot-spl" 0x0 Loaded section .text: S:0xFFFF0000 ~ S:0xFFFF7AE3 (size 0x7AE4) Loaded section .rodata: S:0xFFFF7AE4 ~ S:0xFFFF9D7B (size 0x2298) Loaded section .data: S:0xFFFF9D80 ~ S:0xFFFFAC53 (size 0xED4) Entry point S:0xFFFF0000 Target has been reset Execution stopped due to a breakpoint or watchpoint: S:0x00000000 S:0x00000000 LDR pc,[pc,#24] ; [0x20] = 0xA8 +set debug-from *$entrypoint # Set start-at setting to address of $entrypoint +start Reloading program Starting target with image D:\Altera\projects\system\software\spl_bsp\uboot-socfpga\spl\u-boot-spl Running from entry point Execution stopped at: S:0xFFFF0000 In start.S S:0xFFFF0000 39,0 _start: b reset +delete All user breakpoints deleted +tbreak spl_boot_device Breakpoint 2 at S:0xFFFF2084 on file spl.c, line 71 on file spl.c, line 81 +cont +wait 60s ERROR(CMD360): # in D:\Altera\projects\system\software\spl_bsp\preloader.ds:46 while executing: wait 60s ! Wait for stopped timed out ERROR(CMD656): The script D:\Altera\projects\system\software\spl_bsp\preloader.ds failed to complete due to an error during execution of the script loadfile "C:\Users\Administrator\Documents\DS-5 Workspace\app_test\Debug\app_test.axf" ERROR(CMD16-TAD11-NAL33): ! Failed to load "app_test.axf" ! Failed to write 8 bytes to address N:0x00117748 ! Target is running, cannot access. cd "C:\Users\Administrator\Documents\DS-5 Workspace" Working directory "C:\Users\Administrator\Documents\DS-5 Workspace" set debug-from main start Sometimes upon reload, I get this warning(s): WARNING(CMD399-COR168): ! Failed to start the target ! No function named "main" could be found WARNING(CMD407): Trying the entry point instead WARNING(CMD452-COR167): ! Breakpoint 3 has been pended! No compilation unit matching "C:/Users/Administrator/Documents/DS-5 Workspace/app_test/Debug/test.c" was found Am I missing anything in the configuration? Is there any specific jumper settings? I suspect the problem is initialization of the memory but not completely sure on it. Please advice on this issue. Thanks in advance. I am using a Cyclone V Arrow SocKit with Quartus 14.1 edition. The preloader and uboot were generated through the bsp-editor after the system was generated through Qsys. Best Regards, Nitin.