avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] Creating new parts


From: Rick Mann
Subject: [avrdude-dev] Creating new parts
Date: Sat, 9 Jul 2016 15:30:14 -0700

I'm having trouble finding documentation for most of the properties in a part 
description for avrdude. I'm working with an automotive ATmega16M1 (also comes 
in 32M1, 64M1, 32C1, and 64C1 varieties).

In particular, I don't know how to make sure I have the right values for things 
like flash_instr, eeprom_instr, pagel, all the myriad timing properties, proper 
instruction formatting, etc.

Obviously it makes sense to start with a similar part, but to be honest, I 
don't trust that the ATmega16M1 is similar to anything currently defined. Is it 
similar to an ATmega16? Seems unlikely, given that it seems to be a much 
newer-generation part (e.g., it has debugWire).

Here's what I've got so far (http://pastebin.com/mmPPamgV). Thanks!

$ avrdude -c dragon_isp -p m16m1 -t

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.15s

avrdude: Device signature = 0x1e9484 (probably m16m1)
avrdude> part
>>> part 

AVR Part                      : ATmega16M1
Chip Erase delay              : 9000 us
PAGEL                         : PD7
BS2                           : PE2
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   128    0 no        512    4      0  3600  3600 0xff 
0xff
  flash         65     6   128    0 yes     16384  128    128  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

avrdude> read signature
>>> read signature 
0000  1e 94 84                                          |...             |

avrdude> 


-- 
Rick Mann
address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]