Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
133 views

Passing string by reference not working in Atmel Studio

MCU: Atmega2560 IDE: Microchip Studio v7.0.2594 Toolchain: WinAVR (also tried with Native) I am trying communicate with my MCU over UART. I have written two very basic functions over UART to transmit ...
Manish Verma's user avatar
2 votes
0 answers
1k views

how to convert float to string correctly in avr c [duplicate]

I need to convert a float value to a string in my avr project. Therefore I tried it with the following code: char buf[10]; float emg1 = 33.42; sprintf(buf, "%f", emg1); uart_puts(buf); But ...
kaan5353's user avatar
0 votes
2 answers
589 views

Linux : Serial Bootloader Application for the ATtiny1616

I am working on the ATMEL ATtiny1616 micro-controller. I am looking for a (Linux C/Phython based) serial bootloader application to program the ATtiny1616. Will you please help me to know, Where I can ...
shiv patil's user avatar
0 votes
3 answers
667 views

Debug in Atmel Studio jumps to wild area of code when 'step out' is pressed

Good day all! I am running the latest Atmel Studio 7 with all patches. AVR-GCC is being used with a 32U4 avr plus an Atmel-ICE via JTAG. I am in an ISR function and step over works fine each time I ...
keith bradley's user avatar
2 votes
1 answer
3k views

change Start address .hex in atmel studio7

I'm doing a bootloader for AVR in ATMELStudio7, when generating the .hex it is created from the address 0x00 but the bootloader has to go from the address 0x1e000, if anyone knows how to change this ...
José Vicente R's user avatar
0 votes
1 answer
679 views

Setting a flag does not work in my timer Interrupt (while the Interrupt is working)

I used to write my codes in ICCAVR and I had no problem there, but not for some reason I should migrate to AtmelStudio. in the following code, the LED is flashing in the interrupt, but when I only set ...
Mahdi's user avatar
  • 3
0 votes
1 answer
726 views

Having Difficulty Integrating JSON Library with My AVR Microcontroller Code

I am a relatively inexperienced C developer with no previous experience in integrating libraries made by other developers into existing projects. Basically, I need a means of parsing JSON data in an ...
Jeremy Richards's user avatar
0 votes
0 answers
110 views

LCD's delays with precise timer interrupts

I'm developing a system that allows to set a square wave period, then, once setted, it drives a led with a square wave with the setted period. Anyway if i set the period, the output square wave isn't ...
RawCode's user avatar
0 votes
2 answers
132 views

Entering in switch case resets to zero every variable and some tips

I wrote this code in my exam, but it have some problems(and because of this i get failed). While debugging through my board(i've got an atmel atmega328p Xplained mini), i don't know why, but while ...
RawCode's user avatar
0 votes
1 answer
782 views

Atmel Studio override interrupt vector

i need to override the interrupt vector generated automatically from Atmel Studio. can anyone help me with this ? Update with the interrupt code generated by the Atmel Studio. 00000000 <__vectors&...
Radu's user avatar
  • 123
1 vote
2 answers
2k views

Ultrasonic Sensor in AVR

I am working on creating an ultrasonic range detector. I am currently testing the sensor to make sure that it is functioning properly. I have connected the echo pin and trigger pin to PC4 and PC5 ...
Blake Doran's user avatar
0 votes
2 answers
169 views

Same function within different files returns different results

I'm currently writing a library for learning purposes and I've run into a weird problem. So, 1. I have a function in the main body (main.c) that reads the DDRAM address of an LCD. 2. I move the exact ...
Efthymios's user avatar
  • 263
7 votes
2 answers
2k views

snprintf not working as expected with avr-gcc

During a debugging session, I found out that snprintf is not working as expected when compiling the code with avr-gcc. The example code should simply convert the floating point value 3999.9f into its ...
orbitcowboy's user avatar
  • 1,568
0 votes
0 answers
2k views

Atmel Studio- ATmega128 bootloader

I am trying to write a customized boot-loader for ATmega AVR's. I write a code, and it work perfectly in small AVR's like ATmega32A and ATmega8A. But when i want to use it in ATmega128A, it writes ...
Ali Ghasemi's user avatar
0 votes
2 answers
2k views

32 bit number handling with ATTiny and Atmel Studio

I am wondering how the ATTiny, specifically the ATTiny24 stores 32 bit unsigned ints in memory. I'm trying to take a 32 bit value and write it to a 32 bit location in the EEPROM. I have attempted to ...
soupaloop's user avatar

15 30 50 per page