Burn-O-Mat menu fix for Mac

On the Mac, the 328p option doesn't appear in the drop down menu. This is because there is no fuse description for the 328p in the config file. But since it's the same as a 168, it's easy to add:
1- Control-click on the Burn-O-Mat application
2- In the pop=up menu, choose "Show package content", just below "Open"
3- Navigate to AVR8_Burn_O_Mat_Config.xml
4- Open that file with TextEdit and copy and paste this fuse description section after the 168 section (basically a copy of the 168 section, but with the first line edited to change the name to 328p):

<AVR name="m328p" caption="ATmega328p">
      <Fuse name="UNUSED_E7" bit="7" fuseByte="efuse" default="1" desc="unused" mode="expert"/>
      <Fuse name="UNUSED_E6" bit="6" fuseByte="efuse" default="1" desc="unused" mode="expert"/>
      <Fuse name="UNUSED_E5" bit="5" fuseByte="efuse" default="1" desc="unused" mode="expert"/>
      <Fuse name="UNUSED_E4" bit="4" fuseByte="efuse" default="1" desc="unused" mode="expert"/>
      <Fuse name="UNUSED_E3" bit="3" fuseByte="efuse" default="1" desc="unused" mode="expert"/>
      <Fuse name="BOOTSZ1" bit="2" fuseByte="efuse" default="0" desc="Select boot size"/>
      <Fuse name="BOOTSZ0" bit="1" fuseByte="efuse" default="0" desc="Select boot size"/>
      <Fuse name="BOOTRST" bit="0" fuseByte="efuse" default="1" desc="Select reset vector"/>

      <Fuse name="RSTDISBL" bit="7" fuseByte="hfuse" default="1" desc="Select if PC6 is I/O pin or RESET pin" mode="expert"/>
      <Fuse name="DWEN" bit="6" fuseByte="hfuse" default="1" desc="debugWIRE enable" mode="expert"/>
      <Fuse name="SPIEN" bit="5" fuseByte="hfuse" default="0" desc="Enable Serial Program and Data Downloading" mode="expert"/>
      <Fuse name="WDTON" bit="4" fuseByte="hfuse" default="1" desc="Watchdog timer always on"/>
      <Fuse name="EESAVE" bit="3" fuseByte="hfuse" default="1" desc="EEPROM memory is preserved through the Chip Erase"/>
      <Fuse name="BODLEVEL2" bit="2" fuseByte="hfuse" default="1" desc="Brown out detector trigger level"/>
      <Fuse name="BODLEVEL1" bit="1" fuseByte="hfuse" default="1" desc="Brown out detector trigger level"/>
      <Fuse name="BODLEVEL0" bit="0" fuseByte="hfuse" default="1" desc="Brown out detector trigger level"/>

      <Fuse name="CKDIV8" bit="7" fuseByte="lfuse" default="0" desc="Devide clock by 8"/>
      <Fuse name="CKOUT" bit="6" fuseByte="lfuse" default="1" desc="Clock output"/>
      <Fuse name="SUT1" bit="5" fuseByte="lfuse" default="1" desc="Select start-up time"/>
      <Fuse name="SUT0" bit="4" fuseByte="lfuse" default="0" desc="Select start-up time"/>
      <Fuse name="CKSEL3" bit="3" fuseByte="lfuse" default="0" desc="Select Clock source"/>
      <Fuse name="CKSEL2" bit="2" fuseByte="lfuse" default="0" desc="Select Clock source"/>
      <Fuse name="CKSEL1" bit="1" fuseByte="lfuse" default="1" desc="Select Clock source"/>
      <Fuse name="CKSEL0" bit="0" fuseByte="lfuse" default="0" desc="Select Clock source"/>
      
      <BrownOutDetection>
        <Fuse name="BODLEVEL2"/>
        <Fuse name="BODLEVEL1"/>
        <Fuse name="BODLEVEL0"/>
        <Setting caption="disabled"           Fuse1="1" Fuse2="1" Fuse3="1"/>
        <Setting caption="1.8V (1.7V - 2.0V)" Fuse1="1" Fuse2="1" Fuse3="0"/>
        <Setting caption="2.7V (2.5V - 2.9V)" Fuse1="1" Fuse2="0" Fuse3="1"/>
        <Setting caption="4.3V (4.1V - 4.5V)" Fuse1="1" Fuse2="0" Fuse3="0"/>
      </BrownOutDetection>

      <OscillatorOptions Type="ATmega48" />

    </AVR>

5- relaunch Burn-O-Mat

Then magically the 328p option now appears in the menu.

Might be simpler to use the command line or do it graphically from Eclipse rather than use Burn-O-Mat for the Mac.
Comments