Questions tagged [samd21]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Timer vs PWM channel in variant.cpp (SAMD)

Looking at an example variant file such as this one for an ItsyBitsy M4, what is the difference between the PWM channel and the timer channel? My understanding was that they correspond to the same ...
0
votes
0answers
61 views

understanding bootloader with linker

I'm using chip SAMD21G18 SAM-BA bootloader Bossac code I'm looking at how bootloader works. but found some questions that i cant get an answer for: looking into source code of PC client software (...
0
votes
0answers
71 views

Slow Adapter Speed on SAMD chips with FT2232H and FT232H

I have been using a FT223H breakout board from Adafruit along with openocd as a cheap SWD programmer for my ATSAMD21 projects both on breadboard as well as final products. It had an odd issue where ...
0
votes
1answer
35 views

SAMD21J18 abnormal boot

SAMD21J18 in a custom made circuit behaves abnormally as following: Delayed boot time between 2 to 5 seconds randomly Boots on touching the MCU crystal's metal top with a metal pin Boots on touching ...
0
votes
1answer
56 views

Generate unique IP/Mac from samd21 serial

We created 100 custom PCB around the samd21. And I'd like to generate some unique IP/Mac addresses from the Serial number of the samd21. In the datasheet they say the following Each device has a ...
0
votes
1answer
103 views

Atmel SAMD21 DMA Transfer Complete Interrupt not firing

I have configured the SAMD21 peripherals so that incoming audio data from I2S will be copied into a memory buffer with DMA. As the controller allows linked DMA descriptors, I have two descriptors ...
2
votes
1answer
67 views

SAMD21 1μs timer handler taking longer than the timer period?

Before I begin I'd like to mention that I'm relatively new to working with microcontrollers at this low level, so please bear with me. I am trying to use an Adafruit Trinket M0 to process and ...
0
votes
1answer
60 views

ASF SAMD21G18 2x timers usage

im trying to use ASF to schedule repeated tasks. using TC4 and TC5: in atmel start both using generic clock generator 0 (48MHz). both are HAL:DRIVER:Timer driver init.c is generated automatically ...
1
vote
2answers
507 views

SAMD21 - How do I write to NVM fuses?

I'm trying to program the ATSAMD21G18 on Adafruit Feather M0 and over SWD Using a Segger J-Link EDU Nano. When I try to download the program to the chip through Atmel Studio it fails verification at ...
1
vote
0answers
170 views

Adapt existing usb-2 otg device to usb-c but use usb-2 mode

there are number of articles out there, like this one: http://www.ti.com/lit/wp/slly017/slly017.pdf But I'm not super confident in my abilities here so I'm wondering if someone could proof my ...
0
votes
0answers
35 views

When using OpenOCD, GDB load erases bootloader: sectors too big?

Let me start off by saying this is the first time I've tried using OpenOCD. Ultimately my goal is to debug an ATSAMD21G18, and what I have available is a RedBear's DAPLink V1.0 USB Interface. The ...
2
votes
1answer
180 views

ATSAMR21 sleep high current draw

I have an ATSAMR21B18-MZ210PA, which is an ATSAMR21E18 packaged with MX25L2006E flash. The SAMR21 is itself a SAMD21 paired with an AT86RF233 wireless module. So that's a SAMD21 + low power wireless + ...
0
votes
1answer
219 views

difference between CMSIS and ASF

im trying to make c++ project using atmel asf. the compiler have: ...
0
votes
1answer
131 views

Intermittent NVM programming error

Occasionally I'll get the following errors while programming my SAMD21 chip. Anyone know the reason? ...
2
votes
1answer
431 views

SAMD21 DAC example

beginner here in need for starting directions. I have SAMD21 Xplained Pro Board. I would like to produce DC DAC output, based on 8 bits on the input. Range of my DC output values should be around ...
-2
votes
1answer
377 views

Using Adafruit Trinket M0 (SAMD21) as a USB to Serial converter

I wanted to know if it is possible to use SAMD21 as a USB to Serial converter like the usual FTDI chips ? If yes could you please point how to achieve that. I believe that Adafruit Trinket was used ...
1
vote
3answers
1k views

Combining a bootloader and user program into single flash-able binary

I want to flash the UF2 bootloader for SAMD21 MCUs together with a compiled binary of a user program onto a SAMD21 MCU. From what I understand how any bootloader works, the bootloader sits in a ...