Menu

Flashing Atmel328P on arduino uno

2014-05-05
2014-05-14
  • Guy Fortabat

    Guy Fortabat - 2014-05-05

    Hi,

    I am a newbee on AVR components, but I did somme encouraging things.
    I flashed correctly 2 arduino nano V3 stamp boards with:
    L: FF H:DA E:FF

    Using Termite terminal was fine.
    Now I have under my hands a Arduino uno, so with 328P microcontroller.
    i flashed it with following fuses:
    L: FF H:DA E:FF

    it ended with the following in the term window, and after a reset on the uno board:

    "[11][00]EBM [04]lashForth Atmega 5.0

    [11]"

    So "F" is missing and I can't enter any command.

    I checked in AVRDUDESS (GUI Avrdude) with "set fuses", and having selected 328P, they say:
    L:62 H:D9 E:FF

    So I did.

    And it is still the same.

    The only strange message was:

    avrdude.exe: set SCK frequency to 1500000 Hz
    avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.

    AVRDUDESS is V2.2 and Avrdude is 6.1

    I installed the last version of libusb in the same directory than Avrdudess, as requested, and
    have renamed the incoming .dll
    Versions numbers didn't change after restart, and i am still in the same situation:

    "[11][00]EBM [04]lashForth Atmega 5.0

    [11]"

    Reconnecting the previous Nano boards work fine.

    This is all I can say.
    I do not understand the difference beetween the uno and the nano, as MCU are the same.
    If someone has an idea about this, it will be great.

    Thanks in advance,

    Guy from Paris

     
  • Mikael Nordman

    Mikael Nordman - 2014-05-06

    Hi,
    At least you need to use the FUSE settings I provided.
    The Uno should reset the Atmega via the USB serial interface
    when you open the serial connection.

    Then it should work.

    The Hex file has been used by me on my Uno board both with 328 and 328P chips.
    But I can test the hex file again.

    You may have some faulty hardware ??

    BR Mike

     
  • Mikael Nordman

    Mikael Nordman - 2014-05-07

    The latest ff_uno.hex dated 2.4.2014 works on my ArduinoUno board, both with Atmega328p and Atmega328.

    Did you erase the device before programming it ?

    The M when FF starts means that there has been a divide by zero error.
    This should normally not occur.

    The [11] when FF starts could indicate that you have not enabled software flow control (XON/XOFF) in the terminal program. SW flow control should be enabled.

     
  • Guy Fortabat

    Guy Fortabat - 2014-05-13

    Mikael,

    Sorry for beeing late, my PC went totaly down, and I had to rebuild one,
    with all the backup-restore stuffs.
    So, here I am:

    Programming is done with:

    • UsbAsp programmer
    • erase-verify
    • MCU atmega 328P
    • hex file: ff_uno
    • fuses: FF DA FF LB:3F (Avrdudess setting)

    Term emulation:

    • termite
    • Xon/Xoff
    • 38400, 8, 1, N

    and I still have:

    [11][00]EBM [04]lashForth Atmega 5.0

    [11]

    • keyboard entrys does nothing but the on-board led blinks when I do CR

    I do not have this message on nano boards who works fine.

    I also tried another terminal emulator with the same message.

    Thanks for your help,

    Guy

     
  • Guy Fortabat

    Guy Fortabat - 2014-05-14

    Hi Mikael,

    I will by another arduino uno, so do not investigate, your time is precious !

    Guy

     

Log in to post a comment.