Skip to content

Add support for GIGA #38

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

Merged
merged 3 commits into from
Mar 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ jobs:
- examples/OTA_Qspi_Flash
- examples/OTA_Qspi_Flash_Ethernet
- examples/OTA_Usage_Portenta
- fqbn: arduino:mbed_giga:giga
platforms: |
- name: arduino:mbed_giga
libraries: |
- name: Arduino_DebugUtils
sketch-paths: |
- examples/OTA_Qspi_Flash
- examples/OTA_Usage_Portenta

steps:
- name: Checkout
Expand Down
2 changes: 2 additions & 0 deletions examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usa
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota";
#elif defined(ARDUINO_OPTA)
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota";
#elif defined(ARDUINO_GIGA)
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.GIGA.ota";
#else
#error "Board not supported"
#endif
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ sentence=Firmware update for the Portenta H7.
paragraph=This library allows performing a firmware update on the Arduino Portenta H7. The firmware can be stored in various different locations such as within the microcontroller's flash, on an external SD card or on the QSPI flash chip.
category=Communication
url=https://github.com/arduino-libraries/Arduino_Portenta_OTA
architectures=mbed,mbed_portenta,mbed_nicla,mbed_opta
architectures=mbed,mbed_portenta,mbed_nicla,mbed_opta,mbed_giga
includes=Arduino_Portenta_OTA.h
5 changes: 5 additions & 0 deletions src/Arduino_Portenta_OTA_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@
#define ARDUINO_PORTENTA_OTA_QSPI_SUPPORT
#endif

#if defined(ARDUINO_GIGA)
#define ARDUINO_PORTENTA_OTA_MAGIC 0x23410266
#define ARDUINO_PORTENTA_OTA_QSPI_SUPPORT
#endif

#endif /* ARDUINO_PORTENTA_OTA_CONFIG_H_ */