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

Is the ATSAMDA1 micro supported? #623

Open
sakian opened this issue Jun 24, 2022 · 3 comments
Open

Is the ATSAMDA1 micro supported? #623

sakian opened this issue Jun 24, 2022 · 3 comments

Comments

@sakian
Copy link
Contributor

sakian commented Jun 24, 2022

I'm looking to develop for a ATSAMDA1G16B microcontroller. It isn't listed in this repo as a supported chip, but it shares a datasheet with the D21 chips. Is it supported out-of-the-box? Do I need to add support to get it to work properly (add PAC, add to HAL)?

@sajattack
Copy link
Member

I'm not sure if that chip existed when this project began. 😅 Anyway, I would recommend looking through the datasheet to see how it compares to other chips we support in order to determine if it needs a separate pac or can use one of the existing ones.

@sakian
Copy link
Contributor Author

sakian commented Jun 24, 2022

From diffing ATSAMD21G16B.svd with ATSAMDA1G16B.svd, it looks like there are only a few differences:

  • The DSU peripheral has a different DID reset vals (makes sens since it's a different chip model) and the entry fields are enumerated differently
  • The DA1 has one less GCLK (8) opposed to the D21 (9)
  • The DA1 has two more TCs (TC6 and TC7)

Actually, the ATSAMD21J16B is an even closer match since it also has the extra TCs, although interestingly, it looks like the HAL doesn't support them.

Does anyone anticipate any issues going ahead with treating the DA1G chip as a D21J?

@Dridus
Copy link

Dridus commented Aug 30, 2022

FWIW, we (Vital) added a proper PAC and HAL adjustments based on the SVD, though we're still developing against it so might find issues. it's also based on the WIP v2 clocking branch. if anybody needs ATSAMDA1 support though they might find it useful: VitalBio#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants