Browse Source
Add SD Firmware Update capability (#12043)
Co-Authored-By: timoxd7 <timoxd7@users.noreply.github.com>
pull/1/head
Scott Lahteine
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
64 changed files with
974 additions and
2 deletions
-
Marlin/Configuration_adv.h
-
Marlin/src/config/default/Configuration_adv.h
-
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
-
Marlin/src/config/examples/Anet/A2/Configuration_adv.h
-
Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h
-
Marlin/src/config/examples/Anet/A6/Configuration_adv.h
-
Marlin/src/config/examples/Anet/A8/Configuration_adv.h
-
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
-
Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h
-
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
-
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
-
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
-
Marlin/src/config/examples/Cartesio/Configuration_adv.h
-
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
-
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
-
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
-
Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h
-
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
-
Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h
-
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
-
Marlin/src/config/examples/Einstart-S/Configuration_adv.h
-
Marlin/src/config/examples/Felix/Configuration_adv.h
-
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
-
Marlin/src/config/examples/Formbot/Raptor/Configuration_adv.h
-
Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration_adv.h
-
Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h
-
Marlin/src/config/examples/Geeetech/MeCreator2/Configuration_adv.h
-
Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
-
Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
-
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
-
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
-
Marlin/src/config/examples/MakerParts/Configuration_adv.h
-
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
-
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
-
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
-
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
-
Marlin/src/config/examples/RigidBot/Configuration_adv.h
-
Marlin/src/config/examples/SCARA/Configuration_adv.h
-
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
-
Marlin/src/config/examples/TheBorg/Configuration_adv.h
-
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
-
Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h
-
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
-
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
-
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
-
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
-
Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration_adv.h
-
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
-
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
-
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
-
Marlin/src/config/examples/delta/generic/Configuration_adv.h
-
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
-
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
-
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
-
Marlin/src/config/examples/makibox/Configuration_adv.h
-
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
-
Marlin/src/config/examples/wt150/Configuration_adv.h
-
Marlin/src/inc/SanityCheck.h
-
Marlin/src/lcd/language/language_de.h
-
Marlin/src/lcd/language/language_en.h
-
Marlin/src/lcd/ultralcd.cpp
-
Marlin/src/module/configuration_store.cpp
-
Marlin/src/module/configuration_store.h
-
buildroot/share/tests/megaatmega2560_tests
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -709,6 +709,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -705,6 +705,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -706,6 +706,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -702,6 +702,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -714,6 +714,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -703,6 +703,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -703,6 +703,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -703,6 +703,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -703,6 +703,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -703,6 +703,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -703,6 +703,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -703,6 +703,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -703,6 +703,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -701,6 +701,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -702,6 +702,22 @@ |
|
|
|
#define USB_INTR_PIN SD_DETECT_PIN |
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* When using a bootloader that supports SD-Firmware-Flashing, |
|
|
|
* add a menu item to activate SD-FW-Update on the next reboot. |
|
|
|
* |
|
|
|
* Requires ATMEGA2560 (Arduino Mega) |
|
|
|
* |
|
|
|
* Tested with this bootloader: |
|
|
|
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
|
|
|
|
*/ |
|
|
|
//#define SD_FIRMWARE_UPDATE
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF |
|
|
|
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0 |
|
|
|
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
@ -1855,4 +1855,8 @@ static_assert(COUNT(sanity_arr_3) <= XYZE_N, "DEFAULT_MAX_ACCELERATION has too m |
|
|
|
#error "USB_CS_PIN and USB_INTR_PIN are required for USB_FLASH_DRIVE_SUPPORT." |
|
|
|
#endif |
|
|
|
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) && !defined(__AVR_ATmega2560__) |
|
|
|
#error "SD_FIRMWARE_UPDATE requires an ATmega2560-based (Arduino Mega) board." |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // _SANITYCHECK_H_
|
|
|
|
|
|
@ -160,6 +160,8 @@ |
|
|
|
#define MSG_LOAD_EEPROM _UxGT("Konfig. laden") |
|
|
|
#define MSG_RESTORE_FAILSAFE _UxGT("Standardwerte laden") |
|
|
|
#define MSG_INIT_EEPROM _UxGT("Werkseinstellungen") |
|
|
|
#define MSG_SD_UPDATE _UxGT("SD Update") |
|
|
|
#define MSG_RESET_PRINTER _UxGT("Drucker neustarten") |
|
|
|
#define MSG_REFRESH _UxGT("Aktualisieren") |
|
|
|
#define MSG_WATCH _UxGT("Info") |
|
|
|
#define MSG_PREPARE _UxGT("Vorbereitung") |
|
|
|
|
|
@ -687,6 +687,12 @@ |
|
|
|
#ifndef MSG_INIT_EEPROM |
|
|
|
#define MSG_INIT_EEPROM _UxGT("Initialize EEPROM") |
|
|
|
#endif |
|
|
|
#ifndef MSG_SD_UPDATE |
|
|
|
#define MSG_SD_UPDATE _UxGT("SD Update") |
|
|
|
#endif |
|
|
|
#ifndef MSG_RESET_PRINTER |
|
|
|
#define MSG_RESET_PRINTER _UxGT("Reset Printer") |
|
|
|
#endif |
|
|
|
#ifndef MSG_REFRESH |
|
|
|
#define MSG_REFRESH _UxGT("Refresh") |
|
|
|
#endif |
|
|
|
|
|
@ -3996,6 +3996,18 @@ void lcd_quick_feedback(const bool clear_buttons) { |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
/**
|
|
|
|
* Toggle the SD Firmware Update state in EEPROM |
|
|
|
*/ |
|
|
|
static void _lcd_toggle_sd_update() { |
|
|
|
const bool new_state = !settings.sd_update_status(); |
|
|
|
lcd_completion_feedback(settings.set_sd_update_status(new_state)); |
|
|
|
lcd_return_to_status(); |
|
|
|
if (new_state) LCD_MESSAGEPGM(MSG_RESET_PRINTER); else lcd_reset_status(); |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
void lcd_advanced_settings_menu() { |
|
|
|
START_MENU(); |
|
|
|
MENU_BACK(MSG_CONFIGURATION); |
|
|
@ -4068,6 +4080,11 @@ void lcd_quick_feedback(const bool clear_buttons) { |
|
|
|
MENU_ITEM(gcode, MSG_BLTOUCH_RESET, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_RESET))); |
|
|
|
#endif |
|
|
|
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
bool sd_update_state = settings.sd_update_status(); |
|
|
|
MENU_ITEM_EDIT_CALLBACK(bool, MSG_SD_UPDATE, &sd_update_state, _lcd_toggle_sd_update); |
|
|
|
#endif |
|
|
|
|
|
|
|
#if ENABLED(EEPROM_SETTINGS) && DISABLED(SLIM_LCD_MENUS) |
|
|
|
MENU_ITEM(submenu, MSG_INIT_EEPROM, lcd_init_eeprom_confirm); |
|
|
|
#endif |
|
|
|
|
|
@ -376,6 +376,32 @@ void MarlinSettings::postprocess() { |
|
|
|
report_current_position(); |
|
|
|
} |
|
|
|
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
|
|
|
|
#if ENABLED(EEPROM_SETTINGS) |
|
|
|
static_assert( |
|
|
|
!WITHIN(SD_FIRMWARE_UPDATE_EEPROM_ADDR, EEPROM_OFFSET, EEPROM_OFFSET + sizeof(SettingsData)), |
|
|
|
"SD_FIRMWARE_UPDATE_EEPROM_ADDR collides with EEPROM settings storage." |
|
|
|
); |
|
|
|
#endif |
|
|
|
|
|
|
|
bool MarlinSettings::sd_update_status() { |
|
|
|
uint8_t val; |
|
|
|
persistentStore.read_data(SD_FIRMWARE_UPDATE_EEPROM_ADDR, &val); |
|
|
|
return (val == SD_FIRMWARE_UPDATE_ACTIVE_VALUE); |
|
|
|
} |
|
|
|
|
|
|
|
bool MarlinSettings::set_sd_update_status(const bool enable) { |
|
|
|
if (enable != sd_update_status()) |
|
|
|
persistentStore.write_data( |
|
|
|
SD_FIRMWARE_UPDATE_EEPROM_ADDR, |
|
|
|
enable ? SD_FIRMWARE_UPDATE_ACTIVE_VALUE : SD_FIRMWARE_UPDATE_INACTIVE_VALUE |
|
|
|
); |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
#endif // SD_FIRMWARE_UPDATE
|
|
|
|
|
|
|
|
#if ENABLED(EEPROM_SETTINGS) |
|
|
|
#include "../HAL/shared/persistent_store_api.h" |
|
|
|
|
|
|
|
|
|
@ -61,6 +61,11 @@ class MarlinSettings { |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE) |
|
|
|
static bool sd_update_status(); // True if the SD-Firmware-Update EEPROM flag is set
|
|
|
|
static bool set_sd_update_status(const bool enable); // Return 'true' after EEPROM is set (-> always true)
|
|
|
|
#endif |
|
|
|
|
|
|
|
#if ENABLED(EEPROM_SETTINGS) |
|
|
|
static bool load(PORTINIT_SOLO); // Return 'true' if data was loaded ok
|
|
|
|
static bool validate(PORTINIT_SOLO); // Return 'true' if EEPROM data is ok
|
|
|
|
|
|
@ -34,9 +34,9 @@ opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING \ |
|
|
|
BLINKM PCA9632 RGB_LED NEOPIXEL_LED AUTO_POWER_CONTROL NOZZLE_PARK_FEATURE FILAMENT_RUNOUT_SENSOR \ |
|
|
|
AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \ |
|
|
|
SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE |
|
|
|
opt_enable_adv ARC_P_CIRCLES ADVANCED_PAUSE_FEATURE CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS \ |
|
|
|
opt_enable_adv FWRETRACT ARC_P_CIRCLES ADVANCED_PAUSE_FEATURE CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS \ |
|
|
|
POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE \ |
|
|
|
FWRETRACT MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CODEPENDENT_XY_HOMING |
|
|
|
MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CODEPENDENT_XY_HOMING |
|
|
|
opt_set_adv FANMUX0_PIN 53 |
|
|
|
exec_test $1 $2 "RAMPS with 2 extruders, RRDFGSC, Linear ABL, LEDs, and many options" |
|
|
|
|
|
|
|