Comments (4)
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -P com12 -b 19200 -c avrisp -p m328pb -e -v -C avrdude.conf -U flash:w:optiboot_m328pb.hex
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "avrdude.conf"
Using Port : com12
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATmega328PB
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
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 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 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 : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e9516 (probably m328pb)
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as DA
avrdude: safemode: efuse reads as 5
avrdude: erasing chip
avrdude: reading input file "optiboot_m328pb.hex"
avrdude: input file optiboot_m328pb.hex auto detected as raw binary
avrdude: writing flash (32768 bytes):
Writing | ################################################## | 100% 36.12s
avrdude: 32768 bytes of flash written
avrdude: verifying flash memory against optiboot_m328pb.hex:
avrdude: load data flash data from input file optiboot_m328pb.hex:
avrdude: input file optiboot_m328pb.hex auto detected as raw binary
avrdude: input file optiboot_m328pb.hex contains 32768 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 19.88s
avrdude: verifying ...
avrdude: 32768 bytes of flash verified
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as DA
avrdude: safemode: efuse reads as 5
avrdude: safemode: Fuses OK (E:05, H:DA, L:FF)
avrdude done. Thank you.
from atmega328pb-testing.
You also have to write the fuse bits.
Extended: 0xFD
High: 0xD6
Low: 0xFF
Lockbits: 0xCF (LPM and SPM prohibited in Boot Section)
avrdude -c avrisp -p atmega328p -e -U flash:w:optiboot_m328p.hex:i -U lfuse:w:0xFF:m -U hfuse:w:0xD6:m -U efuse:w:0xFD:m -U lock:w:0xCF:m
from atmega328pb-testing.
Thanks, it works now:) Do you know how to send 16bit PWM to other pins, except for pin 9 and 10?
from atmega328pb-testing.
Have a look in the datasheet for OCxx pins. These are output compare pins from the timers and can generate PWM signals.
from atmega328pb-testing.
Related Issues (20)
- Port Manipulation Problem HOT 1
- Cannot compile HOT 4
- High power consumption in deep sleep HOT 2
- SPCR, SPDR, and SPSR are not declared in the scope HOT 1
- compile error #include <twi_def.h> HOT 1
- Upload bootloader fail HOT 3
- ADC6 always reading 1023 HOT 1
- PlatformIO support HOT 2
- Explanation of Wire1 library HOT 1
- Precompiler issue with Wire.h HOT 2
- Bootloader and Sketch Upload with ISP works, Serial doesn't HOT 3
- Dead chips HOT 3
- Atmega328PB and RFM95W HOT 3
- USART1 instead of USART0 HOT 1
- Device signature error while uploading bootloader HOT 3
- m328pb flash programming using UART. HOT 1
- Problems with simultaneous master/slave HOT 3
- __AVR_HAVE_PRR0_PRTWI0 not correctly defined HOT 1
- SPI1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atmega328pb-testing.