SNAP with Atmel Studio

Go To Last Post
21 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I downloaded AS earlier this month, version 7.0.2397.  Today I received my SNAP, removed R48 and added a 10K pullup to the UPDI signal.  AS doesn't recognize the SNAP.  Do I need to download MPLAB and update my SNAP board to be able to work with Atmel Studio?

 

Doug

Last Edited: Tue. Mar 24, 2020 - 08:35 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

IIRC you first have to talk to it from MPLAB to get the correct f/w, then it will work with AS7.

I can't recall if there were other steps involved or not, but there has been discussions here, so some searching should find it.

 

Jim

 

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes.   Upgrade Packs on AS7.0 to recognise SNAP.

 

You might need to Upgrade SNAP with MPLABX.   Please just try the AS7.0 Pack Manager first.   It would be useful to know if SNAP works without MPLABX.

 

And change your 10k pullup with a 1k0 resistor.    10k is too wimpy.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I got a message that said I needed to update the SNAP firmware.  AS7 recognized the board, but I don't think it could talk to my ATtiny416 target.  Thanks for the help.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Updating packs in Studio will enable Snap to work with various devices.

Snap can be switched between PIC mode and AVR/SAM mode from its context menu in the Available Tools list.

Snap cannot be upgraded in Studio. To get latest firmware you need to use MPLAB.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't mind using MPLABX. But I can't figure out any way to switch from PIC mode to AVR mode.  I don't see any Available Tools list, and so no context menu.  How do I do it?

 

Doug

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In Studio, click View -> Available Atmel Tools and you should see a list of Simulator + all connected USB tools. 

If you see the Snap in there, then its at least recognised and you can right-click on it to switch it to AVR mode.

If the Snap is not in the list, then I guess MPLAB is needed.

(Unfortunately I can't give you exact details or screenshots since I did not think to bring my Snap home into lockdown :/ )

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Download and install MPLABX IPE v5.30 and IDE v5.30

 

It is probably easiest to run the IPE v5.30

1. click on [Operate] i.e. the top icon on the left hand of the screen.

2. Family:  8-bit AVR MCUs

3. Device: ATtiny416 -> [Apply]

4. Tool: SNAP

5. click on [Read]

 

The Output screen should show the SNAP connecting, upgrading, reading the AVR memory.   Note the SNAP Firmware version i.e. 1.3.94

 

6. Window->Target Memory Views->Program Memory

 

The Output screen should show the Flash contents.

 

7. Leave MPLABX IPE

 

8. Start AS7.0

9. View->Available Tools: SNAP

10. right-click Upgrade.   My SNAP says v1.03 i.e. up to date.   (probably from firmware v1.3.94)

 

Alternatively you could run MPLABX IDE v5.30.   Create an empty Project.  "Run" the project.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks. I misunderstood.  I thought I was doing these things with MPLABX.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I downloaded IDE 5.35 yesterday, but I didn't know that I needed the IPE.  (I'm just programming in assembler, and I thought the IPE was some kind of fancy C++ framework.)  Thanks.

Last Edited: Wed. Mar 25, 2020 - 02:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You don't need the IPE.  (Integrated Programmer Environment)

 

I just thought that you might find it less confusing.

The IDE is fairly complex.   You only want to "connect to SNAP".   "Upgrade SNAP".

 

There are so many options and "features" of the IDE that you might lose the will to live.

 

If you are still having problems,   I suggest that you take notes of each step.   And post the steps in your message.

Confession.   I used the IDE to upgrade my SNAP.    But I am more familiar with the MPLABX IDE than the IPE.

 

One day,   AS7.0 will be able to upgrade SNAP directly.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here's a shot of my MPLAB screen.  What do I click on?

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can click the two green circling arrows in the project explorer... This will check firmware etc and upgrade and switch it correctly... 

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:
You can click the two green circling arrows

Thanks Morten.  Such simplicity is often well concealed :|

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

MPLAB recognizes the SNAP board and it knows I'm using the ATtiny416, so maybe the problem isn't the firmware in the SNAP.  Attached is the error I have always been getting when I try to program my target board.  Any ideas?

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Oh dear, looks like USB woes :/

Have you tried putting it in PIC mode first (just make a dummy project using a PIC) and then back to AVR mode?

This has been know to shake out some factory-dust from Snaps in the past.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The SNAP doesn't appear in the context menus for PIC devices; it only shows up when I select an Atmel uC.  So I give up.  What's my next best option?  Is there a 3rd party programmer/debugger?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've got an ATtiny416-XNANO board that works great with AS7. I wonder if I could just remove the ATtiny416 from that board and run a 3 wire (+5V, Gnd, and UPDI) connection from the NANO to the 3-pin connector on my target board. 

Last Edited: Wed. Mar 25, 2020 - 07:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, the XNANO board works as a programmer.  I removed the ATtiny416 from the NANO and ran a three wire cable to my target header.  Voila!  It still debugs, too, just as if my target ATtiny416 was installed on the NANO board.  One gotcha, though.  Of course, I didn't want my target +5 volt power supply to be fighting with the +5 volts from USB. And putting 5 volts on the output of my linear regulator without any voltage on the input of the linear regulator exceeds the absolute maximum voltage rating of the output pin.  So I jumped across the linear regulator while the NANO was driving the target.  Thanks for everyone's help.  I think this will work for me.  (Pictures attached.)

 

Doug

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nice!

FYI If you do find a Curiosity Nano, there are cut-straps to make this process easier, as well as level shifters so you can debug your board at any voltage.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I had the same problem....
I did an emergency reset on the Snap tool ( need to short out a pad on the board) while it was installed on the MPLAB X  IPE tool..  It then downloaded new firmware that supported AVR's  and  then worked quite well on AVR Studios ver 7.

 

 

Last Edited: Thu. Apr 2, 2020 - 01:51 AM