I tried to run the bare metal script ("Hello World ANSI C Project - ARM Compiler 5 DS-5 built-in") on DS-5 debug software. However, it hangs on somewhere on "wait" commands as below which is not yet reached the breakpoint on main function. Notes, it could not even proceed to the "Step Over Instruction (F6)".
Stopping running target Altera - Arria 10 SoC on connectionConnected to running target Altera - Arria 10 SoCExecution stopped in SVC mode at S:0x8001E748S:0x8001E748 MOV pc,lrcd "C:\Users\lab_pcgcpv\Documents\DS-5 Workspace"Working directory "C:\Users\lab_pcgcpv\Documents\DS-5 Workspace"Execution stopped in SVC mode at S:0x8001E748S:0x8001E748 MOV pc,lrloadfile "C:\Users\lab_pcgcpv\Documents\DS-5 Workspace\bare-metal-hello-world-02\Debug\bare-metal-hello-world-02.axf"Loaded section APP_CODE: S:0xFFFF0000 ~ S:0xFFFF0BC3 (size 0xBC4)Loaded section APP_CODE: S:0xFFFF0BC4 ~ S:0xFFFF0BD3 (size 0x10)Entry point S:0xFFFF0000Semihosting server socket created at port 8000Semihosting enabled automatically due to semihosting symbol detected in image 'bare-metal-hello-world-02.axf'set debug-from mainstartStarting target with image C:\Users\lab_pcgcpv\Documents\DS-5 Workspace\bare-metal-hello-world-02\Debug\bare-metal-hello-world-02.axfRunning from entry pointwait
Looking for helps :(
I don't have a board to test this code with - from it looks like the code is loading correctly to 0x80000000. I recommend setting to "debug from entry point", and see if you can single step the first instruction.
I see from your connection, that the target is in an abort mode when you connect to it... it may be that the board needs to be running an independent boot loader to initialize memory etc. These are usually pre-installed on boards, but you may wish to contact the board vendor for specifics.
Thanks. You are right. That is the uboot problem but it fixed.
By the way, I have facing another problem which is the external SDRAM configuration.
I try to follow the step in this link for setting up the SDRAM configuration - https://fpgawiki.intel.com/wiki/SoCEDSGettingStarted but end up got the problem like below:
Test program has attached.SDRAM test.zip
Need your expertise again :)
Sorry, I don't know anything about that board - you might wish to post your question on the Intel forum instead?