[Qt-creator] bare metal: target extended-remote?

Tim Sander tim at krieglstein.org
Sun Jul 20 15:20:34 CEST 2014


Hi Liam
> I'm currently using Qt Creator for editing my embedded project,
> but thought it might be convenient to try to debug with it as
> well.
Indeed :-)
Be aware though that QtCreator only works with qmake and qbs as build
system due to limitations in Generic/CMake - ProjectManager. But
writing a qbs project file is pretty easy.
 
> My debug hardware is a Black Magic Probe
> ([1]http://www.blacksphere.co.nz/main/index.php/blackmagic)
> which presents itself as a virtual serial device (CDC ACM) and,
> unlike openocd, speaks to GDB directly without requiring any
> other software running on the host. GDB provides the `target
> extended-remote` option to "Use a remote computer via a serial
> line".
BareMetal Plugin of QtCreator currently uses only the non-extended
but it should be easy to add the extended-remote stuff as QtCreator
itself supports this.

> In this case, I don't have a GDB host and port to enter into
> the Bare Metal UI - just the path to the device in /dev. Is it
> still possible to use the Bare Metal plugin in this case?
Well currently it just supports pipe mode . So it start the gdb backend with
network port which will not work.

> If it's helpful, my .gdbinit looks like the following:
> 
> 
> 
>   target extended-remote /dev/tty.usbmodemDDD3DFD1
> 
>   monitor jtag_scan
> 
>   att 1
Sounds reasonable but currently not supported. As i don't have the hardware i 
can't test this. So you should be able to compile QtCreator and apply patches 
to move forward. I guess it should be not to hard to get this up and running.

Best regards
Tim



More information about the Qt-creator mailing list