Atmel AVR Studio 5.1 .rar

5 views
Skip to first unread message

Marziabo Hartley

unread,
Jun 29, 2024, 12:27:58 AM6/29/24
to pevantpickres

I loaded one of their example projects and built it without any errors. However, I am not able to debug since there is no option for a debugging tool (see screenshot). The only option is for 'Custom programming tool', while their tutorial videos all show an option for a SAM-ICE debugger or Simulator (e.g. =9QlDSNeuAdY)

I know this sounds terribly basic, but in my case I have both SAML21 and SAML22 Xplained Pro boards, and I'd forgotten which one I had targeted for a particular project. If you have a project open that targets one, but the attached device is different, you may have this problem. The only available option becomes "Custom Programming Tool" which isn't helpful.

I spend some time about this problem as well and found out that all I had to do was go to Device and Debugging options then go to Build and select All Configurations in the configuration box then the simulator should appear under tools.

In my case it was atbackend.exe which crashed after hibernating my laptop. I had to stop Atmel studio, ensure that no AtmelStudio or atbackend processes exist in system and then start ATmel STudio again. After that Simulator appeared in Tool-Selected debugger/programmer.

I'm considering using the SAMD21G18A in a new design, and got an arduino.cc Zero to learn more and evaluate it. It's up and running in the Arduino IDE (v 1.6.6), bootloader is functioning, and I'm able to program via both the native and debug interfaces. For continuing development, what I'd like to do is use Atmel Studio (I'm running v 7.0.634) and program the Zero through the native USB. It seems like a toolchain that would work well for building small quantities of custom boards - burn the bootloader into a new chip with an ICE via the 10-pin SWD interface, then use native USB to program/update from there on out.

(Side note: the debug USB does show up as the EDBG, but since that chip won't be on my custom board, it's not a long-term solution. Also, Atmel Studio wants to update the EDBG's firmware from 2.01 to 2.10 and I haven't been brave enough to open that potential can of worms yet).

I've also tried using BOSSA (gui version), and though the COM port is selectable, it can't connect to the device. SAM-BA seems to be out because I'm running 64 bit Windows 7 (README indicates it only works on 32 bit systems).

You should maybe take a look in the documentation of the Atmel development kit with SAMD chip (SAMD21 Xplained). Maybe there is a project with Usb CDC bootloader or something.
I've tried the Visual Micro plugin once, but with a lot of trouble so I can't really help. Have you tried to see where the plugin takes the compiled code? maybe you could put your compiled plain C code there...

Hi, AloyseTech. I did read through quite a bit of documentation before posting - there's a lot on burning a bootloader, and even creating a bootloader, not so much on then using one with Atmel Studio.

I kept at it and am getting somewhere....I ended up creating an "External Tool" that linked to bossac.exe with the following arguments (taken from the output of Visual Micro and Arduino IDE, as you suggested):

I wasn't able to get the Arduino to go into bootloader mode via pulling PA15 low (as detailed in Atmel's app note on SAM-BA Bootloader for SAMD21). But I was able to get it into bootloader mode by opening the native USB COM port at 1200 baud as outlined in the Zero's Getting Started Guide.

But of course my LED doesn't blink. It's likely that I don't have the SAM initialized properly for the Zero board, the template I started with was the bare-bones Atmel Studio default. Seeing exactly what system_init() does and digging through clock settings is next on my list.

Also, I wasn't able to get the SAM back into bootloader mode after "programming". I was able to re-burn the bootloader through the EDBG port and upload working blink code through the Arduino IDE again. So at least I'm back to where I started.

I tried Atmel Studio with Visual Micro plugin for bootloading and FW development for MKR Zero using the native USB and gave up. Too much trouble, too complicated, too buggy. Atmel studio is kind of nice for code editing and debugging because it's based on the MS Visual Studio IDE. But other than that naghhh.

I'm now back to Arduino IDE and I can do everything I need: bootload and program through native USB port with Atmel ICE with no problems, easy and straighforward. Unless you need to use the Atmel ASF libraries you can do everything else in Arduino IDE including direct accessing and manipulating all SAMD21 registers.

I did eventually get it to work with my custom board, but ended up using the Arduino IDE instead. The reason was twofold - 1) I didn't want to mess with creating my own USB drivers (or using ASF which is just as bloated as Arduino and way more obfuscated IMO). Since I was still essentially married to Arduino...it was just easier to use the IDE. 2) I think you have to put your board into bootloader mode in order to get the below to work. I didn't want to have to press a button to do that, and there didn't seem to be an obvious way to do the baud rate toggle in Atmel Studio.

Anyway, the way I did it in Atmel Studio was to do put the board in bootloader mode (long press on the reset button since I was using an Adafruit Feather bootloader), then use an External Tool that links to bossa. I believe my final syntax was this:

I know it's a bit late to post in this topic but thought to give it a try.
I was trying to integrate a SAMD21 Mini from sparkfun into Atmel studio & by far,i have done it successfully & I can program the SAMD21 using a single click on a external tool that I configured,which will eventually call a batch file to send the chip to bootloader mode & program by calling bossac.exe.

Normally when i attach the SAMD21 to PC,it shows up as a virtual com port(COM29 in my case).We know that Arduino IDE sends the SAMD chip to bootloader mode by opening & closing the CDC serial port @1200 baud(In my case here,COM29).Now when programming from Arduino IDE,when in bootloader mode during programming,the SAMD21 changes the port from COM29 to COM28(as i can see from Arduino o/p window).
As soon as the programming is done,the COM29 gets back.
Although,I burn a blank sketch,the COM port shows up after burning the sketch.
So that clearly means that the Arduino configures some sort of USB CDC driver & adds it before the main program(invisible in the IDE though),so that the COM port always shows up so that the Arduino IDE can detect it & send it to bootloader mode(by open & close the port @1200 baud) for the next round of programming.

When programming from Atmel studio,everything remains fine for the first time(SAMD21 loaded with fresh Sparkfun Bootloader from Arduino using Atmel ICE) until the programming is completed.Now the COM29 gets vanished.So clearly in case of Arduino,it adds some sort of USB CDC driver so that the COM port shows up & in case of Atmel studio,it doesnt show up at the end of programming as the code is not there.
So i have to double tap reset button for the next round of programming.

I also tried to add a USB CDC program(That i got from an example) & initialized the USB.Now the COM port(now COM30) shows up after burning program but sending the SAMD to bootloader by opening & closing the port@1200 baud gets fail in the next round of programming & so on.
Clearly,i have to write something in the USB CDC driver that can sense the opening/closing of the port @1200 baud & resets the chip to send it into bootloader mode.Unfortunately,I can't do that as i don't know the register level programming of SAMD boards(I purchased the board to learn )
Can anybody help?I can provide the files what i've done so far......Please reply!!

SonarLint is an IDE extension - free and open source - that helps you detect and fix quality issues as you write code. Like a spell checker, SonarLint squiggles flaws so they can be fixed before committing code.

As team we try to get SonarLint working on visual studio 2019 community edition or in Microchip studio which previous is known as atmel studio. Atmel studio is based on the visual studio suite So in theory the plug-in should work. But the installer of sonarlint tells that it cannot find a suitable product to install sonarlint into.
What I achieved so far:

My question is does SonarLint support atmel studio or will we need another tool or product for this issue. We would like a tool that works from within the IDE without to much configration or creating scripts.

The best use case would be:
Scan in the IDE for errors and report them to the SonarQube webui ( Developer edition)
We think the SonarLint plugin has this capabilty but we dont know how to make use of it or how to use it. We suspect this is a configuration/ user error of us.

Note I found a way to open up the vsix file, cause its just a zip file. but after editing the 16.0,17.0 to 12.0, This would give support for all versions I get the following error and I cant fix that

What is the version of Microchip Studio you are using ? And on which version of Visual Studio is it based on ? The problem might be that you try to install SonarLint for Visual Studio 2019 on an IDE that accepts only VS 2015 or VS 2017 extensions.

Now that we've gotten everything hooked up it is time to program. There are a few different options for programming. Atmel studio is a great option (assuming you are using an ATMEL ARM processor like the SAMD line). Atmel Studio also lets you write programs in C, and compile your code. The Arduino IDE also lets you compile and download a *.hex file of your code. Make sure you download and install Atmel Studio (Windows 7 or later only)

Let's go ahead and open Atmel Studio. Then we'll go to Tools and then Device Programming. From the drop down you'll need to select your programmer as well as your device (you might have to agree to the Terms of Use first). Then hit Apply and it should verify your programmer. Then go ahead and read the Device signature and Target Voltage, this make sure everything is being read correctly. Feel free to look around, you can get quite a bit of Tool Information as well as Device Information.

7fc3f7cf58
Reply all
Reply to author
Forward
0 new messages