# STM32 PlatformIO

**URL:** <https://community.openenergymonitor.org/t/stm32-platformio/7015>\
**Category:** Hardware\
**Tags:** platformio, stm32\
**Created:** [26 March 2018 15:28 UTC](https://community.openenergymonitor.org/t/stm32-platformio/7015 "2018-03-26T15:28:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pb66](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/pb66/32/27_2.png) [@pb66](https://community.openenergymonitor.org/u/pb66)\
**Post date:** [27 March 2018 00:36 UTC](https://community.openenergymonitor.org/t/stm32-platformio/7015/4 "2018-03-27T00:36:52Z")

</div>

> [@STM32 Development](https://community.openenergymonitor.org/t/stm32-development/6815/102):
>
> I’m unable to replicate. The code compiles fine for me without the std=gnu99 flag.

I expected that would be the case which is why I included all the info.

```auto
pi@raspberrypi:~/redo/txshield_demo_3/emonTxshield $ pio --version
PlatformIO, version 3.5.2

```

> [@STM32 Development](https://community.openenergymonitor.org/t/stm32-development/6815/102):
>
> Build flag variables need to have -D in front of them e.g.

Ok, seems to work without it but I will try it with the -D tomorrow sometime.

> [@STM32 Development](https://community.openenergymonitor.org/t/stm32-development/6815/102):
>
> Please confirm if this fixes the issue for you.

indeed I shall 🙂

---

_[View the full topic](https://community.openenergymonitor.org/t/stm32-platformio/7015)._
