Tegnap hozzájutottam Robitól a duino panelemhez! Super jószág, az biztos!
Próbálgattam egy-két dolgot és töröltem a bootloadert. Van egy stk500 -am, szintén Robitól, és most szeretném visszatölteni a bootloadert, hogy kipróbáljam a duino-t a arduino 0012 vel.
A következő lépéseket követtem :
Update !
Lemaradt, hogy AVR Studio val égetem a bootloadert!
Szuperül lefutott a dolog.*ATmega168 Fuse Settings*
Once set the fuses should read 0xF8, 0xDF and 0xFF, which is equivalent to:
* Boot Flash section size = 1024 words Boot start address = $1C00;
[BOOTSZ=00]; default value
* Boot Reset Vector Enabled (default address = $0000); [BOOTRST=0]
* Brown-out detection disabled; [BODLEVEL=111]
* Ext. Crystal Osc.; Frequency 8.0 - MHz; Startup time PWRDWN/RESET:
16K CK/14 CK + 64ms; [CKSEL=1111 SUT=0]
10. Click the "LockBits" panel of the software.
*ATmega8 and ATmega168 LockBit Settings*
Once set the lockbits should read 0xFF for ATmega8 and 0xCF for ATmega168, which is equivalent to:
* Mode1: No memory lock features enabled
* Application Protection Mode1: No lock on SPM and LPM in
Application Section
* Boot Loader Protection Mode3: LPM and SPM prohibited in Boot
Loader Section
11. With the above settings entered, AVR PROG can automatically burn chips. On the Auto panel, select the following:
* Erase Device
* Program FLASH
* Verify FLASH
* Program Fuses
* Verify Fuses
* Program lock bits
* Verify lock bits
Hit "Start" to program. It should be automatic from there. To program another, just connect it to the programmer, and hit 'Auto.'
Majd a duino 0012 vel próbáltam ezt elküldeni a flashbe:
Kód: Egész kijelölése
int ledPin = 13; // LED connected to digital pin 13
void setup() // run once, when the sketch starts
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop() // run over and over again
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // waits for a second
}Robival már konzultáltam, eddig semmi bíztató. Valakinek valami ötlete?Binary sketch size: 1124 bytes (of a 14336 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
Előre is kössz!
