Skip to content
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

Update SDU library to support Arduino nano 33 iot board #645

Closed
wants to merge 8 commits into from
Closed
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
6 changes: 3 additions & 3 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- ~/Arduino/libraries/MFRC522/examples/rfid_read_personal_data
- ~/Arduino/libraries/MFRC522/examples/rfid_write_personal_data
- ~/Arduino/libraries/WiFi101/examples
- ~/Arduino/libraries/AceTime/examples/HelloDateTime
# - ~/Arduino/libraries/AceTime/examples/HelloDateTime

strategy:
fail-fast: false
Expand Down Expand Up @@ -248,8 +248,8 @@ jobs:
- name: LoRa
- name: MKRWAN
- name: WiFiNINA
- name: [email protected]
- name: [email protected]
# - name: [email protected]
# - name: [email protected]
- source-url: https://github.com/vidor-libraries/VidorPeripherals.git
platforms: |
# Use Board Manager to install the latest release of Arduino SAMD Boards to get the toolchain
Expand Down
4 changes: 2 additions & 2 deletions libraries/SDU/extras/SDUBoot/SDUBoot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
#else
#define SDU_START 0x2000
#endif
#define SDU_SIZE 0x4000
#define SDU_SIZE 0x6000

#define SKETCH_START (uint32_t*)(SDU_START + SDU_SIZE)

#ifndef SDCARD_SS_PIN
#define SDCARD_SS_PIN 4
#define SDCARD_SS_PIN 10
#endif

#define UPDATE_FILE "UPDATE.BIN"
Expand Down
6 changes: 6 additions & 0 deletions libraries/SDU/extras/SDUBoot/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
to add new board
change ss pin to desired pin for new board
export compiled binary
run (cat "SDU.bin" | xxd -i > nano_33_iot.h) file names are example
move new hex file to src/boot, and modify SDU.cpp with a new if else statement
should compile now and notnget unsupported board issue
5 changes: 4 additions & 1 deletion libraries/SDU/src/SDU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "SDU.h"

__attribute__ ((section(".sketch_boot")))
unsigned char sduBoot[0x4000] = {
unsigned char sduBoot[0x6000] = {
#if defined(ARDUINO_SAMD_ZERO)
#include "boot/zero.h"
#elif defined(ARDUINO_SAMD_MKR1000)
Expand All @@ -40,6 +40,9 @@ unsigned char sduBoot[0x4000] = {
#include "boot/mkrnb1500.h"
#elif defined(ARDUINO_SAM_ZERO)
#include "boot/mzero.h"
#elif defined(ARDUINO_SAMD_NANO_33_IOT)

#include "boot/nano_33_iot.h"
#else
#error "Unsupported board!"
#endif
Expand Down
Loading