cancel
Showing results for 
Search instead for 
Did you mean: 

expected ';' before '{' token error

DRicc.2
Associate III

I'm using the book Nucleo Boards programming with the STM32Cube IDE and none of the code in the book seems to ever work. I've attached a text file of the code I created straight from the book but it won't compile because of the error "expected ';' before '{' token error"

3 REPLIES 3

> expected ';' before '{' token error"

Where?

Post the whole compiler output.

JW

RBENF.1
ST Employee

Hello @DRicc.2​ ,

It seems you have extra underscores in your HAL_GPIO_WritePin calls

Regards,

Ryan

That seemed to fix the issue, thank you!