Atmel-ice avoid reverse connection

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

Hello,

I just got my hands on a STK600-TQFP32 dev board.

 

 

I need this board to figure out the correct connections between the atmel-ice and the atmega328p-au to program it.

(i know that there are many tutorials for connections between them, but i need to be sure, since i will order a pcb with the atmega328p-au on it, what is costly and will need to be re-programmable on the pcb)

 

starting of, I want to connect the atmel-ice to the STK600-TQFP32 board. It clearly has a connector for it (ISP/PDI port):

But i dont know the correct polarity of the Atmel ice's pdi port to connect to it (its the first time i use the Atmel-ice as well). I saw this image for the pdi online:

But my pdi doesnt have any numbers on it. I decided to power the Atmel-ice and measure each side with a multimeter.

None of the voltages was 5v, not even 3.3 volts.

above: 0.8v

 

above: -5.6mV

 

I know that this is the first time i am using the Atmel-ice and i should look it up a bit more, but does it make any sense that i cannot see the '5v' anywhere?

 

Note: I also have in mind that i can buy a pcb with atmega328p-au's footprint, solder it there and do my experiments, but i wanted to try using these tools, since i have them here.

 

Thank you.

This topic has a solution.
Last Edited: Fri. Sep 27, 2019 - 08:01 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think that there is a missunderstanding here. PDI is different than UPDI, the UPDI is a successor to PDI...number one.

 

Number two, Atmel-ICE does not provide power to the target, that means if you want to program a target PCB, then this target PCB has to be powered, Atmel-ICE has to be power also through USB connection say 5V+...other than this you are just messing around with your STK.

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

The M328 uses ISP and not PDI, although on the STK they share the same pins, but not the same pin out.

Note: the diagram you posted is the view from the top, so if you turn the connector over as shown, the pins will image reverse, i.e. pin 1 it top right, a common mistake seen here.

For an example of correct pin out, see the open source schematic and layouts for an Arduino Uno or Arduino Nano, it will include the needed bypass caps and connections for ISP.

If you need additional help, AVRFreaks will be glad to review your schematic and PCB layout before you commit to order.

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The BIGGER problem is that it looks like you are missing the VERY IMPORTANT routing card that goes under the Socket card.  Otherwise you can break things, get serious voltage issues etc....

 

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

Pin 1 is marked...so the pinout is like:

 

5 3 1   

6 4 2

after applying your ISP cable, you must supply power to the chip to program it--SEE below

 

4.2 Target Voltage VTG The VTG voltage is the supply voltage to the target AVR microcontroller. It is connected to the AVR's VCC pin. VTG can either be generated by STK600, or it can be supplied from an external source. 4.2.1 On-board VTG source The on-board VTG source is set from AVR Studio. To use this source, the VTARGET jumper must be mounted. The on-board supply can be adjusted from 0.9 to 5.5V in steps of 0.1V. VTG can also be set to 0V, but due to hardware limitations, onboard generated VTG can not be set between 0 and 0.9V. Note: Always check the AVR datasheet for operating voltage range before adjusting VTG.

 

 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

Doesn't really hurt anything to plug the ICE in the wrong way, unless Tesla cars are involved. I put a dab of white paint on the connector at pin 1.

 

Easiest way to tell is to try to read the signature. No go? Turn it around. Strangely, the supply voltage often reads pretty close with the connector backwards.

The largest known prime number: 282589933-1

It's easy to stop breaking the 10th commandment! Break the 8th instead. 

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

The OP is missing the ROUTING card for the STK600...NOTHING will work properly until the card is installed under the socket card.

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

 

The OP is missing the ROUTING card for the STK600...NOTHING will work properly until the card is installed under the socket card.

since I will order a pcb with the atmega328p-au on it, what is costly and will need to be re-programmable on the pcb ...sounds like he just needs an ISP cable to his PCB and THAT should work (I believe)

As mentioned, he may try out the TQFP board, then the routing card would come into play.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

The socket card cannot be on the STK600 as-is because it will piss off the ISP/JTAG/PDI pins

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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


Can't help thinking that an  ATmega328P Xplained Mini would have been a far simpler choice:

 

https://www.microchip.com/DevelopmentTools/ProductDetails/PartNO/ATMEGA328P-XMINI

 

The ATmega328P Xplained Mini evalutation kit is a hardware platform for evaluating the ATmega328P microcontroller.

The evaluation kit comes with a fully integrated debugger that provides seamless integration with Atmel Studio.

The kit provides access to the features of the ATmega328P enabling easy integration of the device in a custom design

 

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jgmdesign was right, i didnt put the routing card underneath the socket card. But thankfully, nothing broke (i think).

I was able to find out the arrangement of the pins

 

And i could use the board, along with the Atmel's studio software, but i didnt manage to program the IC. (atmega328p-au). The most i could do, was to read the id/state of the ic, until one tutorial guy told me to change a fuse setting, and after that i get the error "unable to get into programming mode" every time i try to read information from th IC. 

I changed the IC with another atmega328p-au, but the same error occured. Did these fuse settings applied on the atmega i am trying to program, or on the stk600? seems weird. I will make another thread here about that, cause even though i have found other people posting answers about that "unable to get into programming mode" issue, no solutions worked for me.

 

I will try this tutorial on monday, looks primising. https://www.youtube.com/watch?v=UuHpA8OjblE

Last Edited: Fri. Sep 27, 2019 - 08:13 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why did you want to change the fuse settings?  Can you start off just using the default internal clock?  Often the  bare min is just turning off the 8x clock divider & perhaps enabling BOD protection.

Were you able to program any led blinky program into the chip?

 

Does your PCB have bypass caps for the AVR?

Where is the schematic of your PCB?

 

 but the same error occured. Did these fuse settings applied on the atmega i am trying to program

Why do you insist on being so vague?  What settings?  

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!