2024-07-16 06:26 AM
Hey! I am beginner with stm32cube ide. I was doing a simple interrupt push button with nvic. I had cross checked all of my initialisations with other posts over here and they matched. I am facing an error while building the project. The error says "expected indendent or statement at end of input" for the error handler function generated by by stm32. The same code for error handler was generated when I tried for simple led blinking but no error faced there.
There seems to be no indendent error when checked. Also i did not understand the statement at end of input part of the error
Any idea how I could solve this issue.
Your responses would help a ton!!
2024-07-16 06:36 AM - edited 2024-07-16 06:37 AM
@beginner wrote:Hey! I am beginner with stm32cube ide.
Do you have experience with any other IDEs? With C programming in general?
Please see the posting tips for how to properly post source code:
It's best to do the same for posting error messages, too.
@beginner wrote:The error says "expected indendent or statement at end of input"
No, it says, "expected declaration or statement..."
This probably means that you have missed a closing brace, or made some similar mistake somewhere earlier in the file.
Your code screenshot does show something at line 162:
@beginner wrote:Also i did not understand the statement at end of input part of the error
It means that the compiler has come to the end of your file, but it doesn't make sense for the file to end there - there should be something else (a declaration or a statement) following