Questions tagged [avr-studio4]

Atmel® AVR Studio® 4 is the Integrated Development Environment (IDE) for developing and debugging embedded Atmel AVR® applications.

Atmel® AVR Studio® 4 is the Integrated Development Environment (IDE) for developing and debugging embedded Atmel AVR® applications. The AVR Studio 4 IDE gives you a seamless and easy-to-use environment to write, build, and debug your C/C++ and assembler code.

19 questions
37
votes
14 answers

Does it matter which microcontroller to use for 1st time embed system programmer?

I've experience in doing desktop and web programming for a few years. I would like to move onto doing some embed system programming. After asking the initial question, I wonder which hardware / software IDE should I start on... Arduino + Arduino…
Henry
  • 31,972
  • 19
  • 112
  • 214
25
votes
6 answers

8 bit enum, in C

I have to store instructions, commands that I will be receiving via serial. The commands will be 8 bits long. I need to preserve transparency between command name, and its value. So as to avoid having to translate an 8-bit number received in serial…
Lyndon White
  • 24,284
  • 15
  • 77
  • 126
5
votes
2 answers

How to convert Char into Float

How to convert an unsigned char value into a float or double in coding in AVR studio 4.? Please help I am a beginner, my question may sound stupid too :/ Like I have got a char keyPressed and I have printed it on the screen…
Mohit Goyal
  • 100
  • 1
  • 2
  • 10
4
votes
1 answer

Using autocomplete feature in AVR Studio for coding C with avr-gcc

How can I enable or disable the autocomplete feature for the IDE AVR-Studio 5 or AVR-Studio 4? Do I have to edit some installation files to do this? In the video AVR Studio 5: How to use the Editor, the man uses a supposed autocomplete feature…
Rego
  • 1,104
  • 1
  • 16
  • 39
2
votes
3 answers

Arduino: how to debug hex file in AVR Studio

When compiling an Arduino sketch, it creates a .hex file (stored in a temporary folder). When I open this file in AVR Studio 4.18, it tries to start at a location where no code exists. What should I do to be able to debug those Arduino hex files in…
Mot
  • 24,166
  • 22
  • 78
  • 117
1
vote
1 answer

Generating Random Number AVR without seed

I writing an application in AVR Studio 4 which generates random numbers and outputs them on a seven segment display. At the moment i am using a seed, the seed value then gets randomized and the value output. This method obviously produces the same…
JOsh
  • 149
  • 3
  • 12
1
vote
4 answers

Error message in AVR studio4

I have recently purchased an AVR USB programmer from robokits.co.in, was trying to program atmeg8 using AVR studio4 and I get the following when I click on the program options: a problem occurred when executing the command. make sure u are using …
Supandi43
  • 19
  • 5
1
vote
2 answers

Avrstudio 4.19 toolchain using gcc 4.7.x

I'm using makefile style compiling of my ATMEGA projects. As legacy of Arduino IDE, develepment toolchain is mostly aimed to gcc 4.3.2. Avrstudio 4.19 + Jtagice MKII CN + gcc 4.3.2 + make works somehow. But my problem is that gcc 4.3.2 is rather…
TMa
  • 613
  • 1
  • 4
  • 14
1
vote
2 answers

How do I open an file in AVR Studio?

I have two ATMEGA88 (master and slave) working correctly by sending a test[] via I2C. Working enviroment: AVR Studio using C. What I need is to allow the master be able to send a indicated file such as mydoc.txt to the slave. Should I be using…
Michael
0
votes
1 answer

Build AVR Studio 4 project in AVR Studio 5

I have an AT90USB162 Minimus AVR which I want to integrate into a project. I downloaded the demo code from Minimus USB. This is a driver for using the AVR as a COM port. The project is written for AVR Studio 4, and cannot be loaded as-is in AVR…
Rego
  • 1,104
  • 1
  • 16
  • 39
0
votes
0 answers

Build failed... No build tools defined

I am using avr studio 4.19 for debugging atmega128 development board. I added the path for tool-chain from project-configuration options. But still I am getting the same error while compiling/debugging.
Prasanna
  • 37
  • 2
0
votes
1 answer

add AVR Studio pgm_read_byte function to MiKroc (Electronica)

I have a program in AVR Studio V4 with the following code: #include void nlcd_Putc(unsigned char c) { unsigned char i; if (c>127) c=c-64; for (i = 0; i < 5; i++ ) { …
Soheil Paper
  • 319
  • 3
  • 18
0
votes
1 answer

Programming an Attiny85

I was wondering how to upload a program I wrote using AVR Studio 4 to an ATtiny85. I was basically using this tutorial http://blog.smileymicros.com/smileys-workshop-10-moving-beyond-arduino/ except doing everything with an attiny85 instead of an…
user5054569
0
votes
1 answer

Getting value from TCNT0 AVR

I have a timer which increments by one every 256 cycles. Is there a way that i can get the value from TCNT0 at the point it is called. I am using AVR Studio 4 and have tried using ldi temp, TCNT0 but i always seem to get 32 which is its address.…
JOsh
  • 149
  • 3
  • 12
0
votes
1 answer

getting value from Timer0 AVR

I am currently writing a program in AVR Studio 4 in which i would like to use the Timer to get a random number. I can get the timer to run, however i do not know how to get the current value of the timer. In general can the value be stored in a…
JOsh
  • 149
  • 3
  • 12
1
2