|
|
@ -175,7 +175,7 @@ flash () {
|
|
|
|
${preFlash_HOOKS}
|
|
|
|
${preFlash_HOOKS}
|
|
|
|
|
|
|
|
|
|
|
|
reset_device
|
|
|
|
reset_device
|
|
|
|
sleep 3
|
|
|
|
sleep 2
|
|
|
|
find_bootloader_ports
|
|
|
|
find_bootloader_ports
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
@ -196,8 +196,16 @@ check_bootloader_port_and_flash () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
flash_over_usb () {
|
|
|
|
flash_over_usb () {
|
|
|
|
sleep 1
|
|
|
|
sleep 2
|
|
|
|
${AVRDUDE} -C "${AVRDUDE_CONF}" -p"${MCU}" -cavr109 -D -P "${DEVICE_PORT_BOOTLOADER}" -b57600 "-Uflash:w:${HEX_FILE_PATH}:i" 2>&1
|
|
|
|
${AVRDUDE} \
|
|
|
|
|
|
|
|
-C "${AVRDUDE_CONF}" \
|
|
|
|
|
|
|
|
-p"${MCU}" \
|
|
|
|
|
|
|
|
-cavr109 \
|
|
|
|
|
|
|
|
-D \
|
|
|
|
|
|
|
|
-P "${DEVICE_PORT_BOOTLOADER}" \
|
|
|
|
|
|
|
|
-b57600 \
|
|
|
|
|
|
|
|
"-Uflash:w:${HEX_FILE_PATH}:i" \
|
|
|
|
|
|
|
|
2>&1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
flash_from_bootloader() {
|
|
|
|
flash_from_bootloader() {
|
|
|
|