[Solved] avrdude & mega2560
hi all!
i'm trying download firmware utility avrdude.
code:
i'm trying load sketch using stino sublimetext3. utility reports download successful, led not blink. tell me, please, matter.
output:
i'm trying download firmware utility avrdude.
code:
code: [select]
#include <avr/io.h>
#define f_cpu 16000000ul //16mhz
#define led_pin pb5
#include <util/delay.h>
//
int main(void) {
ddrb |= 1<<led_pin;
portb &= ~1<<led_pin;
while(1) {
portb |= 1<<led_pin;
_delay_ms(500);
portb &= ~1<<led_pin;
_delay_ms(500);
}
}
i'm trying load sketch using stino sublimetext3. utility reports download successful, led not blink. tell me, please, matter.
output:
quote
[build] c:/diplom/arduino/avr...
[step 1] check toolchain.
[step 2] find source files.
[step 3] start building.
sketch uses 314 bytes (0.1%) of program storage space. maximum 253,952 bytes.
global variables use 0 bytes (0.0%) of dynamic memory, leaving 8,192 bytes local variables. maximum 8,192 bytes.
[build done.]
[upload/backup]...
"c:/users/voland/appdata/local/arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/bin/avrdude" "-cc:/users/voland/appdata/local/arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf" -v -v -patmega2560 -cwiring -pcom10 -b115200 -d "-uflash:w:c:/users/voland/appdata/local/arduino15/build/avr/avr.hex:i"
avrdude: version 6.3, compiled on jan 17 2017 @ 12:00:53
copyright (c) 2000-2005 brian dean, http://www.bdmicro.com/
copyright (c) 2007-2014 joerg wunsch
system wide configuration file "c:/users/voland/appdata/local/arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf"
using port : com10
using programmer : wiring
overriding baud rate : 115200
avr part : atmega2560
chip erase delay : 9000 us
pagel : pd7
bs2 : pa0
reset disposition : dedicated
retry pulse : sck
serial program mode : yes
parallel program mode : yes
timeout : 200
stabdelay : 100
cmdexedelay : 25
syncloops : 32
bytedelay : 0
pollindex : 3
pollvalue : 0x53
memory detail :
block poll page polled
memory type mode delay size indx paged size size #pages minw maxw readback
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
programmer type : wiring
description : wiring
programmer model: avrisp
hardware version: 15
firmware version master : 2.10
vtarget : 0.0 v
sck period : 0.1 us
avrdude: avr device initialized , ready accept instructions
reading | ################################################## | 100% 0.01s
avrdude: device signature = 0x1e9801 (probably m2560)
avrdude: reading input file "c:/users/voland/appdata/local/arduino15/build/avr/avr.hex"
avrdude: writing flash (314 bytes):
writing | ################################################## | 100% 0.08s
avrdude: 314 bytes of flash written
avrdude done. thank you.
[upload/backup done.]
100% sure got nothing avrdude. try pasting exact same code arduino ide. led blinks now?
if you're using arduino mega, note the onboard led attached pb7, not pb5.
if you're using arduino mega, note the onboard led attached pb7, not pb5.
Arduino Forum > Using Arduino > Microcontrollers > [Solved] avrdude & mega2560
arduino
Comments
Post a Comment