Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12368 Discussions

Use DS-5 AE Bare-metal for C code programming on DE0-NANO_SOC

Altera_Forum
Honored Contributor I
787 Views

Hi, 

I am trying to use DS-5 AE Evaluation for C code programming on DE0-NANO_SOC. when I load preloader the following message will be appeared: 

 

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:0x00002FA8 

source /v "C:\altera\15.0\embedded\ds-5\sw\debugger\configdb\Scripts\altera_target_check .py" 

S:0x00002FA8 TST r1,#4 

 

 

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

 

 

load "C:\altra_trn\DE0_Nano_SOC_Pro\DE0_NANO_SOC_GHRD\W orkSpace5\test\u-boot-spl" 

Loaded section .text: S:0xFFFF0000 ~ S:0xFFFF6AA3 (size 0x6AA4) 

Loaded section .rodata: S:0xFFFF6AA4 ~ S:0xFFFF8672 (size 0x1BCF) 

Loaded section .data: S:0xFFFF8678 ~ S:0xFFFF954B (size 0xED4) 

Entry point S:0xFFFF0000 

cd "C:\altra_trn\DE0_Nano_SOC_Pro\DE0_NANO_SOC_GHRD\W orkSpace5" 

Working directory "C:\altra_trn\DE0_Nano_SOC_Pro\DE0_NANO_SOC_GHRD\W orkSpace5" 

set debug-from *$ENTRYPOINT 

start 

Starting target with no symbolic information loaded 

Execution stopped at: S:0xFFFF0000 

wait 

S:0xFFFF0000 B {pc}+0x70 ; 0xffff0070 

Run 

Starting target with no symbolic information loaded 

Pause 1s 

Interrupt 

Execution stopped at: S:0xFFFF475C 

S:0xFFFF475C B {pc} ; 0xffff475c 

Quit 

Disconnected from stopped target Altera - Cyclone V SoC (Dual Core) on TCP:localhost 

 

but The following problem will be appeared for loading test.axf: 

 

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:0x00002FA8 

source /v "C:\altera\15.0\embedded\ds-5\sw\debugger\configdb\Scripts\altera_target_check .py" 

S:0x00002FA8 TST r1,#4 

 

 

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

 

 

loadfile "C:\altra_trn\DE0_Nano_SOC_Pro\DE0_NANO_SOC_GHRD\W orkSpace5\test\Debug\test.axf" 

ERROR(CMD16-TAD274-NAL22):  

! Failed to load "test.axf" 

! Failed to write 4,884 bytes to address S:0x00200000 while writing block of 4,096 bytes to address S:0x00200000 

! General error on memory or register access. 

cd "C:\altra_trn\DE0_Nano_SOC_Pro\DE0_NANO_SOC_GHRD\W orkSpace5" 

Working directory "C:\altra_trn\DE0_Nano_SOC_Pro\DE0_NANO_SOC_GHRD\W orkSpace5" 

set debug-from main 

start 

WARNING(CMD399-COR168):  

! Failed to start the target 

! No function named "main" could be found 

WARNING(CMD407): Trying the entry point instead 

ERROR(CMD426): Cannot find symbol to start or entrypoint, the file or load commands may be used to set the entrypoint 

wait 

Target Message: Could not determine target state 

 

How can I solve this problem ? the workspace of the DS-5 of the project is attached.
0 Kudos
0 Replies
Reply