# Programmer Shield and Electron

**URL:** <https://community.particle.io/t/programmer-shield-and-electron/42854>\
**Category:** Hardware\
**Created:** [July 5, 2018, 1:42am UTC](https://community.particle.io/t/programmer-shield-and-electron/42854 "2018-07-05T01:42:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyfp](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/johnnyfp/32/14738_2.png) [@johnnyfp](https://community.particle.io/u/johnnyfp)\
**Post date:** [July 5, 2018, 1:42am UTC](https://community.particle.io/t/programmer-shield-and-electron/42854/1 "2018-07-05T01:42:09Z")

</div>

Hi,  
Trying to debug and flash an electron using the programming shield and am failing to connect to the device. I’ve got the electrons D7-D3 aligned correctly in the socket as the same with the photon.  
Tried with a photon and it is successfully working (Both in DFU mode).

Should I be differentiating the command depending on the device or should the same command work on both Photon and Electron?

Using the following command

```auto
openocd -f interface/ftdi/particle-ftdi.cfg -f target/stm32f2x.cfg -c "gdb_port 3333"

```

and am getting the following error

```auto
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
none separate
cortex_m reset_config sysresetreq
Info : clock speed 1000 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: stm32f2x.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR

```

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [July 5, 2018, 11:34am UTC](https://community.particle.io/t/programmer-shield-and-electron/42854/2 "2018-07-05T11:34:03Z")

</div>

I think the Programmer Shield should work with the Electron, but I never tried it.

I always use the inexpensive ST-LINK/V2 clone SWD sticks with the Electron. They’re really cheap and only require access to 3V3, GND, D7 and D6.
