Skip to content

Add support for NICLA VISION #23

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 8, 2022
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
12 changes: 11 additions & 1 deletion .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

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
architectures=mbed,mbed_portenta,mbed_nicla
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 @@ -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_ */