Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mechanisms to prevent flashing the wrong hex file. #52

Open
ahtn opened this issue Apr 17, 2018 · 0 comments
Open

Add mechanisms to prevent flashing the wrong hex file. #52

ahtn opened this issue Apr 17, 2018 · 0 comments

Comments

@ahtn
Copy link
Owner

ahtn commented Apr 17, 2018

Issue

The flasher should display a warning if a hex file is not intended for the current mcu/board. Since there isn't really a way to add metadata to hex files, it will be necessary to either use the file nameor by extending the hex file format. Extending the hex file format is probably the more robust solution, but the extra data might need to be removed to flash the file with external tools.

Recover from loading a bad hex file

If you accidentally load a bad hex file, you can force the device to enter bootloader mode by following these steps:

  1. Connect the USB port.
  2. Short the GND and RST pins of the board once.
  3. Open the flasher and program the new hex file.

force_bootloader

bootloader_device_in_flasher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant