ATmega808 programming

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

I discovered that Atmel Studio supports only Assembly programming for AVR-0 series of microcontrollers. I have a few ATmega808 and would like to try out the same. Is there any way to code the ICs in C language?

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

bit.arnab wrote:
I discovered that Atmel Studio supports only Assembly programming for AVR-0 series of microcontrollers.

Where did you discovered that? It's wrong.

 

bit.arnab wrote:
Is there any way to code the ICs in C language?

Yes, in atmel Microchip Studio.

“Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?” - Brian W. Kernighan

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

You may need to use the pack manager to make sure your packs are up to date.

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


Works OK here.

 

 

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

OP was asking about asm.

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

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

?? wink

Is there any way to code the ICs in C language?

 

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

ka7ehk wrote:
OP was asking about asm.
No he wasn't. If you try to -mmcu= with an AVR model that is not supported (perhaps because there is no pack support) the C/C++ compiler outputs a message along the lines of "you can only use Asm with that". This is the message the OP was talking about. Something like:

D:\arduino-1.8.13\hardware\arduino\avr\cores\arduino>avr-gcc -mmcu=at90s1200 main.cpp
main.cpp:1:0: error: architecture 'avr1' supported for assembler only