cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid initializer error

Wojciech_J
Visitor

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?

2 REPLIES 2
Pavel A.
Evangelist III

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.

 

gbm
Principal

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.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice