2021-02-05 08:35 AM
OSS-7 is the open-source stack for the DASH7 protocol:
https://mosaic-lopow.github.io/dash7-ap-open-source-stack/
The build system is created with CMake:
https://mosaic-lopow.github.io/dash7-ap-open-source-stack/docs/building/
Specifying -G "Eclipse CDT4 - MinGW Makefiles" on the CMake command line completes without complaining, and does create the expected Eclipse .project and .cproject files.
STM32 Cube IDE happily opens these, and builds successfully.
But I can't seem to create a Debug configuration that works - the 'Debug' button always remains greyed-out - even after pressing 'Apply' on any changes:
So what's going wrong?
Why can't I use this Debug Configuration?
What is keeping the 'Debug' button disabled?
The Target is a B-L072Z-LRWAN1, it is connected and a 'Scan' on the 'Debug' tab will read its serial number.
STM32CubeIDE Version: 1.5.1
Build: 9029_20201210_1234 (UTC)
OS: Windows 10, v.10.0, x86_64 / win32
Java version: 1.8.0_272
Cross-post: https://groups.google.com/g/dash7-ap-oss/c/kZZR5ySbWeg/m/3pVCT7OLBgAJ
2021-02-05 12:14 PM
Most probably STM32CubeIDE required metadata lacks here. Possibly share .project & .cproject files
2021-02-05 12:24 PM
2021-02-05 12:26 PM
2021-02-05 12:34 PM
STM32CubeIDE is for sure able to import vanilla Eclipse project because vanilla Ecplise & CDT based. But possibly some STM32CubeIDE features are requiring extra metadata added by STM32CubeIDE contributions themselves.
Looking at your .cproject nothing STM32Cube related inside ...
2021-02-05 03:27 PM
Maybe because CubeIDE does not know how to debug x86 binaries?
MinGW is not a Cortex-M toolchain.
Have you tried to generate a makefile and import it into CubeIDE as a makefile project?
> Is there a way for STM32CubeIDE to import a "vanilla" Eclipse project ?
A good question. Maybe it would be easier to implement CubeIDE project generator for cmake?
-- pa
2021-02-08 04:19 AM
MinGW is just used to provide the 'make' tool on Windows - the actual build is being done by arm-none-eabi-gcc
"Have you tried to generate a makefile and import it into CubeIDE as a makefile project?"
I haven't tried that. There is a makefile, so I could give it a go ...
2021-02-08 04:23 AM
Interstingly enough, when I open a .project file for SW4STM32 (as found in many ST examples), the CubeIDE recognises that a conversion is needed:
but there was no such warning in this case.
2021-02-08 07:22 AM
Trying importing 'Existing Code as Makefile Project’:
The import completes without complaint, and builds without errors or warnings:
I create a Debug Config, and fill-in the details on the 'Main' tab - but 'Apply' or trying to go to any other tab gives:
I don't see where to specify the MCU target in any of the Debug Config tabs - maybe it's elsewhere ... ?
2021-02-08 08:08 AM
"STM32CubeIDE is for sure able to import vanilla Eclipse project"
So how would you do that?
I don't see anything obvious in the 'Import' options:
Which is the 'Import Vanilla Eclipse Project and Add CubeIDE Metadata' option?