Switched to SPI programming and enabled firmware erase cycle