Changed compilation target format to intel HEX
Fixed flashing software, removed workarounds.