This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DS-5 bare metal wait error after run "debug"

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)".

Commands:

Stopping running target Altera - Arria 10 SoC on connection
Connected to running target Altera - Arria 10 SoC
Execution stopped in SVC mode at S:0x8001E748
S:0x8001E748 MOV pc,lr
cd "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:0x8001E748
S:0x8001E748 MOV pc,lr
loadfile "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:0xFFFF0000
Semihosting server socket created at port 8000
Semihosting enabled automatically due to semihosting symbol detected in image 'bare-metal-hello-world-02.axf'
set debug-from main
start
Starting target with image C:\Users\lab_pcgcpv\Documents\DS-5 Workspace\bare-metal-hello-world-02\Debug\bare-metal-hello-world-02.axf
Running from entry point
wait

Looking for helps :(

Parents
  • Hi Ronan,

    I have tried out the "hello world" with the "startup_Cortex-A9_AC6" but heading the same errors as well which stuck in somewhere and cannot load into the main function. What else can I do for fix this problem?

    Errors command:

    Connected to stopped target Altera - Arria 10 SoC

    cd "C:\Users\lab_pcgcpv\Documents\DS-5 Workspace"
    Working directory "C:\Users\lab_pcgcpv\Documents\DS-5 Workspace"
    loadfile "C:\Users\lab_pcgcpv\Documents\DS-5 Workspace\hello world 4\Debug\hello world 4.axf"
    Execution stopped in ABT mode at S:0xFFFF000C
    Target Message: Memory access caused precise abort.
    Debug Precise Abort Registers : DFSR = 0x000000F8, DFAR = 0xFFFF0000
    Target Message: Memory access caused precise abort.
    Debug Precise Abort Registers : DFSR = 0x000000F8, DFAR = 0xFFFF000C
    ERROR(CMD256-TAD10-NAL18):
    ! Unable to display contents at location "S:0xFFFF000C"
    ! Failed to read 4 bytes from address S:0xFFFF000C
    ! Bus error on memory operation.
    Loaded section VECTORS: S:0x80000000 ~ S:0x80000233 (size 0x234)
    Loaded section RO_CODE: S:0x80000234 ~ S:0x80000E87 (size 0xC54)
    Loaded section RO_DATA: S:0x80000E88 ~ S:0x80000EA7 (size 0x20)
    Loaded section RW_DATA: S:0x80000EA8 ~ S:0x80000EB3 (size 0xC)
    Entry point S:0x800001CC
    Semihosting server socket created at port 8000
    Semihosting enabled automatically due to semihosting symbol detected in image 'hello world 4.axf'
    set debug-from main
    start
    Starting target with image C:\Users\lab_pcgcpv\Documents\DS-5 Workspace\hello world 4\Debug\hello world 4.axf
    Running from entry point
    wait

    I have attached the full test program on this.

    hello world 4.zip

Reply
  • Hi Ronan,

    I have tried out the "hello world" with the "startup_Cortex-A9_AC6" but heading the same errors as well which stuck in somewhere and cannot load into the main function. What else can I do for fix this problem?

    Errors command:

    Connected to stopped target Altera - Arria 10 SoC

    cd "C:\Users\lab_pcgcpv\Documents\DS-5 Workspace"
    Working directory "C:\Users\lab_pcgcpv\Documents\DS-5 Workspace"
    loadfile "C:\Users\lab_pcgcpv\Documents\DS-5 Workspace\hello world 4\Debug\hello world 4.axf"
    Execution stopped in ABT mode at S:0xFFFF000C
    Target Message: Memory access caused precise abort.
    Debug Precise Abort Registers : DFSR = 0x000000F8, DFAR = 0xFFFF0000
    Target Message: Memory access caused precise abort.
    Debug Precise Abort Registers : DFSR = 0x000000F8, DFAR = 0xFFFF000C
    ERROR(CMD256-TAD10-NAL18):
    ! Unable to display contents at location "S:0xFFFF000C"
    ! Failed to read 4 bytes from address S:0xFFFF000C
    ! Bus error on memory operation.
    Loaded section VECTORS: S:0x80000000 ~ S:0x80000233 (size 0x234)
    Loaded section RO_CODE: S:0x80000234 ~ S:0x80000E87 (size 0xC54)
    Loaded section RO_DATA: S:0x80000E88 ~ S:0x80000EA7 (size 0x20)
    Loaded section RW_DATA: S:0x80000EA8 ~ S:0x80000EB3 (size 0xC)
    Entry point S:0x800001CC
    Semihosting server socket created at port 8000
    Semihosting enabled automatically due to semihosting symbol detected in image 'hello world 4.axf'
    set debug-from main
    start
    Starting target with image C:\Users\lab_pcgcpv\Documents\DS-5 Workspace\hello world 4\Debug\hello world 4.axf
    Running from entry point
    wait

    I have attached the full test program on this.

    hello world 4.zip

Children