2025-03-15 2:26 PM
Hi, it's my first post here. Im learning to use UART and I'm getting a "invalid initializer" error while debugging this code. Can someone please explain why?
2025-03-15 6:53 PM
Probably because you are not using an "official" ST example project from "Cube" software package?
For beginners, these example projects are very much recommended, rather than random stuff from youtube or github.
2025-03-16 5:55 AM
Look at the detailed description of the error and its location - you didn't even show it in your post. Show the source code line in which the error is signaled. Either it's a simple syntax error or an attempt to initialize static data with a pointer or dynamic expression.