saniljhaveri / avr-project-ide

Automatically exported from code.google.com/p/avr-project-ide
0 stars 0 forks source link

Attiny support #75

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What do you want?

To expand AVRprojectIDE to include modified arduino cores allowing the use of 
arduino to program ATTinyxxxx chips. 

So far I sort of have this working... By changing templates.xml I have set up 
the project for the specific chips I am using. Nothing special here, its just a 
case of copying your current templates and changing to for example the 
attiny2313. e.g.

    <template name="Arduino AtTiny2313 8MHz">
    <Device>attiny2313</Device>
    <ClockFreq>8000000</ClockFreq>
    <BurnPart>attiny85</BurnPart>
    <BurnFuseBox>-U lfuse:w:0xce:m -U hfuse:w:0xdf:m -U fuse:w:0xff:m</BurnFuseBox>
    <BurnProgrammer>stk500</BurnProgrammer>
    <Inherit>Maximum Optimization</Inherit>
    </template>

I then copied the modified core to a new folder and used your 'override arduino 
core' option in project settings to point the IDE at the modified core. I 
managed to get Attiny2313 and attiny84 working. It appears to compile fine if I 
don't try to include any libraries, but wont compile if i do, it keeps looking 
for wire.h, despite it being in the libraries folder of the IDE. Maybe a bug?

Maybe use the core from http://www.avr-developers.com/corefiles/index.html to 
allow a multitude of new chips. I couldn't get any cores that support multiple 
chips to work, but I haven't really tried very hard.  

Required changes:
-New Templates for Attiny13, Attiny45/85, Attiny84, Attiny2313 (Current 
modified arduino cores) I have an XML with some of them, I'll finish it and 
post in the forum.
-Some way to set the modified core path  in the templates.xml. May already 
exist and I don't know?

Why do you want it?
To allow expansion to further cores of arduino and allow Attiny chips. 

How do you suggest it's added?

Will it cause any incompatibility problems with previous versions?

Original issue reported on code.google.com by just_har...@hotmail.com on 12 Jan 2011 at 8:06

GoogleCodeExporter commented 8 years ago
the template file entries are not meant for chips, they are meant for dev-kits 
and boards that require a combination of quick settings

if you simply want to use another chip, use project configuration instead

you can tell a template to automatically use a modified core path using the 
<ArduinoCoreOverride></ArduinoCoreOverride> tag

I can't help with the "wire.h" thing unless you tell me what library, the list 
of errors, and the build log

Original comment by frank.zhao.main@gmail.com on 14 Jan 2011 at 4:38

GoogleCodeExporter commented 8 years ago
I will look into replicating the wire.h library problem when i can. Can you 
document and post all the tags available to us in the template file? Whilst i 
understand the useage for dev platforms i find it easy to create 2 or three 
templates for the most common chips/setups i use. Just saves me a bit of time! 

Original comment by just_har...@hotmail.com on 14 Jan 2011 at 4:25

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/avr-project-ide/wiki/TemplatesHelp has been updated 
with a list of supported tags

Original comment by frank.zhao.main@gmail.com on 14 Jan 2011 at 4:44

GoogleCodeExporter commented 8 years ago
Hi, I've had a look at this core ( http://www.avr-developers.com ) and it 
appears to compile properly with most of the chips I've tried. I haven't had a 
chance to burn any code to an MCU but I will do that next week and let you know 
how it goes. I think the core is based on arduino 20. 

Original comment by just_har...@hotmail.com on 10 Feb 2011 at 3:04