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

ds5: load a programm file and script is not possible from dos command line?

Hi,

I am not able to connect to a debugger and load a ds script and a elf image in the same command.

I understand  this is possible to use the loadfile command from the script, but  I would like to have a generic script that's works with hundredsof elf files (regressions scripts).

So

debugger --cdb-root xxx  --cdb-entry "yyyy " --cdb-entry-param "Connection=TCP:zzzzz--script=my_script.ds

with a load file from the script is ok

but if I want to do

debugger --cdb-root xxx  --cdb-entry "yyyy " --cdb-entry-param "Connection=TCP:zzzzz--script=my_script.ds --image=myelf.elf

The image sounds not to be loaded, since if I issue a command such as info functions I have nothing displayed.

With the newest DS-% v5.27 version, issue is still here.
I have tried the new feature to connect using the launch configuration cli file, but the result is unfortunatly the same.

Any clue?

thanks

claude

Parents
  • Hi,

    This should work. I can run the 'Fireworks' example on the shipped A9x4 VE FVP and load the image plus run a script like :

    C:\Program Files\DS-5 v5.27.0\bin>debugger --cdb-entry "ARM FVP::VE_Cortex_A9x4::Bare Metal Debug::Bare Metal Debug::Debug Cortex-A9x4 SMP" --image "C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axf" --script="C:\Users\myusername\Documents\A9_FVP_cmds.ds"

     

    The contents of the .ds script I ran looks like :

     

    b drawSparks
    b twinkleBurst
    run
    wait
    run
    wait
    info registers
    x 0x80000000
    disable 1
    disable 2
    run
    wait

     

    and in the cmd window I get :

    [target] terminal_0: Listening for serial connection on port 5000
    [target] terminal_1: Listening for serial connection on port 5001
    [target] terminal_2: Listening for serial connection on port 5002
    [target] terminal_3: Listening for serial connection on port 5003
    [target] CADI server started listening to port 7000
    [target] CADI server is reported on port 7000
    Connected to stopped target Cortex-A9x4 SMP0
    Breakpoint 1 at S:0x80000A94
        on file Fireworks.c, line 448
    Breakpoint 2 at S:0x800008AC
        on file Fireworks.c, line 370
    Starting target with image C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axf
    Running from entry point
    Execution stopped in SYS mode at breakpoint 1: S:0x80000A94
    On core ARM_Cortex-A9MP_0 (ID 0)
    In Fireworks.c
    S:0x80000A94   448,1   {
    Reloading program
    Starting target with image C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axf
    Running from entry point
    Execution stopped in SYS mode at breakpoint 1: S:0x80000A94
    On core ARM_Cortex-A9MP_0 (ID 0)
    S:0x80000A94   448,1   {
    R0          0x00000000
    R1          0x80024C34
    R2          0x00000000
    R3          0x010F0000
    R4          0x00000000
    R5          0x00000000
    R6          0x00000000
    R7          0x80024C03
    R8          0x00000000
    R9          0x00000000
    R10         0x80024C34
    R11         0x80024C34
    R12         0x001F3FC4
    SP          0x800C95C0
    LR          0x80000B1D
    PC          0x80000A94
    CPSR        0x4000017F   nZcvq_ge3ge2ge1ge0_inactive_eAiFTj_SYS

    S:0x80000000 <Vectors>:  0xEA00001E
    Breakpoint 1 disabled
    Breakpoint 2 disabled
    Reloading program
    Starting target with image C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axf
    Running from entry point

     

    And now I see the fireworks example running happily.

    So it should work, it certainly seems to on a model and you should be able to try this as well.

    Let me know how you get on,

     

    Regards,

    Stuart

Reply
  • Hi,

    This should work. I can run the 'Fireworks' example on the shipped A9x4 VE FVP and load the image plus run a script like :

    C:\Program Files\DS-5 v5.27.0\bin>debugger --cdb-entry "ARM FVP::VE_Cortex_A9x4::Bare Metal Debug::Bare Metal Debug::Debug Cortex-A9x4 SMP" --image "C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axf" --script="C:\Users\myusername\Documents\A9_FVP_cmds.ds"

     

    The contents of the .ds script I ran looks like :

     

    b drawSparks
    b twinkleBurst
    run
    wait
    run
    wait
    info registers
    x 0x80000000
    disable 1
    disable 2
    run
    wait

     

    and in the cmd window I get :

    [target] terminal_0: Listening for serial connection on port 5000
    [target] terminal_1: Listening for serial connection on port 5001
    [target] terminal_2: Listening for serial connection on port 5002
    [target] terminal_3: Listening for serial connection on port 5003
    [target] CADI server started listening to port 7000
    [target] CADI server is reported on port 7000
    Connected to stopped target Cortex-A9x4 SMP0
    Breakpoint 1 at S:0x80000A94
        on file Fireworks.c, line 448
    Breakpoint 2 at S:0x800008AC
        on file Fireworks.c, line 370
    Starting target with image C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axf
    Running from entry point
    Execution stopped in SYS mode at breakpoint 1: S:0x80000A94
    On core ARM_Cortex-A9MP_0 (ID 0)
    In Fireworks.c
    S:0x80000A94   448,1   {
    Reloading program
    Starting target with image C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axf
    Running from entry point
    Execution stopped in SYS mode at breakpoint 1: S:0x80000A94
    On core ARM_Cortex-A9MP_0 (ID 0)
    S:0x80000A94   448,1   {
    R0          0x00000000
    R1          0x80024C34
    R2          0x00000000
    R3          0x010F0000
    R4          0x00000000
    R5          0x00000000
    R6          0x00000000
    R7          0x80024C03
    R8          0x00000000
    R9          0x00000000
    R10         0x80024C34
    R11         0x80024C34
    R12         0x001F3FC4
    SP          0x800C95C0
    LR          0x80000B1D
    PC          0x80000A94
    CPSR        0x4000017F   nZcvq_ge3ge2ge1ge0_inactive_eAiFTj_SYS

    S:0x80000000 <Vectors>:  0xEA00001E
    Breakpoint 1 disabled
    Breakpoint 2 disabled
    Reloading program
    Starting target with image C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axf
    Running from entry point

     

    And now I see the fireworks example running happily.

    So it should work, it certainly seems to on a model and you should be able to try this as well.

    Let me know how you get on,

     

    Regards,

    Stuart

Children