# Fix invalid platform when building PCC firmware

**URL:** <https://forum.theavr.org/t/fix-invalid-platform-when-building-pcc-firmware/905>\
**Category:** AVR Drone Software\
**Created:** [September 20, 2024, 6:46pm UTC](https://forum.theavr.org/t/fix-invalid-platform-when-building-pcc-firmware/905 "2024-09-20T18:46:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jurassic\_001](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/jurassic_001/32/458_2.png) [@Jurassic\_001](https://forum.theavr.org/u/Jurassic_001)\
**Post date:** [September 20, 2024, 6:46pm UTC](https://forum.theavr.org/t/fix-invalid-platform-when-building-pcc-firmware/905/1 "2024-09-20T18:46:47Z")

</div>

This post is a [duplicate of an issue I opened on AVR-2022](https://github.com/The-AVR/AVR-2022/issues/483). My issue post didn’t seem to be getting any traction over there, so I figured I’d repost it over here

* * *

I was messing around with building PCC firmware and I noticed an issue while trying to run the `PCC/setup.py` script.

atmelsam v6.0.1 was removed from the [PlatformIO registry](https://registry.platformio.org/platforms/platformio/atmelsam/versions) at some point, so in order to run `setup.py` or `build.py` you have to specify the version tag manually in the initialization file.

This is a super easy fix. All you have to do is replace this line of code in `PCC/platformio.ini`…

```ini
platform = atmelsam@6.0.1

```

with this code:

```ini
platform = https://github.com/platformio/platform-atmelsam.git#v6.0.1

```

After making this change you can build PCC firmware with the right platform version

* * *

I’d like this fix to be implemented on AVR-2022 so that teams will have an easier time building custom PCC firmware, if they wish to do so. I can open a pull request if y’all want me to
