| Electronics > Microcontrollers |
| Wanting to begin using Atmel |
| (1/3) > >> |
| Excavatoree:
First, I know similar questions have been asked before, but I'd like to get everything condensed so someone like me can understand it. I listened to Dave's good advise, and bought a Pickit 3 (and 2, but that's another story) and downloaded Microchip's IDE. Everything works very well as far as I know - no problems. I've programmed in assembler before, I've never used and don't know C, so my first programs are in ASM. A side benefit is being able to really get in there and learn the nitty gritty details of the hardware. It's enough for my simple projects that I am doing right now. I will eventually learn C, and have to sort out what C compilers are available, etc. But that's another topic. I'm not a dickhead. (ref Dave's rant) Dave said not to bother with homemade and third-party programmers and program loaders. There's no need; the Pickit works so well. Atmel seems to be a different story. The Atmel IDE has been criticized, and there are more, and better "homemade" and third party programmers, running better program loaders. One example is AVRDUDE - but it's like the 1980's compared to PIC's IDE - cryptic command line command vs point and click menus - why do these "makers" hate Pic so much? Dollar for dollar it seems Pic is the best deal for the money. But I digress. Atmel's IDE supports the expensive 600 dollar STK programmer, and the AVRISP (I think it's called). It looks to me like there simply ISN'T an Atmel equivalent to the Pickit and the Picrochip IDE. One can spend more and get the same experience, or "cheap out" and end up back in the 80's typing single initial coded command lines. Can someone fill in the holes in my knowledge? Am I missing something? |
| Mechatrommer:
--- Quote from: Excavatoree on February 08, 2011, 01:15:13 pm ---One example is AVRDUDE - but it's like the 1980's compared to PIC's IDE - cryptic command line command vs point and click menus or "cheap out" and end up back in the 80's typing single initial coded command lines. --- End quote --- you can program windows app to send command line to avrdude. i used vb and win32 api to do that. --- Quote from: Excavatoree on February 08, 2011, 01:15:13 pm ---Atmel's IDE supports the expensive 600 dollar STK programmer, and the AVRISP (I think it's called). --- End quote --- i think avrisp not that expensive and should be equivalent to pickit. but no supply in ebay, so i got one of the 3rd party (similar casing shape with original), last time i used it, it works great. i cannot wait to work with it again... soon, very soon, i hope. |
| Excavatoree:
--- Quote from: Mechatrommer on February 08, 2011, 01:45:21 pm --- you can program windows app to send command line to avrdude. i used vb and win32 api to do that. i think avrisp not that expensive and should be equivalent to pickit. but no supply in ebay, so i got one of the 3rd party (similar casing shape with original), last time i used it, it works great. i cannot wait to work with it again... soon, very soon, i hope. --- End quote --- So, I have an additional choice to the 80's type interface - write my own? Sorry, but Pic has that beat by a mile. Buying an ATtiny or something similar and writing my own front end for a free program loader is cheap, I will admit, but I'd gladly pay 50 dollars for something like the Pickit. I didn't write my first post very well. My point about the avrisp was that it seems to be the only low cost programmer that works with Atmel's ide, yet folks dislike atmel's IDE so much that they go back to the 80's. (or do some programming) If the Atmel IDE really isn't that bad, and works with avrisp, then that seems to be the answer I seek. My other side question is, why do people insult PIC when it seems to be a much better system as far as "bang for the buck" is concerned? (note, I'm not starting am Atmel vs Pic war here, I suspect I am lacking key information that leads me to that conclusion, so I suppose my real question is - "what's wrong with my understanding?" despite my poor attempts at asking. |
| alm:
The closest thing to the Pickit in the AVR world is probably either the AVRISP Mk. II (I would recommend the original, it's not that expensive, and available from most electronics distributors like Digikey, Mouser and Element14. The AVRISP Mk. II can program almost all AVR chips including the Xmega (except the AVR32 parts, which aren't that interesting IMO). The AVRISP Mk. II is a professional tool, and many people have good experiences with it. The disadvantage of the AVRISP Mk. II is that it doesn't support on-chip debugging (JTAG/debugWire), which allows you to set breakpoints and single step through the program running on the actual silicon (as opposed to debugging in the simulator). The affordable solution is the Atmel AVR Dragon, which supports programming like the AVRISP Mk. II, but can also debug all ATtiny/ATmega that support debugging (both JTAG for the larger parts and debugWire for the smaller parts). The 32k code size limit was removed in recent AVRstudio (firmware) last year. Downside of the Dragon is that it's a bare board without case or cables (you need a USB cable and some flat cables). It also has a reputation for being sensitive to being touched near the DC-DC converter, or USB undervoltage, but this seems much improved by the later revision (from 2009 I think, so any distributor should have it by now), which has mounting holes. The JTAGICE Mk. II is basically the more robust version of the Dragon, but is much more expensive. Don't buy any of the cheap JTAGICE (Mk. I) clones, they can only debug a handful old parts (ATmega16/32/64/128 I think). There is also the STK500, which is a development board which includes a programmer (debugger), but I believe it's end-of-life. It supports most DIP-style AVR's (including the Xmega), and has some neat features like an adjustable power supply and clock generator. The new STK600 has basically the same features, but supports the Xmega and is a lot more expensive (the DIP adapters alone are as expensive as the STK500). One reason for preferring the command line tool is so it can be incorporated into Makefiles, which you can't (easily) do with GUI tools, although Atmel also supplies command line tools. AVRdude also has the advantage is that it supports many programmers, including things like the Arduino bootloader, through the same interface. AVRstudio only supports Atmel programmers (or clones). I would recommend to start with AVRstudio, since it works out of the box. You can also add WinAVR if you want to program in C. It supports simulation, programming and debugging (with the necessary hardware) all in one package. Other popular IDE's are Code::Blocks and Eclipse (with AVR plugin), but they need more setup, and are generally used with C. Debugging may also be more limited. You're also free to use any editor of choice, and do compilation/programming through a build system like Makefiles. There are also commercial compilers/IDEs available, which tend to be more friendly or produce better code. One reason why AVR may be more popular is because AVR-gcc, a free open-source C/C++ compiler, is available for (almost) all of them. In the PIC world, I believe only the PIC32 is supported by gcc. I think there is some open source compiler support for the 8/16-bit PIC parts, but it's much less mature. You have to choose between a non-optimizing compiler or paying money for one (and hope everyone bought the same one), and most run only on Windows. There also appears to be more open source software like USB stacks for the AVR, although you can argue whether this is a cause or effect. |
| Chasm:
Maybe you would have got more answers if you had just asked the question from the topic title and not continued to set this up as a Atmel vs. Microchip flamewar. 8) There is no official equivalent for the Pickit on the Atmel side. Some clones exist, see eBay or the various Chinese sites. The usual programmer is the AVRISP MKII, reliable and cheap (35 Euro) but no debugging. The AVR Dragon has debugging functions but is reported to have some problems. Most because it does not have case and the foam in the box is indeed conductive antistatic foam... It is not much more expansive than the AVRISP. (50 Euro) The Atmel JTAG ICE MK2 is the full featured product and that includes the price. (300 Euro) Then there are also the development boards, but they are not the topic here. Other than the official stuff there are tons of clones and DIY projects cratering to various needs from a fully featured programmer/debugger to a price point of less than 4 Euro including shipping. Many tie into the AVR Studio, others use the various command line tools either directly or via wrappers. As far as the usefulness of command tools are concerned you should review the end of Dave's Pickit 3 rant, he was missing the stand alone tool for the Pickit 2 and while a version for the Pickit 3 has been promised it has AFAIK not been delivered so far. ;) |
| Navigation |
| Message Index |
| Next page |