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)

asked Jun 3, 2019 at 14:55
\$\endgroup\$
3
  • \$\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\$ Commented Jun 3, 2019 at 18:24
  • \$\begingroup\$ @ChrisStratton, would you like to explain the step on detail? I'm not sure about what to do.. \$\endgroup\$ Commented Jun 4, 2019 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\$ Commented Jun 4, 2019 at 13:37

1 Answer 1

0
\$\begingroup\$
answered Aug 16, 2019 at 15:50
\$\endgroup\$
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.