89 lines
3.8 KiB
Markdown
89 lines
3.8 KiB
Markdown
# RESSOURCES
|
|
|
|
- guide survie piscine embarquee : https://42chips.notion.site/survive
|
|
- atmega328p : https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061A.pdf
|
|
- Getting started with AVR programming : https://github.com/m3y54m/start-avr/tree/master
|
|
- avrdude doc : https://avrdudes.github.io/avrdude/
|
|
- avrdude 6.3 doc : https://download-mirror.savannah.gnu.org/releases/avrdude/avrdude-doc-6.3.pdf
|
|
- embedded systems : https://en.wikibooks.org/wiki/Embedded_Systems/Atmel_AVR
|
|
- timers for newbies : https://qiriro.com/bme6163/static_files/notes/L3/Newbie%27s%20Guide%20to%20AVR%20Timers.pdf
|
|
- timer and pwm : https://wolles-elektronikkiste.de/en/timer-and-pwm-part-2-16-bit-timer1
|
|
|
|
## m00ex00
|
|
|
|
avrdude output without flashing :
|
|
|
|
```
|
|
avrdude -p m328p -c arduino -b 115200 -P /dev/ttyUSB0 -v
|
|
|
|
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 "/etc/avrdude.conf"
|
|
User configuration file is "/home/hulamy/.avrduderc"
|
|
User configuration file does not exist or is not a regular file, skipping
|
|
|
|
Using Port : /dev/ttyUSB0
|
|
Using Programmer : arduino
|
|
Overriding Baud Rate : 115200
|
|
AVR Part : ATmega328P
|
|
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 : Arduino
|
|
Description : Arduino
|
|
Hardware Version: 3
|
|
Firmware Version: 4.4
|
|
Vtarget : 0.3 V
|
|
Varef : 0.3 V
|
|
Oscillator : 28.800 kHz
|
|
SCK period : 3.3 us
|
|
|
|
avrdude: AVR device initialized and ready to accept instructions
|
|
|
|
Reading | ################################################## | 100% 0.00s
|
|
|
|
avrdude: Device signature = 0x1e950f (probably m328p)
|
|
avrdude: safemode: lfuse reads as 0
|
|
avrdude: safemode: hfuse reads as 0
|
|
avrdude: safemode: efuse reads as 0
|
|
|
|
avrdude: safemode: lfuse reads as 0
|
|
avrdude: safemode: hfuse reads as 0
|
|
avrdude: safemode: efuse reads as 0
|
|
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
|
|
|
|
avrdude done. Thank you.
|
|
```
|
|
|
|
## makefile on mac
|
|
|
|
- `brew tap osx-cross/avr`
|
|
- `brew install avr-gcc avrdude`
|