Metro M0 Express via SWD

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Anders2
 
Posts: 3
Joined: Thu Sep 02, 2021 3:45 am

Metro M0 Express via SWD

Post by Anders2 »

Hi,

I'm trying to connect to the Metro M0 Express (ATSAMG18A) via SWD but I keep getting 'cannot get debug register'.
I am not a beginner and have used lots of other arm core processors. The Metro M0 Express boards were bought just to verify some of the peripherals before I finish the pcb design.

So is there anything in particular I need to know about the Metro M0 Express boards in order to use the SWD conector? Is there something disabling it or has a write/read/program protect fuse been set or what?

I need to know in order not to waste to much time fault checking on my side.
I'm using Crossstudio and a Crossconnect. I can use my Segger JLink if that would make a difference.

Best regards,
Anders

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Metro M0 Express via SWD

Post by adafruit_support_carter »

Shouldn't be any different than connecting to any other board via SWD. The Metro M0 is a ATSAMD21G18 (fixed), so just need to make sure to select that. Maybe try JLink as another way to just test if you can make a basic connection.

User avatar
User_UMjT7KxnxP8YN8
 
Posts: 323
Joined: Tue Jul 17, 2018 1:28 pm

Re: Metro M0 Express via SWD

Post by User_UMjT7KxnxP8YN8 »

Perhaps something in my post on debugging the Metro M4 Express will contain something that will help you. viewtopic.php?f=63&t=140725&hilit=+debug

User avatar
Anders2
 
Posts: 3
Joined: Thu Sep 02, 2021 3:45 am

Re: Metro M0 Express via SWD

Post by Anders2 »

We both wrote ATSAMG18A, but it is ATSAMD21G18A, right?
(Checking just in case.)

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Metro M0 Express via SWD

Post by adafruit_support_carter »

Sorry. Fixed my post above. Correct - ATSAMD21G18
m0.jpg
m0.jpg (49.54 KiB) Viewed 356 times

User avatar
Anders2
 
Posts: 3
Joined: Thu Sep 02, 2021 3:45 am

Re: Metro M0 Express via SWD

Post by Anders2 »

Another very annoying problem is that the downloadable pdf adafruit-metro-m0-express-designed-for-circuitpython.pdf is blank.
There is an index but the rest of the pdf is blank. Could you update this. Please. The downloaded pdf is attached in case there is a difference between your pdf and the uploaded one.
Attachments
adafruit-metro-m0-express-designed-for-circuitpython.pdf
(616.73 KiB) Downloaded 6 times

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Metro M0 Express via SWD

Post by adafruit_support_carter »

I'm seeing same thing. Sorry about that. This has happened before. I'll pass this on to get it looked at.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Metro M0 Express via SWD

Post by adafruit_support_carter »

The PDF should be fixed now.

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”