carlosefr / atmega Goto Github PK
View Code? Open in Web Editor NEWBare ATmega 8/168/328 microcontrollers with the Arduino IDE.
License: MIT License
Bare ATmega 8/168/328 microcontrollers with the Arduino IDE.
License: MIT License
I am using an ATMega168A-PU with a 16 MHz external clock.
I was able to upload the bootloader using the ATMega168/168p board.
Do I need to manually modify the fuse bits in boards.txt to configure my microcontroller to use a 16 MHz crystal? Thanks!
Hi
I want to use your code for a stand alone atmeg328p at 8 Mhz intern with Arduino 1.8.8
I included your json files.
A can use my code on an Arduino Version 1.0.5 without problem, I can also use a Arduino Mini oder Nano. All works, but
the code is round about 2kb bigger, or the available flash is only 30700 instead of 32768 when I use this
settings here.
The problem is, all works fine, compiling and uploading, but the chip is dead. It ist just not running.
Not even a simple blink program.
What can go wrong by usings your code?
There are just 2 options
Chip : atmega328p
Clock: 8mhz intern.
Fuses are ok. It works if I use other boards.
I realy would like to use your code, because it gives me 2 kb more flash.
Would be great if you have any idea.
Thank you.
Greatings klaus
avrdude: erasing chip
avrdude: reading input file "C:\development\electronics\Arduino\hardware\breadboard\avr/bootloaders/{bootloader.file}"
avrdude: can't open input file C:\development\electronics\Arduino\hardware\breadboard\avr/bootloaders/{bootloader.file}: No such file or directory
avrdude: read from file 'C:\development\electronics\Arduino\hardware\breadboard\avr/bootloaders/{bootloader.file}' failed
atmega328.menu.clock.internal8.bootloader.high_fuses=0xdb
should be
atmega328.menu.clock.internal8.bootloader.high_fuses=0xda
Hello and thank you for this useful library.
Is there a way to prevent the EEPROM from being erased after each upload ?
I would like to use the updated version of this board definition with the lower external clock speeds (FWIW to be compatible with 3.3V VCC), which I see already exists in master.
In the Arduino IDE 1.6.7 I have not been able to manually install the board definitions from the master .zip file. No matter where I put the files the never seem to appear in the Tools->Board menu.
However the latest IDE still correctly interprets your json definition and updates the packages correcty, so it would be greatly appreciated if you could create a new release and update the json definition accordingly.
To match the configuration of other chips (activating brown-out detection and not saving EEPROM on chip erase), the ATmega8 fuses should probably be changed to these:
atmega8.menu.clock.internal1=1 MHz (internal)
atmega8.menu.clock.internal1.bootloader.low_fuses=0xa1
atmega8.menu.clock.internal1.bootloader.high_fuses=0xcc
atmega8.menu.clock.internal1.build.f_cpu=1000000L
atmega8.menu.clock.internal8=8 MHz (internal)
atmega8.menu.clock.internal8.bootloader.low_fuses=0xa4
atmega8.menu.clock.internal8.bootloader.high_fuses=0xcc
atmega8.menu.clock.internal8.build.f_cpu=8000000L
atmega8.menu.clock.external16=16 MHz (external)
atmega8.menu.clock.external16.bootloader.low_fuses=0xbf
atmega8.menu.clock.external16.bootloader.high_fuses=0xcc
atmega8.menu.clock.external16.build.f_cpu=16000000L
Testing requires access to an ATmega8 chip, which I don't have available right now.
Hi Carlos,
Any chance that you could add the "PB" variant to your library?
Regards, Martin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.