# Intel Cyclone V DE10 freeRTOS

**URL:** <https://forums.freertos.org/t/intel-cyclone-v-de10-freertos/22790>\
**Category:** Kernel\
**Tags:** debug, tutorial\
**Created:** [March 20, 2025, 12:29pm UTC](https://forums.freertos.org/t/intel-cyclone-v-de10-freertos/22790 "2025-03-20T12:29:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saud](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Saud](https://forums.freertos.org/u/Saud)\
**Post date:** [March 20, 2025, 12:29pm UTC](https://forums.freertos.org/t/intel-cyclone-v-de10-freertos/22790/1 "2025-03-20T12:29:33Z")

</div>

I’ve trying to do the Cyclone V FreeRTOS tutorial on DE10-Standard RTOS\_Altera\_SoC\_ARM\_Cortex-A9)

So far I have resloved alot of issues such as:  
1. Adding all the include paths.  
2. Getting the toolchian arm-altera-eabi from an older version of ARM DS-5.  
3. Excluding “alt\_interrupt\_armcc.s” from the build process.  
4. Added all the compiler and linker flags.  
5. Resolved some of the issues in FreeRTOSConfig.h

The project compiles and go through the build process successfully, but once I start debugging the code on the board I get the following error:

Stopping running target Intel SoC FPGA - Cyclone V SoC (Dual Core) on connection  
Connected to running target Intel SoC FPGA - Cyclone V SoC (Dual Core)  
Execution stopped in SVC mode at S:0xFFFF2C5C  
S:0xFFFF2C5C B {pc} ; 0xffff2c5c  
cd “/home/e/developmentstudio-workspace”  
Working directory “/home/e/developmentstudio-workspace”  
Execution stopped in SVC mode at S:0xFFFF2C5C  
source /v “/opt/arm/developmentstudio-2023.1/sw/debugger/configdb/Scripts/altera\_target\_check.py”  
S:0xFFFF2C5C B {pc} ; 0xffff2c5c

No SYSID registers could be found. Has a peripheral description file been supplied?

source /v “/home/e/de10/FreeRTOS-8.2.2/FreeRTOS/Demo/CORTEX\_A9\_Cyclone\_V\_SoC\_DK/preloader.ds”  
+stop  
WARNING(CMD315): Target is not running  
+wait 5s  
+reset  
+wait 5s  
Target has been reset  
Execution stopped in SVC mode due to a breakpoint or watchpoint: S:0x00000000  
S:0x00000000 LDR pc,[pc,#24] ; [0x20] = 0xA8  
+loadfile “$sdir/uboot-socfpga/spl/u-boot-spl” 0x0  
Using the LLVM DWARF Parser for this file /home/e/de10/FreeRTOS-8.2.2/FreeRTOS/Demo/CORTEX\_A9\_Cyclone\_V\_SoC\_DK/uboot-socfpga/spl/u-boot-spl  
Loaded section .text: S:0xFFFF0000 ~ S:0xFFFFBAB3 (size 0xBAB4)  
Loaded section .rodata: S:0xFFFFBAB4 ~ S:0xFFFFDE0B (size 0x2358)  
Loaded section .data: S:0xFFFFDE0C ~ S:0xFFFFDEB3 (size 0xA8)  
Loaded section \_\_u\_boot\_list: S:0xFFFFDEB4 ~ S:0xFFFFE6F3 (size 0x840)  
Entry point S:0xFFFF0000  
+set semihosting enabled true  
Semihosting server socket created at port 8000  
+set debug-from \*$entrypoint # Set start-at setting to address of $entrypoint  
+start  
Starting target with image /home/e/de10/FreeRTOS-8.2.2/FreeRTOS/Demo/CORTEX\_A9\_Cyclone\_V\_SoC\_DK/uboot-socfpga/spl/u-boot-spl  
Running from entry point  
Execution stopped in SVC mode at S:0xFFFF0000  
In boot0.h  
S:0xFFFF0000 10,0 ARM\_VECTORS  
+delete  
All user breakpoints deleted  
+tbreak spl\_boot\_device  
Breakpoint 2 at S:0xFFFF0D1C  
on file spl\_gen5.c, line 35  
+cont  
+set semihosting enabled true  
+wait 10s  
ERROR(CMD360):

# in /home/e/de10/FreeRTOS-8.2.2/FreeRTOS/Demo/CORTEX\_A9\_Cyclone\_V\_SoC\_DK/preloader.ds:50 while executing: wait 10s

! Wait for stopped timed out  
ERROR(CMD656): The script /home/e/de10/FreeRTOS-8.2.2/FreeRTOS/Demo/CORTEX\_A9\_Cyclone\_V\_SoC\_DK/preloader.ds failed to complete due to an error during execution of the script  
loadfile “/home/e/de10/FreeRTOS-8.2.2/FreeRTOS/Demo/CORTEX\_A9\_Cyclone\_V\_SoC\_DK/Debug/RTOSDemo.elf”  
Using the LLVM DWARF Parser for this file /home/e/de10/FreeRTOS-8.2.2/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:0x0010C330  
! Target is running, cannot access.  
set debug-from main  
start  
ERROR(CMD350): Command not possible when running  
wait

---

<div class="post-metadata">

**Author:** ![cookpate](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/cookpate/32/2962_2.png) [@cookpate](https://forums.freertos.org/u/cookpate)\
**Post date:** [March 20, 2025, 9:32pm UTC](https://forums.freertos.org/t/intel-cyclone-v-de10-freertos/22790/2 "2025-03-20T21:32:58Z")

</div>

I found an older thread on the ARM forums. Apparently, in order to debug, semihosting must be enabled.

> **[freeRTOS demo DS-5 ERROR(CMD360) when trying to debug - Arm Development...](https://community.arm.com/support-forums/f/armds-forum/47280/freertos-demo-ds-5-error-cmd360-when-trying-to-debug/166644)**
>
> 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)

The ARM documentation when following the links is dead, but I think I found a related page:

> **[Documentation – Arm Developer](https://developer.arm.com/documentation/dui0446/z/controlling-target-execution/working-with-semihosting)**

---

<div class="post-metadata">

**Author:** ![Saud](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Saud](https://forums.freertos.org/u/Saud)\
**Post date:** [June 24, 2025, 6:37am UTC](https://forums.freertos.org/t/intel-cyclone-v-de10-freertos/22790/3 "2025-06-24T06:37:44Z")

</div>

Thank you for the replay, and sorry for my delayed response. I have already done the semi-hosting step. The issue is still there
