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