diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 457cf45..adfaa56 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -35,6 +35,16 @@ jobs: - fqbn: arduino:mbed:envie_m7 platforms: | - name: arduino:mbed + sketch-paths: | + - examples/OTA_Qspi_Flash + - examples/OTA_SD_Portenta + - examples/OTA_Usage_Portenta + - fqbn: arduino:mbed_nicla:nicla_vision + platforms: | + - name: arduino:mbed_nicla + sketch-paths: | + - examples/OTA_Qspi_Flash + - examples/OTA_Usage_Portenta steps: - name: Checkout @@ -52,7 +62,7 @@ jobs: # Additional library dependencies can be listed here. # See: https://github.com/arduino/compile-sketches#libraries sketch-paths: | - - ./examples/ + ${{ matrix.board.sketch-paths }} enable-deltas-report: true sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} diff --git a/library.properties b/library.properties index 9dc2dc8..a4e005e 100644 --- a/library.properties +++ b/library.properties @@ -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 +architectures=mbed,mbed_portenta,mbed_nicla includes=Arduino_Portenta_OTA.h diff --git a/src/Arduino_Portenta_OTA_Config.h b/src/Arduino_Portenta_OTA_Config.h index 0397e71..1d7b214 100644 --- a/src/Arduino_Portenta_OTA_Config.h +++ b/src/Arduino_Portenta_OTA_Config.h @@ -30,4 +30,9 @@ #define ARDUINO_PORTENTA_OTA_QSPI_SUPPORT #endif +#if defined(ARDUINO_NICLA_VISION) + #define ARDUINO_PORTENTA_OTA_MAGIC 0x2341025f + #define ARDUINO_PORTENTA_OTA_QSPI_SUPPORT +#endif + #endif /* ARDUINO_PORTENTA_OTA_CONFIG_H_ */