Italy
Offline
Brattain Member
Karma: 219
Posts: 16547
Don't know what I do
|
 |
« Reply #240 on: November 09, 2012, 05:02:58 pm » |
@Tom Carpenter: your solution worked fine for me, too. Thnak you  @Coding Badly: if Tom has found the right place where to put the folders, is there any other issue between the actual version of the Tiny core (0100-0015) and the Arduino IDE 1.5.1?
|
|
|
|
|
Logged
|
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16547
Don't know what I do
|
 |
« Reply #241 on: November 10, 2012, 04:13:44 am » |
@Tom Carpenter: your solution worked fine for me, too. Thnak you  OK, I was able to compile but I was NOT able to upload the sketch on a Tiny84. There's something else to change...
|
|
|
|
|
Logged
|
|
|
|
|
Leeds, UK
Offline
God Member
Karma: 35
Posts: 989
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #242 on: November 10, 2012, 06:20:19 am » |
Oh right yeah forgot that. You have to now specify the upload tool in the boards.txt file.
To do that you need to add these lines for each entry:
attiny84at1.bootloader.tool=avrdude attiny84at1.upload.tool=avrdude
Also, if you haven't already got one, you may have to copy the programmers.txt file from the arduino folder as well. I am not sure that this is needed though as it results in duplicate programmers in the IDE programmer window.
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16547
Don't know what I do
|
 |
« Reply #243 on: November 10, 2012, 06:37:48 am » |
Uhmm... seems to me that it's easier for now to keep both 1.0.2 and 1.5.1 versions of the IDE 
|
|
|
|
|
Logged
|
|
|
|
|
Leeds, UK
Offline
God Member
Karma: 35
Posts: 989
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #244 on: November 10, 2012, 06:49:57 am » |
To make things easier, I have attached my boards.txt file.
This one also subdivides the entries into the new board/processor menus.
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16547
Don't know what I do
|
 |
« Reply #245 on: November 10, 2012, 08:31:15 am » |
Thanks, Tom. But the problem isn't the entries that have to be put into boards.txt but the double entries that you said me they appear in the menus.
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, TX
Offline
Sr. Member
Karma: 10
Posts: 315
|
 |
« Reply #246 on: November 10, 2012, 10:34:38 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.
Okay, I finally figured this out. Under OS X, your Arduino sketches are in the folder: ~username/Documents/Arduino. On my system, for whatever reason, there was a folder: ~username/Documents/Arduino/hardware/attiny that had a boards.txt file that had the ATtiny processor options. Arduino 1.0.1 was reading that file and including it in its Tools > Board menu. Deleting the folder removed the ATtiny entries. So, Arduino IDE for OS X combines the entries in boards.txt files it finds, in both its application folder and its sketch folder, into one Tool > Board menu.
|
|
|
|
« Last Edit: November 10, 2012, 12:37:44 pm by PapaG »
|
Logged
|
|
|
|
|
Leeds, UK
Offline
God Member
Karma: 35
Posts: 989
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #247 on: November 10, 2012, 11:43:37 am » |
Thanks, Tom. But the problem isn't the entries that have to be put into boards.txt but the double entries that you said me they appear in the menus.
That was just duplicate programmers, not duplicate entries for boards. However if you delete the 'programmers.txt' file in the tiny/avr/ directory, it still works and the duplicate entries go away.
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16547
Don't know what I do
|
 |
« Reply #248 on: November 11, 2012, 05:29:40 am » |
Thanks, Tom. But the problem isn't the entries that have to be put into boards.txt but the double entries that you said me they appear in the menus.
That was just duplicate programmers, not duplicate entries for boards. However if you delete the 'programmers.txt' file in the tiny/avr/ directory, it still works and the duplicate entries go away. Thanks for your tests, during these days I didn't work on it because I had to finish another thing. I'll try as soon as possible.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 120
Posts: 10201
|
 |
« Reply #249 on: November 13, 2012, 08:54:11 pm » |
"Launch4j An error occurred while starting the application." ... argh! I'll work on 1.5 support when 1.5 runs on this computer.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 120
Posts: 10201
|
 |
« Reply #250 on: November 16, 2012, 12:25:44 am » |
Then, copy the "platform.txt" file from: ...\arduino-1.5\hardware\arduino\avr\platform.txt To: ...\arduino-1.5\hardware\tiny\avr\platform.txt Ugh. That's a maintenance nightmare. If the Arduino folks change the build process (e.g. add new options to go with a new compiler) the Tiny Core will still use the "old" process. Unfortunately, the IDE crashes if that file is not present. Does anyone know of a way to reference the platform.txt file in the Arduino IDE directory?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 120
Posts: 10201
|
 |
« Reply #251 on: November 16, 2012, 12:28:05 am » |
Never mind. Apparently an empty platform.txt does the trick.
|
|
|
|
« Last Edit: November 16, 2012, 01:02:54 am by Coding Badly »
|
Logged
|
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16547
Don't know what I do
|
 |
« Reply #252 on: November 16, 2012, 12:42:30 am » |
Never mind. Apparently an empty platform.txt does the trick.
Good news.  Coming back to the IDE 1.5, I noticed that the Boards menu has the same bug of the Sketchs menu: if you have a lot of entries in it, simpli it doesn't scroll up and down, showing only the first entries. I have a loto of boards because I use the Tiny core and a mod for the IDE to be able to work with 644/1284 MCUs. Plus the boards that come originally. So, I have a lot of entries that goes over the bottom border of the screen. Is only me (Linux box) or someone else has the same problem? In this condition, I must use 2 different IDEs (IDE 1.5 for DUE and IDE 1.0.2 for UNO/Leonardo/Tinies/644-1284 etc)... 
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 120
Posts: 10201
|
 |
« Reply #253 on: November 16, 2012, 01:02:00 am » |
Never mind. Apparently an empty platform.txt does the trick. Good news.  Actually, it's not. I was too hasty to post. It does not work.  So, back to my earlier question... Does anyone know of a way to reference the platform.txt file in the Arduino IDE directory?Coming back to the IDE 1.5, I noticed that the Boards menu has the same bug of the Sketchs menu: if you have a lot of entries in it, simpli it doesn't scroll up and down, showing only the first entries. That's unfortunate. I have a loto of boards because I use the Tiny core... For the Tiny Core, I'll be breaking the menu in two. The first level will be the processor, the second level will be Processor Speed. Unfortunately, there's no way to further divide the menu or I would. That cuts the "top" entries to just three. It would be nice if there was an option to "disable" an entry (leave it in boards.txt but not have it included in the menu). and a mod for the IDE to be able to work with 644/1284 MCUs. I suspect that too is fairly easy to break apart. Plus the boards that come originally. Bear in mind that you can edit boards.txt and remove unused entries (it's the first thing I do with the boards.txt that comes with the Arduino IDE). So, I have a lot of entries that goes over the bottom border of the screen. Is only me (Linux box) or someone else has the same problem? I do.
|
|
|
|
|
Logged
|
|
|
|
|
Italy
Offline
Brattain Member
Karma: 219
Posts: 16547
Don't know what I do
|
 |
« Reply #254 on: November 16, 2012, 01:12:49 am » |
Does anyone know of a way to reference the platform.txt file in the Arduino IDE directory?
I didn't have time to make tests because in this days I worked at my leOS2 scheduler so I don't know if there's a method or a trick to do that. I cannot help you, sorry. Bear in mind that you can edit boards.txt and remove unused entries (it's the first thing I do with the boards.txt that comes with the Arduino IDE).
I know. It's the first thing that I do too. I cut all the entries not used like old boards or useless clocks, both from Arduino boards.txt and from Tiny boards.txt. So, I have a lot of entries that goes over the bottom border of the screen. Is only me (Linux box) or someone else has the same problem? I do. Uhm... it's time to notify the problem... 
|
|
|
|
|
Logged
|
|
|
|
|
|