Pages: [1]   Go Down
Author Topic: Trying to program Arduino Mega 2560 in AVR Studio - help!  (Read 1582 times)
0 Members and 1 Guest are viewing this topic.
Puerto Rico
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to do programs in assembly for a class, and I think I have my program done but I can't upload it to the board. I have it as the ATmega 2560 (which is the chip on the board) but I am not sure if AVR studio detects Arduinos differently. I saw options for 'ATxmega256D' for example. So is it supposed to detect the board correctly when using the 'Atmega 2560' option or is the Arduino board something else?
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8592
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

AFAIK Studio know nothing about Arduino, you'll have to use a proper programmer and ISP program not use the boot loader.

Is is possible to write assembler in the Arduino environment, but it's a pain. See this thread for a bit of an idea

http://arduino.cc/forum/index.php/topic,52199.0.html

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 39
Posts: 4389
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
... but I can't upload it to the board.
How are you trying to upload it?

It is easy to do if you have a programmer such as the AVRISPMKII.  It is also possible to do it using AVRDUDE and the Arduino bootloader.


Don
Logged

Puerto Rico
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I did it finally. But I had to resort to avrdude. It IS a pain!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How did you do it, Tinito?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Tinto pleaaaaaaaaaaaaaaaaaase can you tell me the procedures of how to run arduino code using avr studio I have avr studio 4 and I have to run my code in any ave compiler and Im having really hard time figureing out that

Thanks
Logged

Pages: [1]   Go Up
Jump to: