Dallas, TX
Offline
Sr. Member
Karma: 8
Posts: 315
|
 |
« Reply #225 on: November 07, 2012, 11:52:28 am » |
I have a couple of questions:
In the Tools > Board > ... menu in Arduino 1.0.1(OS X) there are several ATtinys listed but in the /Applications/Arduino\ 1.0.1.app/Contents/Resources/Java/hardware/arduino/boards.txt file there doesn't seem to be any reference to the ATtiny. Where is the boards.txt file for the ATtinys? I see the boards.txt file in /arduino-tiny-0100-0015 but that folder is not in my Arduino 1.0.1 application folder.
Question 2: In the boards.txt file from /arduino-tiny-0100-0015, there are references to files like "empty85at1.hex". What is in this file? It is obviously not empty.
|
|
|
|
|
Logged
|
|
|
|
|
Norfolk UK
Offline
Edison Member
Karma: 23
Posts: 1313
|
 |
« Reply #226 on: November 07, 2012, 12:51:26 pm » |
Where is the boards.txt file for the ATtinys? I see the boards.txt file in /arduino-tiny-0100-0015 but that folder is not in my Arduino 1.0.1 application folder. I'm running windows and the boards.txt is in ..\hardware\tiny that also contains a folder for the empty bootloaders and the tiny cores. Question 2: In the boards.txt file from /arduino-tiny-0100-0015, there are references to files like "empty85at1.hex". What is in this file? It is obviously not empty. The files are in effect a dummy bootloaders (they don't work), there purpose is purely to set fuses in the tiny devices that happens when you burn a bootloader from Arduino IDE.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #227 on: November 07, 2012, 01:15:35 pm » |
thanks alot and if i use mega328 do i need to do bootload and stuff ?? because im new to this i dont know anything about that yet i need something easy like tiny so i just have to connect it with arduino pins derectly and setup and upload without making it any difficult thanks alot for help
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, TX
Offline
Sr. Member
Karma: 8
Posts: 315
|
 |
« Reply #228 on: November 07, 2012, 02:00:58 pm » |
Question 2: In the boards.txt file from /arduino-tiny-0100-0015, there are references to files like "empty85at1.hex". What is in this file? It is obviously not empty. The files are in effect a dummy bootloaders (they don't work), there purpose is purely to set fuses in the tiny devices that happens when you burn a bootloader from Arduino IDE. The boards.txt file contains a few lines that contain the values for the fuses. It would not be necessary to have .hex file of several hundred bytes for that. There must be another answer.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 116
Posts: 10130
|
 |
« Reply #229 on: November 07, 2012, 02:06:50 pm » |
The boards.txt file contains a few lines that contain the values for the fuses. It would not be necessary to have .hex file of several hundred bytes for that. There must be another answer. With Arduino 0023 it was necessary to have an image to upload when Burn Bootloader was executed. The "empty" images are all built with this... http://code.google.com/p/arduino-tiny/source/browse/#svn%2Ftrunk%2Fhardware%2Ftiny%2Fcores%2Fempty
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, TX
Offline
Sr. Member
Karma: 8
Posts: 315
|
 |
« Reply #230 on: November 07, 2012, 02:13:38 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Montevideo, Uruguay
Offline
Newbie
Karma: 1
Posts: 30
Arduino rocks
|
 |
« Reply #231 on: November 08, 2012, 12:13:35 am » |
Here is my software serial library for Arduino Tiny: http://www.pablogindel.com/images/SoftSerial.rarInstructions in usage.txt file. Regards, P.G.
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3617
@ssh0le
|
 |
« Reply #232 on: November 08, 2012, 01:14:39 am » |
I have not really dug into it since its late, but what advantages are you seeing over the normal software serial library (I use soft serial on the 85 quite a bit)
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16431
Don't know what I do
|
 |
« Reply #233 on: November 09, 2012, 03:12:54 am » |
A question redarding IDE 1.5.1 Both Arduino 1.0.x and 1.5 have been merged into IDE 1.5.1, that you can use to compile for Arduino UNO/MEGA/Leonardo and the new DUE. I've tried to put the Tiny core inside the /hardware/arduino/avr/cores folder but it seems that it doesn't work. When I open the Tools/Boards menu I don't find the entries for the Tiny MCUs...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 116
Posts: 10130
|
 |
« Reply #234 on: November 09, 2012, 03:20:01 am » |
Both Arduino 1.0.x and 1.5 have been merged into IDE 1.5.1 ... My attitude is, when it shows up here... http://arduino.cc/en/Main/Software ...it's official.  I've tried to put the Tiny core inside the /hardware/arduino/avr/cores folder but it seems that it doesn't work. When I open the Tools/Boards menu I don't find the entries for the Tiny MCUs... That's not good. I'll try to spend some time on it this weekend. Thanks for the heads-up.
|
|
|
|
|
Logged
|
|
|
|
|
Leeds, UK
Offline
God Member
Karma: 35
Posts: 980
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #235 on: November 09, 2012, 07:02:11 am » |
I got it working fine with 1.5.1. I will post where I put everything this evening.
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16431
Don't know what I do
|
 |
« Reply #236 on: November 09, 2012, 08:59:32 am » |
Yeah, but having both the UNO and the DUE, I needed to use the 1.5. When the 1.5.1 has been released, I read that it merged both branches, so I tried to program my Tinys with it. That's not good. I'll try to spend some time on it this weekend. Thanks for the heads-up.
Thanks  I got it working fine with 1.5.1. I will post where I put everything this evening.
Uhm.. good news for me. 
|
|
|
|
|
Logged
|
|
|
|
|
Montevideo, Uruguay
Offline
Newbie
Karma: 1
Posts: 30
Arduino rocks
|
 |
« Reply #237 on: November 09, 2012, 10:46:41 am » |
I have not really dug into it since its late, but what advantages are you seeing over the normal software serial library (I use soft serial on the 85 quite a bit)
Advantages are: - light weight - less CPU usage - you can use at *any* baudrate (i.e. 3600, 5115, etc.). Particularly suitable for low baudrates, since it not implement delay tables. - better start and stop bit detections (i think... standard software serial library tends to hang for a long time when it loses sync and data arrives continuously). - receive only (this may not be an advantage).
|
|
|
|
|
Logged
|
|
|
|
|
Leeds, UK
Offline
God Member
Karma: 35
Posts: 980
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #238 on: November 09, 2012, 11:32:06 am » |
Put the tiny folder in the usual place (under the hardware folder). Then move the contents of the tiny folder into a subfolder named 'avr'. So for example my tiny files are located at: ...\arduino-1.5\hardware\tiny\avr Then, copy the "platform.txt" file from: ...\arduino-1.5\hardware\arduino\avr\platform.txt To: ...\arduino-1.5\hardware\tiny\avr\platform.txt And voila, that should be all it takes. Restart the IDE and away you go. The good news is that my fix for tiny85's and tiny84's to prevent errors when the compiled size is greater than 4kB still works in Arduino 1.5.1: https://github.com/TCWORLD/ATTinyCore/tree/master/PCREL%20Patch%20for%20GCC
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16431
Don't know what I do
|
 |
« Reply #239 on: November 09, 2012, 12:41:13 pm » |
Put the tiny folder in the usual place (under the hardware folder). Then move the contents of the tiny folder into a subfolder named 'avr'. So for example my tiny files are located at:
...\arduino-1.5\hardware\tiny\avr
Then, copy the "platform.txt" file from: ...\arduino-1.5\hardware\arduino\avr\platform.txt To: ...\arduino-1.5\hardware\tiny\avr\platform.txt
And voila, that should be all it takes. Restart the IDE and away you go.
I's thinking that the /avr folder should have some role in this, you confirm that I've seen right.  This evening I'll try your suggestions  I don't have this issue because I use Linux with the last 3.4.1 toolchain from Atmel.
|
|
|
|
|
Logged
|
|
|
|
|
|