Skip to content

Commit 9a3bdbb

Browse files
committed
Removed SDU library, as the bootloader now supports SD cards directly
1 parent a3c489d commit 9a3bdbb

File tree

11 files changed

+14
-3742
lines changed

11 files changed

+14
-3742
lines changed

CHANGELOG

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
1.6.8-beta-b2 (in-progress):
22
* Added more Serial, SPI, and WIRE options
3-
* Added MicroSD card firmware loading in the bootloader
4-
* Fixed SDU library to work with MattairTech boards
3+
* Added SD Card firmware loading support to the bootloader (4KB and 8KB)
4+
* Removed SDU library, as the bootloader now supports SD cards directly
55
* Fixed auto-detection for Arduino Zero and M0 board variants
66
* Fixed bootloader compilation on Windows
77
* Documentation updates

bootloaders/zero/README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,20 @@ is running, the LED, if configured, will PWM fade quickly (~4Hz).
6969

7070
### SD Card External Pins
7171

72-
If SDCARD_USE_PIN1 is defined, then the SD Card bootloader will run depending
72+
If only SDCARD_USE_PIN1 is defined, then the SD Card bootloader will run depending
7373
on the state of an external pin and the value of SDCARD_PIN1_POLARITY. The
7474
SPI peripheral and SPI pins will only be setup if the SD card bootloader runs.
75+
This is the default setting with the precompiled binaries that include SD Card support.
76+
77+
*Hint: When doing development with an SD card installed, and thus probably using the*
78+
*SAM-BA interface, either ensure there is no UPDATE.BIN, or use pin 1 to skip the SD card*
7579

7680
Pin1 | Action
7781
----------------|---------------------
7882
Inactive | Skip SD bootloader
7983
Active | Run SD bootloader
8084

81-
If SDCARD_USE_PIN1 and SDCARD_USE_PIN2 are defined, then the SD Card bootloader
85+
If both SDCARD_USE_PIN1 and SDCARD_USE_PIN2 are defined, then the SD Card bootloader
8286
will run depending on the state of two external pins and the values of
8387
SDCARD_PIN1_POLARITY and SDCARD_PIN1_POLARITY. The SPI peripheral and pins
8488
will only be setup if the SD card bootloader runs. Note that if SDCARD_USE_PIN2
@@ -155,6 +159,7 @@ at https://github.com/mattairtech/ArduinoCore-samd. Each board
155159
and chip combination has two bootloaders available:
156160

157161
* SAM-BA interface only
162+
* This is the bootloader that is installed by the Arduino IDE
158163
* USB CDC only for all MattairTech boards
159164
* Both USB CDC and UART for most Arduino boards
160165
* The Generic board variants minimize external pin usage
@@ -263,9 +268,14 @@ If using Bossac standalone, download bossac directly at:
263268
* https://www.mattairtech.com/software/arduino/bossac-1.7.0-mattairtech-1-i686-linux-gnu.tar.gz (Linux 32 bit)
264269
* https://www.mattairtech.com/software/arduino/bossac-1.7.0-mattairtech-1-x86_64-apple-darwin.tar.gz (OS X 64 bit)
265270

271+
Linux 64 bit users can also download Bossa (GUI) and bossash (shell) from:
272+
273+
* https://www.mattairtech.com/software/arduino/Bossa-1.7.0-mattairtech-1-x86_64-linux-gnu.tar.gz (Linux 64 bit)
274+
266275
Note that the SAM-BA tools from Atmel will not work, and the version of bossac from the Arduino
267276
SAMD Core currently does not support the L21, C21, or D11 (but it does support the D21).
268277

278+
269279
#### Using Bossac Standalone
270280

271281
TODO: Update https://www.mattairtech.com/software/SAM-BA-bootloader-test-firmware.zip with new chips (L21 and C21).
@@ -281,17 +291,6 @@ Wl,sectionstart=.text=0x2000
281291
You can also use a linker script. See the MattairTech SAM M0+ package for examples.
282292
Be sure to generate and use a binary file. Many makefiles are set up to generate an elf, hex, and bin already.
283293

284-
Download Bossac from:
285-
286-
* https://www.mattairtech.com/software/arduino/bossac-1.7.0-mattairtech-1-mingw32.tar.gz (Windows 32 bit and 64 bit)
287-
* https://www.mattairtech.com/software/arduino/bossac-1.7.0-mattairtech-1-x86_64-linux-gnu.tar.gz (Linux 64 bit)
288-
* https://www.mattairtech.com/software/arduino/bossac-1.7.0-mattairtech-1-i686-linux-gnu.tar.gz (Linux 32 bit)
289-
* https://www.mattairtech.com/software/arduino/bossac-1.7.0-mattairtech-1-x86_64-apple-darwin.tar.gz (OS X 64 bit)
290-
291-
Linux 64 bit users can also download Bossa (GUI) and bossash (shell) from:
292-
293-
* https://www.mattairtech.com/software/arduino/Bossa-1.7.0-mattairtech-1-x86_64-linux-gnu.tar.gz (Linux 64 bit)
294-
295294
As an example, bossac will be used to upload the test firmware (blink sketch):
296295

297296
1. Download firmware from https://www.mattairtech.com/software/SAM-BA-bootloader-test-firmware.zip and unzip.

libraries/SDU/extras/SDUBoot/SDUBoot.ino

Lines changed: 0 additions & 92 deletions
This file was deleted.

libraries/SDU/extras/SDUBoot/build.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

libraries/SDU/keywords.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

libraries/SDU/library.properties

Lines changed: 0 additions & 9 deletions
This file was deleted.

libraries/SDU/src/SDU.cpp

Lines changed: 0 additions & 34 deletions
This file was deleted.

libraries/SDU/src/SDU.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)