hanskarl2000:
I have bought too some of these chips and I don't succeed to get communication with Atmel AVR Studio 6 over ISP6 with JTAGICE3. Do they need external crystal for startup or anything else ?
Here is my test rig. It's set up like a normal AVR on a breadboard or solderboard and I don't have an oscillator and it's working fine. It's just doing one of four Knight Rider style LED animations based on a left button, right button is reset. I set it up to prove to myself I could get this thing programmed, not to prove I could use every feature on it. My programmer for this was a AVRISP mkII.
sierrasmith71:
Close reading indicates that the AVR-GCC included in the Arduino IDE needs to be "Fresher" .. I have no clue how to do that --Typical Windows user....egad!
Download WinAVR, unzip it. Copy the files from the 'bin' folder into the corresponding folder in your Arduino installation.
If you update your WINAVR bin folder make sure you restore back avrdude.exe from the Arduino IDE version. The version of avrdude.exe included with WINAVR2010 is old and doesn't support some options properly. (Like support for wiring programmer needed for Arduino Mega2560 boards.)
but always got stuck at one place -- getting right avr-g++. I am using Windows, it may be easier on a Mac.
Even though Tools -> Boards in Arduino IDE showed the ATtiny with internal 8MHz, when I hit compile, I always got the error that mmcu=attiny1634 is not supported. I got the new avr-gcc from
but it didn't help. I also tried to get new WinAVR from WinAVR download | SourceForge.net but still got the same error. I tried regenerating the Makefile because attiny1634 is not listed in my C:/ArduinoSDK/hardware/tools/avr/mfile/mfile.tcl. I have no background in this so failed again. I would appreciate if someone adds how to update Makefile with your added AVR.
Finally, I downloaded Atmel Studio 6.1. Went to C:/Atmel/Atmel_Studio_6p1/Atmel ToolChain/AVR8 GCC/Native/3.4.2.939/avr8-gnu-toolchain and copied all the files to where Arduino IDE looks -- in hardware/tools/avr (overwrite the files) and that's it, it worked!!
Good day everyone! With all the instructions from rambo, the tiny package creator for 1634, I was able to make the chip do what I want, but I may only digitalRead and digitalWrite only. Does any one figured out how to use analogRead on the attiny1634? I need to read voltage. And if yes, may you please explain how. I really really appreciate any input. Thank you in advance.
My tiny841 core also supports the 1634 (same code as Rambo's, only I'm about to fully port it to 1.6.x)
ADC 8-11 will definitely not work, but the others look right. I'm finding that the ADC readings are coming from pins different than the one I'm expecting it to, though. Seems to be off by one.
If you want to take a look at how it's working and post back what actual behavior you're seeing, that'll get it fixed faster. Right now I'm in Cozumel for vacation, and am away from my electronics bench, but if you post up what it's doing, I might be able to get it fixed from here (i think it's going to be either you or me that has to fix this). I have a board to test, but no resistors or anything, so my ability to test the ADC is limited.
On my core (and presumably Rambo's), the ADC's all work except for ADC 8, which seems to show me 265 as a fullscale reading (ie, vcc). They also show up on the correct pins (i forgot that my rows of pins on my breakout board left off the Vcc and Gnd pins at the end.