@@ -12,11 +12,11 @@ You can then install the package by opening up the Boards Manager:
...
@@ -12,11 +12,11 @@ You can then install the package by opening up the Boards Manager:
<imgsrc=img/board_manager.pngwidth=80%>
<imgsrc=img/board_manager.pngwidth=80%>
And looking for a package called "Fab SAM core for Arduino". Simply install the latest version:
And looking for a package called `Fab SAM core for Arduino`. Simply install the latest version:
<imgsrc=img/install_board.pngwidth=80%>
<imgsrc=img/install_board.pngwidth=80%>
A new menu appears under "board", letting you select a variety of chips. Some generic names contain an "x", for instance for a SAMD21E17, you would select "Generic x21E":
A new menu appears under `board`, letting you select a variety of chips. Some generic names contain an `x`, for instance for a SAMD21E17, you would select `Generic x21E`:
<imgsrc=img/board_list.pngwidth=80%>
<imgsrc=img/board_list.pngwidth=80%>
...
@@ -34,26 +34,43 @@ This can be achieved with a bootloader, that first needs to be installed on the
...
@@ -34,26 +34,43 @@ This can be achieved with a bootloader, that first needs to be installed on the
### Burn bootloader
### Burn bootloader
Connect a CMSIS-DAP adapter (Atmel ICE is also fine) to your board and make sure both are powered.
Select the right board and microcontroller, then `CMSIS-DAP` as the programmer, then click on "Burn bootloader".
<imgsrc=img/burn_bootloader.pngwidth=80%>
<imgsrc=img/burn_bootloader.pngwidth=80%>
If all goes well, your board will now be detected as a serial port and you can start uploading to it through the bootloader
### Upload
### Upload
To upload a sketch, simply use the `upload` command or the arrow icon. Make sure the bootloader size is not set to `NO_BOOTLOADER`, otherwise the bootloader won't be used.
This is a special scenario where you have a bootloader but still want to upload using a programmer. Reasons might be:
- Upload is slow through the bootloader
- You disabled USB support and the board cannot be found
In those cases, connect a programmer and explicitly pick `Upload Using Programmer`:
<imgsrc=img/upload_programmer.pngwidth=80%>
<imgsrc=img/upload_programmer.pngwidth=80%>
## Without bootloader
## Without bootloader
As expained previously, bootloaders use some of the flash. With the SAMD11, we only have 16kb of total flash, and the bootloader would use 4kb of that.
As expained previously, bootloaders use some of the flash. With the SAMD11, we only have 16kb of total flash, and the bootloader would use 4kb of that. If you want to recover this extra space, you can use your chip without a bootloader altogether. You'll need a programmer connected every time you upload a sketch.
In some applications, you want to recover those 4kb
To enable this behavior, simply select `NO_BOOTLOADER` in bootloader size:
<imgsrc=img/without_bootloader.pngwidth=80%>
<imgsrc=img/without_bootloader.pngwidth=80%>
### Upload
### Upload
To upload without a bootloader, connect a programmer and either pick `Upload` or `Upload Using Programmer`: