```Diff
-export CFLAGS += -DUSE_STDPERIPH_DRIVER -DSTM32F30X
+export CFLAGS += -DUSE_STDPERIPH_DRIVER -DSTM32F303XC
```
needed for me to compile