CubeMX - only Debug ?
Newcomers questions ... and yes, I did use Google etc. ... ... tried at least ...
So I used the latest versions as of today on a clean notebook that otherwise never had any development stuff installed. Installed JRE, Eclipse, Workbench and CubeMX. I used the nice
tutorial on how to use CubeMX with the Workbench ... In my case I used a STM32F429 Discovery board and left everything to defaults in the CubeMX ... an empty project so to say.
CubeMX generated code and I imported that into the Workbench ... it compiled ... it also loaded onto the board (btw. how do I ever get that fancy demo back which came preinstalled ...) ...
The first thing I noticed was that in the console I see 2 times the same message which basically states that the system is stopped, deleted, flashed, started and then terminated.
Also breakpoints are mentioned while I never set any of them ... and I didn’t even want
to debug I just wanted to run that stuff.
Since there is a while(){...} at the end of main.c I really don’t understand that ... why do that twice and how does that exit from the while, etc. ... strange.
So I decided that I needed a Release version ... but that turned out not to be an option.
When I activated that I got a file not present error ... I checked in the setup and YES,
the include directories are there only when on Debug not when on Release. So I copied
that information and also attempted to find other places of differences between Debug and Release that shouldn’t be there ... well, it only got worse and worse. Frankly - if I want to handle all that compiler, linker, etc. stuff by my own I can also use Ultra Edit and a command line and not bother with a GUI at all. So I wonder what I have to do to get a working Release build ... does anybody know what I did wrong ?
Then of course I thought it would be just great to put anything into that empty loop to see if it gets executed at least ... why not switch an LED, right ? Well, PG13 and PG14 are connected to LEDs and they are even defined as LD3 and LD4 from the CubeMX ... I tried a couple of things but nothing was “in the right language” it seems ... so my next question now is: Is there a truly useful website or PDF or other where I can find out what function to call for various purposes ? I really thought switching on an already set up and initialzed GPIO pin should be as easy as it can get ...
Hmmm, after programming embedded for decades and already 3 different new types of controllers this year without much trouble I find this STM32F world rather frustrating. So much stuff on the Internet for so many possibilities but judging by all the complaints a lot of things don’t quite work. I really hoped that this Workbench would solve it for me ...