+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Full Member level 6
    Points: 2,926, Level: 12
    Achievements:
    7 years registered

    Join Date
    Jan 2010
    Location
    USA
    Posts
    369
    Helped
    0 / 0
    Points
    2,926
    Level
    12

    upgrading firmware in ATMEGA1284

    how can i upgrade the firmware on atmega using a pc ?
    what are my various options other than using an AVR boot loader device like i am using currently AVR-MKII in combination with atmel studio.
    I want to be able to just use the pc and some software to update the firmware.

    •   AltAdvertisment

        
       

  2. #2
    Full Member level 3
    Points: 1,572, Level: 9

    Join Date
    Jul 2014
    Posts
    169
    Helped
    31 / 31
    Points
    1,572
    Level
    9

    Re: upgrading firmware in ATMEGA1284

    If an ATmega1284p version of the "optiboot" bootloader is installed on the ATmega1284p, firmware can be loaded through a USB, or RS232 to TTL converter with "avrdude" software.



    •   AltAdvertisment

        
       

  3. #3
    Full Member level 6
    Points: 2,926, Level: 12
    Achievements:
    7 years registered

    Join Date
    Jan 2010
    Location
    USA
    Posts
    369
    Helped
    0 / 0
    Points
    2,926
    Level
    12

    Re: upgrading firmware in ATMEGA1284

    how can we add usb to atmega1284 ? through FTDI chip?
    can the firmware be loaded via the SPI bus?



    •   AltAdvertisment

        
       

  4. #4
    Full Member level 3
    Points: 1,572, Level: 9

    Join Date
    Jul 2014
    Posts
    169
    Helped
    31 / 31
    Points
    1,572
    Level
    9

    Re: upgrading firmware in ATMEGA1284

    I use either a USB to TTL converter cable with a PL2303HX chip built into it ( available on ebay ), or a converter using the ATmega16u2, built with the design from the schematic of an arduino, and programmed with arduino DFU firmware.

    The converter allows programming the 1284p through the serial UART on the chip, using the "optiboot" bootloader burned onto the ATmega1284p.
    The bootloader firmware was downloaded from the "maniacbug 1284p project" on the web.
    The bootloader would be loaded on the chip with the AVR-MKII programmer.
    Once loaded, a bootloader provides an alternative to using the AVR-MKII SPI programmer.



  5. #5
    Full Member level 6
    Points: 2,926, Level: 12
    Achievements:
    7 years registered

    Join Date
    Jan 2010
    Location
    USA
    Posts
    369
    Helped
    0 / 0
    Points
    2,926
    Level
    12

    Re: upgrading firmware in ATMEGA1284

    I will go with PL2303HX chip . so one end will connect to the atmega and other to the pc , now on PC what kind of software I would need to upload the bootloader ? what would I need on the AVR end to trigger the load?



    •   AltAdvertisment

        
       

  6. #6
    Full Member level 3
    Points: 1,572, Level: 9

    Join Date
    Jul 2014
    Posts
    169
    Helped
    31 / 31
    Points
    1,572
    Level
    9

    Re: upgrading firmware in ATMEGA1284

    The bootloader .hex file would be uploaded using Atmel Studio and the AVR-MKII programmer.

    What version of Windows is being used?
    A limitation of the PL2303HX chip is that drivers don't seem to be available for Windows 8.

    What is the clock speed of the ATmega1284p ?
    The bootloader from the "maniacbug" project is for 16 MHz.

    What package is the ATmega1284p ?
    The 40 pin PDIP package can have problems with interference on UART 0 from the adjacent oscillator pins. Make sure UART 0 serial communication is working OK.



--[[ ]]--