2
\$\begingroup\$

Background : I'm used to code in Arduino(Uno, Mega, Esp32, Esp8266). But this time i have to code directly on AVR Atmega 2560 Chip.

I have AVR JTAG ICE 2.0 (like this one) and download several program such as CodeVision AVR, Atmel Studio 6.0 and 7.0. I can make hex file from CodeVision but i didnt know how to upload the code. How to do that?

(I work both on windows and linux)

\$\endgroup\$
  • \$\begingroup\$ A hex file is a juncture where various preceding and following flows cross paths, so even though you are not using Arduino in this project, you can actually use the same programming methods as Arduino typically uses - just run avrdude yourself. One way to figure that out the specific invocation is to set the arduino tool to upload with a programmer and enable verbose output and run it to see what it does. \$\endgroup\$ – Chris Stratton Jun 3 at 18:24
  • \$\begingroup\$ @ChrisStratton, would you like to explain the step on detail? I'm not sure about what to do.. \$\endgroup\$ – Albert H M Jun 4 at 3:29
  • \$\begingroup\$ What I'm saying is that you can learn how to do this for your non-Arduino project if you momentarily set the Arduino IDE for verbose output and to use your programmer, load some arduino code to the chip via the programmer, copy the resulting avrdude command line and modify as needed for your custom non-Arduino hex file. It's easiest if you continue to use the avrdude install and configuration files provided by the Arduino suite rather than trying to discretely install them on their own. \$\endgroup\$ – Chris Stratton Jun 4 at 13:37
0
\$\begingroup\$

If you are using AVR Studio 4.0, try these steps: enter image description here

enter image description here

enter image description hereenter image description here

enter image description here

enter image description here

enter image description here

I Hope this will Help.

\$\endgroup\$
  • \$\begingroup\$ thanks for your explanation \$\endgroup\$ – Albert H M Aug 21 at 13:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.