-
Notifications
You must be signed in to change notification settings - Fork 1
Home
For normal users, the boards are provided already programmed with their bootloader and their firmware.
This part only concerns people who have built their board Hmi4DinBox themselves and want to burn the necessary embedded software.
Microcontrollers are usually programmed through a programmer unless you have a piece of firmware in your microcontroller that allows installing new firmware without the need of an external programmer. This is called a bootloader.
Hmi4DinBox comes with a bootloader that allows working with the Arduino IDE.
Before burning the bootloader you will need to install the duino-boards board package.
To burn the bootloader, you'll need to buy an AVR-Dragon, ATMEL ICE or other programmer with JTAG feature.
The programmer should be connected to the JTAG pins (the 2 by 5 pin header J3), make sure you plug it in the right way.
The board must be powered by an external power supply or the USB port.
Make sure you have the right item selected in the Tools | Board menu. Then, just launch the appropriate command from the Tools > Burn Bootloader menu of the Arduino environment.
Burning the bootloader may take 15 seconds or more, so be patient.
The bootloader must be burned before burning or updating the firmware ...
For now, the firmware sources can not be compiled into the Arduino IDE. It is temporary. In future releases, the firmware will be ported to Arduino.
This is the reason why the firmware is delivered in the form of a .hex
file.
When Hmi4DinBox starts normally, the firmware is started immediately by the bootloader.
If it is necessary to burn the firmware, it is necessary to remain pressed on the central button of the navigator at the time of starting of the power supply.
In this case, the top green LED (D8) will flash quickly, indicating that the board is in bootloader mode.
You have 15 seconds to start transmitting the new firmware, for example with AVRDUDE on Linux:
$ avrdude -p m32u4 -c avr109 -D -P /dev/ttyACM0 -U flash:w:hmi4dinbox-firmware.hex
On Windows, /dev/ttyACM0
should be replaced by the COM
port corresponding to the Hmi4DinBox board.