How to flash Arduino produced .hex file to my ATMEGA1284P chip?

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I don't have an Arduino NANO board, and I am using the Arduino IDE with the ATMEGA1284 core to build the .hex file.  I think exported the .hex file and the IDE did it without any program.  Then I use AVRDude with my usbtiny programmer to flash the .hex file, the one WITHOUT the optiboot loader included, directly to my ATMEGA1284P.

 

Here is the web site I was looking at http://www.technoblogy.com/show?....

 

I am not seeing the program working as intended.  Of course, it could a number of issues, but I just wanted to make sure that the way I flash the .hex file to my 1284P (described above) is correct.  Thank you!

 

 

Last Edited: Tue. Jun 28, 2022 - 10:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

unebonnevie wrote:

Hi,

 

I don't have an Arduino NANO board, and I am using the Arduino IDE with the ATMEGA1284 core to build the .hex file.  I think exported the .hex file and the IDE did it without any program.  Then I use AVRDude with my usbtiny programmer to flash the .hex file, the one WITHOUT the optiboot loader included, directly to my ATMEGA1284P.

 

Here is the web site I was looking at http://www.technoblogy.com/show?....

 

I am not seeing the program working as intended.  Of course, it could a number of issues, but I just wanted to make sure that the way I flash the .hex file to my 1284P (described above) is correct.  Thank you!

 

 

 

Ok,  Got it working!  So, just program as exactly described above. AND make sure to use the pinout numbers correctly, per description in http://www.technoblogy.com/show?... for the  "maniacbug" Mighty 1284p 16MHz using Optiboot option on the Boards menu.

 

 

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It should be OK.  I'm not entirely sure that the USBTiny supports 128k parts, but I'll assume that your initial test program was smaller.

Note that uploading a .hex file to a chip with avrdude does NOT set the fuses of the chip; you'll need a separate step for that.  Incorrect fuses are a frequent cause of "not working as intended."

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

unebonnevie wrote:

unebonnevie wrote:

Hi,

 

I don't have an Arduino NANO board, and I am using the Arduino IDE with the ATMEGA1284 core to build the .hex file.  I think exported the .hex file and the IDE did it without any program.  Then I use AVRDude with my usbtiny programmer to flash the .hex file, the one WITHOUT the optiboot loader included, directly to my ATMEGA1284P.

 

Here is the web site I was looking at http://www.technoblogy.com/show?....

 

I am not seeing the program working as intended.  Of course, it could a number of issues, but I just wanted to make sure that the way I flash the .hex file to my 1284P (described above) is correct.  Thank you!

 

 

 

Ok,  Got it working!  So, just program as exactly described above. AND make sure to use the pinout numbers correctly, per description in http://www.technoblogy.com/show?... for the  "maniacbug" Mighty 1284p 16MHz using Optiboot option on the Boards menu.

 

 

 

Btw, how would I flash my ATMEGA1284P with the .hex file that includes OptiBoot using AVRDude?  Thank you!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

unebonnevie wrote:
Btw, how would I flash my ATMEGA1284P with the .hex file that includes OptiBoot using AVRDude? 
Switch on verbosity in Arduino - get it to program a sketch. Copy the command it uses outside Arduino.