cancel
Showing results for 
Search instead for 
Did you mean: 

STVD GDB

gdemaria9
Associate
Posted on September 12, 2012 at 11:57

Dear all,

I'm evaluating the possibility to perform a STM8 automatic module testing on the target using STVD. Unfortunatly, I have not found any information about the possibility to write scripts on STVD and so I suppose this feature is not available, isn't it?

Is it possibile to access to the STVD source code to have the possibility to extend its functionality?

On the STVD console window, I see it uses the gnu gdb front end for debugging: is it possible to have more info about how it works to debug an STM8 (i.e. customizations, commands)?

I've enabled the logging of the console window and so I've seen what kind of commands are sent to the gdb, but some of them raise an error if I run gdb outside STVD: for example the command ''emulator-reset-port-mcu simstm8.cnf STM8AF6266'' is undefined.

It could be very usefull to have a short example about how to use directly the STM8 gdb to connect either to a ST-LINK or to the simulator, load an ELF file and go at the ''main'' entry point...
2 REPLIES 2
roberto
Associate II
Posted on January 08, 2015 at 12:02

i've the same issue with version 33 of STVD.

Could anyone points me to a solution?

Thanks

Roberto

roberto
Associate II
Posted on January 08, 2015 at 13:02

Got it!

Copy these lines into the gdb.ini and run the dao\ST Toolset.msi

#
# emulator reset port
#
define emulator-reset-port
target gdi -dll swim\stm_swim.dll -rlink -port $arg0
end
#
# emulator reset port and MCU
#
define emulator-reset-port-mcu
target gdi -dll swim\stm_swim.dll -rlink -port $arg0 -mcuname $arg1
mcuname -set $arg1
end
#
# emulator reset port with hot plug connection
#
define emulator-reset-hotplug-port
target gdi -dll swim\stm_swim.dll -rlink -port $arg0 -hotplug
end
define emulator-reset-keepswim-port-mcu
target gdi -dll swim\stm_swim.dll -rlink -port $arg0 -mcuname $arg1 -keepswim
mcuname -set $arg1
end

You should able to debug your project! Roberto