-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default avrdude.conf is a basketcase - don't use it #8
Comments
So is creating a new .conf file as simple as copying the default one and adding something similar to |
Yes - the hard part is getting the entry to add correct! What I'm going to do is to include an avrdude.conf file based on the one in my 841 repo (only with entries for the x4, x5, x61, x7, x8, x313 series chips, ofc - you need the huge section at the top too), and modify platform.txt to tell avrdude to use that avrdude.conf instead of the other one. See what I did in the 841 core for example. I've got entries for everything except the x7 series ready. (note - 87 and 167 entries can be easily made from eachother, it's the rest of it that's tricky) |
So apart from searching for someone else's attempt at a .conf file with the x7 series added to it, is there anything I can lend to the creation of one? I have the 167 operational and talking to AVR Studio. Do you need memory addresses or anything like in that last link? |
I think the information I need is in the datasheet, but there's always a lot of trial and error once the basics are set up to get everything right to make it upload. You can help by testing it once I've made the first attempt. If you can do that, which chip will you be using (so I know which one to start with - making 167 or 87 from one another is easy, once one of them works) |
Oooh! I found one! Does adding these to your avrdude.conf work?! |
The default one? I'm not adding it to a new one am I? |
Add the content of that avrdude_conf.txt to the bottom of your default avrdude.conf. (don't use avrdude.conf from this repo, it's not ready yet) |
Currently getting a: avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03 Trying to debug and figure out where it is coming from, and get a proper upload atm. |
Is that when bootloading or when programming? Either way, enable verbose logging and post the results here, sometimes they're useful. |
Arduino: 1.6.0 (Windows Vista), Board: "ATtiny x7 series, ATtiny167, 8 mhz (internal), B.O.D. Disabled" Build options changed, rebuilding all Sketch uses 370 bytes (2%) of program storage space. Maximum is 16,384 bytes. Global variables use 9 bytes (1%) of dynamic memory, leaving 503 bytes for local variables. Maximum is 512 bytes. C:\Program Files\Arduino/hardware/tools/avr/bin/avrdude -CC:\Program Files\Arduino/hardware/tools/avr/etc/avrdude.conf -v -pattiny167 -cstk500v1 -PCOM1 -Uflash:w:C:\Users\roba\AppData\Local\Temp\build4335163831788404290.tmp/sketch_jul20a.cpp.hex:i avrdude: Version 6.0.1, compiled on Apr 3 2014 at 23:12:16
avrdude: stk500_recv(): programmer is not responding avrdude done. Thank you. Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions. This report would have more information with I get the same message when trying to upload or boot loading. I have successfully programmed through the STK500 board using AVR Studio though. |
What isp programmer are you using? And you've done burn bootloader successfully? |
STK500 Board: http://www.atmel.com/tools/STK500.aspx Haven't boot loaded successfully |
Would doing a teamviewer, and controlling our desktop help at all? I can post pictures of the physical set up as well. |
See, I'm not at all familiar with the STK500 programmer, and I don't hear about it being used much on the forums, so I'm not familiar with how to debug it. Most people use ArduinoAsISP, USBAsp, or AVRISP II. Can you program well-behaved parts (like a '328p or something) with the STK500 board through the IDE? If not, that implies a general problem with STK500 board and the IDE. |
I haven't tried programming other boards with the STK500 yet apart from the ATtiny. I have an STK500 and an Arduino Uno available. |
Followed something like this http://www.instructables.com/id/Turn-Your-Arduino-Into-an-ISP/ Mapping the pins to the 6 pin header on my board. Then used the Arduino Uno as an ISP. Still getting. Arduino: 1.6.0 (Windows Vista), Board: "ATtiny x7 series, ATtiny167, 8 mhz (internal), B.O.D. Disabled" Sketch uses 370 bytes (2%) of program storage space. Maximum is 16,384 bytes. Global variables use 9 bytes (1%) of dynamic memory, leaving 503 bytes for local variables. Maximum is 512 bytes. C:\Program Files\Arduino/hardware/tools/avr/bin/avrdude -CC:\Program Files\Arduino/hardware/tools/avr/etc/avrdude.conf -v -pattiny167 -cstk500v1 -PCOM20 -b19200 -Uflash:w:C:\Users\roba\AppData\Local\Temp\build4335163831788404290.tmp/sketch_jul20a.cpp.hex:i avrdude: Version 6.0.1, compiled on Apr 3 2014 at 23:12:16
avrdude: stk500_recv(): programmer is not responding Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions. avrdude done. Thank you. This report would have more information with |
Wait. I may have just gotten it to work. I had not flashed the Uno with the proper ISP program. I just tried uploading a blank sketch to the ITTiny167 and nothing seems to have failed. After lunch I will test a sketch with code to see if it really is working. |
Did a basic blink sketch. digitalWrite() works. |
That's good to hear! So it sounds like that avrdude.conf works, and the STK500 board does not work with the IDE, or some vital piece of information specific to that programmer is missing from the avrdude.conf entries (I don't know enough about the board to even say if that's plausible). I wouldn't be surprised if the 1.6.x IDE changes may have busted some of the less common programmers, without it being detected; a few people have reported (newish) issues with - I've noticed that most of the people with fancy programmer boards often are the same people who shun IDE upgrades, while the people who use the latest IDE versions buy the $5 and under programmers (ie, nano/pro mini running ArduinoAsISP, or USBAsp). |
Yeah. And from my findings there could be any number of things that is causing the STK500 not to communicate properly. Regardless I have been playing with the Arduino IDE functions. I have digitalRead() and digitalWrite() working. I can't seem to get SPI to work so far. I am not sure if it is hardware or software/code right now. |
I have a bad feeling the pin mapping is screwy. This is going to take a while to test though. |
It's supposed to be :
I'm not sure I understand the decisions they made there.... |
=( Wait... Dx are the pins mapped to the code? WHY!? I sat at my desk for 4 hours trying to figure out why PA7/Pin 10 wasn't producing a signal. ARGH. Ok I will try this out and see if the SPI works this time. |
SPI.h seems to function. I can produce a clock signal, chip select, MOSI etc. on my oscilloscope, but I am having a hard time driving peripheral devices. The issue is likely hardware, and I would say SPI communication works on the ATTiny167. If I need to change how SPI.h works though, would I edit the one in There is likely a case where transfering data to a MAX6954 doesn't work properly with the default SPI library. |
Tested SPI.h with an FRAM chip. It communicated properly. Working functions: |
Thanks. Fyi - I just fixed another issue in the conf entry. You'd have found out when you got past 8k ;) |
Ah, well good catch then. |
Take a look at this and let me know what you think about it. #12 |
Arduino: 1.6.1 (Windows 7), Board: "ATtiny x7 series, ATtiny167, 8 mhz (internal), B.O.D. Disabled" In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\IPAddress.h:24:0,
C:\Program Files (x86)\Arduino\hardware\ATTinyCore-master\avr\cores\tiny/Printable.h:23:17: fatal error: new.h: No such file or directory #include < new.h > |
Yup, new.h and new.cpp are missing. My betting is some idiot at some point before I forked it thought it was an empty file left over from making a 'new' file, and deleted it, saw that basic sketches compiled, and patted themselves on the back for getting rid of unneeded files. New issue created: |
Tiny48 missing.
Tinyx7 missing.
Lock bits are fucked up on the Tiny88
#7
per:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
we can specify a different location and include our own avrdude.conf that works correctly in platform.txt. This needs to be done.
The text was updated successfully, but these errors were encountered: