# Updating firmware on another microcontroller using photon?

**URL:** <https://community.particle.io/t/updating-firmware-on-another-microcontroller-using-photon/23156>\
**Category:** Firmware\
**Created:** [May 25, 2016, 1:14pm UTC](https://community.particle.io/t/updating-firmware-on-another-microcontroller-using-photon/23156 "2016-05-25T13:14:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SlinkyMation](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@SlinkyMation](https://community.particle.io/u/SlinkyMation)\
**Post date:** [May 25, 2016, 1:14pm UTC](https://community.particle.io/t/updating-firmware-on-another-microcontroller-using-photon/23156/1 "2016-05-25T13:14:12Z")

</div>

I just need some general guidance as to where I should go with this one. I want to use the photon to update firmware on another microcontroller. I am using an SD card that hooks up to the Photon so that it has more memory. Basically, instead of having to plug in my microcontroller(say an arduino for example), I want to be able to wirelessly reprogram it by using the Photon. So I would reprogram the photon wirelessly, and the photon would reprogram the microcontroller that it is wired to. Is this practical? Is the photon a good device for doing this? Any chance I can get some guidance as to how I should do this? maybe this topic is covered somewhere else.

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [May 25, 2016, 1:51pm UTC](https://community.particle.io/t/updating-firmware-on-another-microcontroller-using-photon/23156/2 "2016-05-25T13:51:54Z")

</div>

@SlinkyMation, why not just use a Photon in the first place and skip the other processor! 😜

---

<div class="post-metadata">

**Author:** ![SlinkyMation](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@SlinkyMation](https://community.particle.io/u/SlinkyMation)\
**Post date:** [May 25, 2016, 2:23pm UTC](https://community.particle.io/t/updating-firmware-on-another-microcontroller-using-photon/23156/3 "2016-05-25T14:23:12Z")

</div>

Not sure if you’re joking or not, but I work for a company where we already have this processer with tons of crazy firmware written to it so yeah. I’d rather not.

---

<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:** [May 25, 2016, 2:36pm UTC](https://community.particle.io/t/updating-firmware-on-another-microcontroller-using-photon/23156/4 "2016-05-25T14:36:27Z")

</div>

Could you elaborate how you are programming the other device?  
There is a similar project where a Photon is used in place of a SWD programmer to unbrick another Photon

Disclaimer: _This is a prove of concept and not for production use_

> **[m-mcgowan/embedded-swd](https://github.com/m-mcgowan/embedded-swd)**
>
> embedded-swd - Serial Wire Debug (SWD) implementation for Particle devices

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [May 25, 2016, 5:01pm UTC](https://community.particle.io/t/updating-firmware-on-another-microcontroller-using-photon/23156/5 "2016-05-25T17:01:49Z")

</div>

@SlinkyMation, yup, I was just poking. Like @ScruffR said, it all depends on the target. I believe the code that he pointed to has actually been tested to revive a “dead” Electron or Photon via SWD. 😉
