2020-11-29 09:28 PM
Hello,
I am on my first steps in the STM32 world, using STM32CubeIDE on Linux. I have a 32F413HDISCOVERY board to play with.
I have no problems developing simple applications from scratch in the IDE. My problems start when I want to integrate external code provided as examples by ST.
In particular, I want to develop a AWS IoT application. I have downloaded the X-CUBE-AWS example and managed to import it, build it and make it work on the board. Now I would like to modify the example to add more functionalities (for example, control a motor).
I cannot understand how to integrate the code generated during the micro configuration step and the example. Main questions:
In general, as you see, I am quite confused. Any help, even from another example, would be most welcomed.
Thanks in advance
Davide
2020-11-29 11:22 PM
See my answers here: Converting Examples from SW4STM32 to CubeIDE and HELP - CMWX1ZZABZ-078 project on STM32CubeIDE
I guess you're facing mix of both.
2020-11-30 01:33 AM
Thanks Cartu38, it helps a bit but not much (I did find your first link before posting).
From what I understand, the best (and long) way is to generate a new project and then importing the single files and bits of code that I will need. But what about pin assignment? Some of them are already defined somewhere in random header files. Should I use the latter's and not assign anything via CubeMX or I should painstakingly "back engineer" the used pins, configure them on CubeMX and remove them from the header files? I hope my concern is clear.
Davide
2020-11-30 04:42 AM
I'm fully sharing your pain but yes if expecting to rely on STM32CubeMX automation I guess no choice only suitable path is reverse engineering.
Or rely on STM32CubeMX on a side project then extract from it valuable material to reinject it within AWS example.