SPIFlash thing update

Added chip_erase command
Fix IoBoard not accepting port

IoBoard crashed when serial port was not None