Hello,
I'm trying to program a Cyclone V SoC using DS-5 and I get the following errors:
Stopping running target Intel SoC FPGA - Cyclone V SoC (Dual Core) on connectionConnected to running target Intel SoC FPGA - Cyclone V SoC (Dual Core)Execution stopped in SVC mode at S:0x3FF8D94CS:0x3FF8D94C B {pc}-0xc ; 0x3ff8d940cd "D:\UserData\z0045mwh\Documents\DS-5 Workspace"Working directory "D:\UserData\z0045mwh\Documents\DS-5 Workspace"Execution stopped in SVC mode at S:0x3FF8D94CS:0x3FF8D94C B {pc}-0xc ; 0x3ff8d940source /v "C:\intelFPGA\18.1\embedded\ds-5\sw\debugger\configdb\Scripts\altera_target_check.py"No SYSID registers could be found. Has a peripheral description file been supplied?source /v "D:\UserData\z0045mwh\Documents\DS-5 Workspace\FreeRTOSv10.3.1\FreeRTOS\Demo\CORTEX_A9_Cyclone_V_SoC_DK\preloader.ds"+stopWARNING(CMD315): Target is not running+wait 5s+reset system+wait 5s+loadfile "$sdir/uboot-socfpga/spl/u-boot-spl" 0x0Loaded section .text: S:0xFFFF0000 ~ S:0xFFFF671B (size 0x671C)Loaded section .rodata: S:0xFFFF671C ~ S:0xFFFF82E4 (size 0x1BC9)Loaded section .data: S:0xFFFF82E8 ~ S:0xFFFF91AF (size 0xEC8)Entry point S:0xFFFF0000Target has been resetExecution stopped in SVC mode at S:0x3FF8D94CS:0x3FF8D94C B shift+1073273152 ; 0x3FF8D940+set debug-from *$entrypoint # Set start-at setting to address of $entrypoint+start Reloading programStarting target with image D:\UserData\z0045mwh\Documents\DS-5 Workspace\FreeRTOSv10.3.1\FreeRTOS\Demo\CORTEX_A9_Cyclone_V_SoC_DK\uboot-socfpga\spl\u-boot-splRunning from entry pointExecution stopped in SVC mode at S:0xFFFF0000In start.SUnable to read source file D:/SJ/nightly/14.0/200/w64/acds/embedded/examples/hardware/av_soc_devkit_ghrd/software/preloader/uboot-socfpga/arch/arm/cpu/armv7/start.SS:0xFFFF0000 39,0 B reset ; 0xFFFF0070+deleteAll user breakpoints deleted+tbreak spl_boot_deviceBreakpoint 2 at S:0xFFFF110C on file spl.c, line 70 on file spl.c, line 80+cont+wait 60sERROR(CMD360): # in D:\UserData\z0045mwh\Documents\DS-5 Workspace\FreeRTOSv10.3.1\FreeRTOS\Demo\CORTEX_A9_Cyclone_V_SoC_DK\preloader.ds:46 while executing: wait 60s! Wait for stopped timed outERROR(CMD656): The script D:\UserData\z0045mwh\Documents\DS-5 Workspace\FreeRTOSv10.3.1\FreeRTOS\Demo\CORTEX_A9_Cyclone_V_SoC_DK\preloader.ds failed to complete due to an error during execution of the scriptloadfile "D:\UserData\z0045mwh\Documents\DS-5 Workspace\FreeRTOSv10.3.1\FreeRTOS\Demo\CORTEX_A9_Cyclone_V_SoC_DK\Debug\RTOSDemo.elf"ERROR(CMD16-TAD11-NAL33): ! Failed to load "RTOSDemo.elf"! Failed to write 8 bytes to address N:0x0010C2D8! Target is running, cannot access.set debug-from mainstartERROR(CMD350): Command not possible when runningwait
I'm also looking at the UART0 output and see this output:
data abort MAYBE you should read doc/README.arm-unaligned-accessespc : [<ffff018c>] lr : [<ffff0074>]sp : 3ff35630 ip : 00000010 fp : 00000001r10: 3ffa2bb1 r9 : 3ffaceb8 r8 : 3ff35f60r7 : 00000001 r6 : 3ffae32c r5 : 400001a7 r4 : ffff8368r3 : 00000000 r2 : c0000000 r1 : 00000048 r0 : 40000173Flags: nZcv IRQs off FIQs off Mode SVC_32Resetting CPU ...resetting ...U-Boot SPL 2013.01.01 (Apr 08 2018 - 17:00:50)BOARD : Altera SOCFPGA Cyclone V BoardCLOCK: EOSC1 clock 25000 KHzCLOCK: EOSC2 clock 25000 KHzCLOCK: F2S_SDR_REF clock 0 KHzCLOCK: F2S_PER_REF clock 0 KHzCLOCK: MPU clock 800 MHzCLOCK: DDR clock 400 MHzCLOCK: UART clock 100000 KHzCLOCK: MMC clock 50000 KHzCLOCK: QSPI clock 3125 KHzRESET: WARMINFO : Watchdog enabledSDRAM: Initializing MMR registersSDRAM: Calibrating PHYSEQ.C: Preparing to start memory calibrationSEQ.C: CALIBRATION PASSEDSDRAM: 1024 MiBALTERA DWMMC: 0reading u-boot.imgreading u-boot.imgU-Boot 2013.01.01 (Apr 08 2018 - 17:02:43)CPU : Altera SOCFPGA PlatformBOARD : Altera SOCFPGA Cyclone V BoardI2C: readyDRAM: 1 GiBMMC: ALTERA DWMMC: 0*** Warning - bad CRC, using default environmentIn: serialOut: serialErr: serialSkipped ethaddr assignment due to invalid EMAC address in EEPROMNet: mii0Warning: failed to set MAC addressHit any key to stop autoboot: 0reading u-boot.scr** Unable to read file u-boot.scr **Optional boot script not found. Continuing to boot normallyreading zImage** Unable to read file zImage **reading socfpga.dtb** Unable to read file socfpga.dtb **Bad Linux ARM zImage magic!SOCFPGA_CYCLONE5 #
Am I running into some problem because there is already a Linux kernel on the HPS already? Any help is greatly appreciated.
I'm stuck with the same very problem and cannot proceed. Were you able to solve it? I'm also getting the error:
"
ERROR(CMD360): # in C:\Work\FreeRTOSv10.3.1\FreeRTOS\Demo\CORTEX_A9_Cyclone_V_SoC_DK\preloader.ds:45 while executing: wait 60s! Wait for stopped timed outERROR(CMD656): The script C:\Work\FreeRTOSv10.3.1\FreeRTOS\Demo\CORTEX_A9_Cyclone_V_SoC_DK\preloader.ds failed to complete due to an error during execution of the scriptloadfile "C:\Work\FreeRTOSv10.3.1\FreeRTOS\Demo\CORTEX_A9_Cyclone_V_SoC_DK\Debug\RTOSDemo.elf"ERROR(CMD16-TAD11-NAL33): ! Failed to load "RTOSDemo.elf"! Failed to write 8 bytes to address N:0x0015447C! Target is running, cannot access.set debug-from mainstart
Help would be very much appreciated.
Kind regards,
Filip in Sweden
Hi Filip,
Sorry but I still don't have a solution to this. It's taken a bit of a back seat lately while I work on more pressing issues. Please let me know if you find a solution.