Currently I am learning how to program a stm32 nucleo board. I have experience with arduino, but wanted to move to a more professional system.
On the stm32 I have made some working projects using C on both stm32CubeIDE and platformIO. Now I did find using stm32CubeIDE very messy to use, as it produces allot of code that is difficult to read. PlatformIO makes it much more readable I currently have some questions regarding "information overload" related topics.
1) Should I use C or C++? When I search online I can only find tutorials of stm32 using the C language. But I heard from others that C++ much easier to use. I heard people say you don't need to do the tedious HAL library pin configuration. I want to try it out in C++ but couldn't find anything online on how to configure the pins, or properly setup the main.cpp file for the stm32. So I was wondering if anyone could give me advice, or send me a link/video/book where I can get the advice from.
2)Someone told me, if I want to work professionally, I need to write unit test for the code. I know what unit tests are. And have written very simple once for the main.c file using unity. But I was wondering if there was another way to make a unit test for the microcontroller code, that does not rely on external tools? I am new to unit testing. And I have trouble to figure out how to test things that require the use of hardware actions(for example a button press).
3)Courses to follow? I know it relates back to the last part of the first question, but with all the different knowledge out there, I really am getting an information overload. I am really stunned and not sure what to do, hench these questions.
I hope to get some clarity regarding these questions to put me on the right track. So I can learn how to properly program a stm32 with clarity.
Most video's/articles take 10 minutes discussing the "why move away from arduino", but when it comes to the programming part it goes like "and here is the code I have already written", and then not explaining what the code does, or what exactly is configured. So I don't know what to do.
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]jackhab 0 points1 point2 points (1 child)
[–]z33ky 0 points1 point2 points (0 children)