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
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 drawSparksb twinkleBurstrunwaitrunwaitinfo registersx 0x80000000disable 1disable 2runwait
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 7000Connected to stopped target Cortex-A9x4 SMP0Breakpoint 1 at S:0x80000A94 on file Fireworks.c, line 448Breakpoint 2 at S:0x800008AC on file Fireworks.c, line 370Starting target with image C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axfRunning from entry pointExecution stopped in SYS mode at breakpoint 1: S:0x80000A94On core ARM_Cortex-A9MP_0 (ID 0)In Fireworks.cS:0x80000A94 448,1 {Reloading programStarting target with image C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axfRunning from entry pointExecution stopped in SYS mode at breakpoint 1: S:0x80000A94On core ARM_Cortex-A9MP_0 (ID 0)S:0x80000A94 448,1 {R0 0x00000000R1 0x80024C34R2 0x00000000R3 0x010F0000R4 0x00000000R5 0x00000000R6 0x00000000R7 0x80024C03R8 0x00000000R9 0x00000000R10 0x80024C34R11 0x80024C34R12 0x001F3FC4SP 0x800C95C0LR 0x80000B1DPC 0x80000A94CPSR 0x4000017F nZcvq_ge3ge2ge1ge0_inactive_eAiFTj_SYSS:0x80000000 <Vectors>: 0xEA00001EBreakpoint 1 disabledBreakpoint 2 disabledReloading programStarting target with image C:\Users\myusername\Documents\DS-5 Examples\fireworks_A9-FVP_AC5\fireworks-Cortex-A9xN-FVP.axfRunning 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
Hi Stuart, It is strange I don't have the option "This help me" below your answer to close this topic. claude