# Building in Docker, Firmware could not be created. Platform ID not a match

**URL:** <https://community.particle.io/t/building-in-docker-firmware-could-not-be-created-platform-id-not-a-match/39083>\
**Category:** Firmware\
**Created:** [January 30, 2018, 2:12am UTC](https://community.particle.io/t/building-in-docker-firmware-could-not-be-created-platform-id-not-a-match/39083 "2018-01-30T02:12:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dancingpearl](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@dancingpearl](https://community.particle.io/u/dancingpearl)\
**Post date:** [January 30, 2018, 2:12am UTC](https://community.particle.io/t/building-in-docker-firmware-could-not-be-created-platform-id-not-a-match/39083/1 "2018-01-30T02:12:52Z")

</div>

I am using the following docker container to compile my firmware: [https://hub.docker.com/r/particle/buildpack-particle-firmware](https://hub.docker.com/r/particle/buildpack-particle-firmware).

Where the platform ID is 6 - I am using the same steps in the Docker readme.

After building I attempt to upload the firmware to my Product dashboard, so I can distribute to my fleet and I get the below error:

`Bummer! Your firmware could not be created. The platform id in the binary must match the product platform id`

![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/e/1/e1f7f5a43ed2458c4b207160eaaa07fbf9372bb8.png)

My `library.properties` file has the `architectures=dependent on particle-electron`. And the `main.ino` lists the product version and product ID correctly. What other change do I have to make?

Note this post is different: [Bummer! Your firmware could not be created. The platform id in the binary must match the product platform id](https://community.particle.io/t/bummer-your-firmware-could-not-be-created-the-platform-id-in-the-binary-must-match-the-product-platform-id/27950). I am not using the IDE.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 30, 2018, 12:31pm UTC](https://community.particle.io/t/building-in-docker-firmware-could-not-be-created-platform-id-not-a-match/39083/2 "2018-01-30T12:31:34Z")

</div>

Electron has platform ID 10 instead of 6 for Photons.

---

<div class="post-metadata">

**Author:** ![dancingpearl](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@dancingpearl](https://community.particle.io/u/dancingpearl)\
**Post date:** [January 30, 2018, 4:48pm UTC](https://community.particle.io/t/building-in-docker-firmware-could-not-be-created-platform-id-not-a-match/39083/3 "2018-01-30T16:48:48Z")

</div>

Thanks. I must have missed this in the Docs.
