[Interest] [QBS] Problems with debugging using QtCreator, QBS and BareMetal Plugin

Tim Hutt tdhutt at gmail.com
Sun Oct 26 18:26:28 CET 2014


I had this exact same problem. If you search this mailing list for my name
you'll find the thread where it was solved. Tl;Dr is you have to keep
"application" in your type: variable. I.e. this should work:

type: ["application", "combHex"]

It doesn't change the actual build process at all but it does make the
baremetal plugin do what it is supposed to do.

I never tracked down the source of the bug but fortunately it is easy
enough to work around.

Cheers,

Tim
On 25 Oct 2014 12:45, "Railway Coder" <railwaycoder at gmail.com> wrote:

> Hi,
>
> I'm using Qt Creator with QBS for debugging embedded targets with the
> BareMetal plugin.
> This works fine until build process gets a bit more complex.
>
> In old qbs file product type was
>
> *type: ["application"]*
>
> in that case, everything works fine. Build output is
>
> *linking nrf51822_ble_nano_test.elf*
>
>
> Uploading and debugging can be startet using the debug button.
>
>
> -----------------
>
> I've added two rules for the new build process, which converts the output
> file to hex
> and then merge it with a second hex file. In that case product type needs
> to be changed
>
> *type: ["combHex"]*
>
> build output:
>
> *compiling main.cpp*
>
> *linking nrf51822_ble_nano_test.elf*
>
> *converting nrf51822_ble_nano_test.elf to nrf51822_ble_nano_test.hex*
>
> *combining nrf51822_ble_nano_test.hex and
> s110_nrf51822_7.1.0_softdevice.hex to nrf51822_ble_nano_test_combined.hex*
>
> But now, debugging and uploading does not work anymore.
> I only get the following popup when pressing the debug button.
>
> [image: Inline-Bild 1]
>
> It seems that BareMetal plugin does not recognize the target file anymore.
> Is there any solution for this?
>
> Best Regards,
> Railwaycoder
>
>
>
>
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141026/9308c572/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 31230 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141026/9308c572/attachment.png>


More information about the Interest mailing list