File tree 1 file changed +12
-10
lines changed
examples/OTA_Usage_Portenta
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- Usage
3
- This example demonstrates how to use the Arduino_Portenta_OTA library to update a
4
- sketch on any Portenta via the storage types allowed by the board.
5
- Steps to update sketch:
6
- 1) Upload this sketch or any other sketch (this one lights the LED up with different colours).
2
+ This sketch can be used to generate an example binary that can be uploaded to Portenta via OTA.
3
+ It needs to be used together with
4
+ - 'OTA_Qspi_Flash.ino' if you want to use the Qspi Flash as storage system
5
+ OR
6
+ - 'SD_Qspi_Flash.ino' if you want to use the SD card as storage system
7
+
8
+ Steps to test OTA on Portenta:
9
+ 1) Upload this sketch or any other sketch (this one lights up the RGB LED with different colours).
7
10
2) In the IDE select: Sketch -> Export compiled Binary
8
- 3) Open the location of the sketch and choose the next step according to the desired storage type:
9
- - SD: copy the binary to the SD with the name "UPDATE.BIN"
10
- - INTERNAL FLASH:
11
- - QSPI Flash:
12
- 5) Upload the sketch OTA_*_Portenta.ino
11
+ 3) Upload the exported binary to a server
12
+ 4) Choose a storage mechanism (SD or QSPI), open the related OTA_*_Portenta.ino sketch,
13
+ eventually update the OTA_FILE_LOCATION
14
+ 5) Upload the sketch OTA_*_Portenta.ino to perform OTA via SD or QSPI Flash
13
15
*/
14
16
15
17
void setLed (int blue, int gree, int red) {
You can’t perform that action at this time.
0 commit comments