title: MPLAB X IDE 2.05 cannot write in Microchip dsPIC30F6014A
body: <p>We are working with e-pucks real robots which posses a Microchip dsPIC30F6014A. We work in Windows 8.1 at 64 bits with MPLAB X IDE 2.05 and 3.55. Our robots got a problem with the PIN number so you told us that the solution was to buy a ICD programmer to re-flash the firmware in the e-puck and recover their PIN for the bluetooth connection.</p>
  <p>We got the ICD 3, the cable to re-flash and start working in MPLAB X IDE 2.05.  But, initially we could not program the robot for a permission of memory which suggested the following image<a href="https://i.stack.imgur.com/FWw8S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FWw8S.png" alt="enter image description here" /></a> with this configuration and we tried to program it again. We got stuck with this message:</p>
  <hr />
  <pre><code>   Target detected
     Target Device ID (0x0) does not match expected Device ID (0x2c30000).
     Invalid command response (sent 0x5f, received 0x3f)
     Failed to read device
     Unable to download program executive
     Failed to program device
     Failed to send bulk data
     Failed writing builk data (memory type 8, address 0
     Invalid command response (sent 0x60, received 0x3f)
  </code></pre>
  <hr />
  <p>We tried to erase the flash device as indicated in Section 5.5 from <a href="http://www.gctronic.com/doc/index.php/E-Puck" rel="nofollow noreferrer">http://www.gctronic.com/doc/index.php/E-Puck</a> and it brought us this message:</p>
  <hr />
  <pre><code>   Connecting to MPLAB ICD 3...
     Firmware Suite Version.....01.30.09
     Firmware type..............dsPIC30F
  
     Target detected
     Device ID Revision = 1041
  
     Erasing...
     Erase successful
  </code></pre>
  <hr />
  <p>Then, we tried again to program the robot and got the same message</p>
  <hr />
  <pre><code>   Target detected
     Target Device ID (0x0) does not match expected Device ID (0x2c30000)
     ...
  </code></pre>
  <hr />