Skip to main content

Questions tagged [avr-gcc]

AVR-GCC is a compiler that takes C language high level code and creates a binary source which can be uploaded into an AVR micro controller.

13 votes
2 answers
12k views

Okay, we all have seen those questions all over the web such as Arduino v.s. C++, or other similar questions. And a vast majority of the answers do not even touch compilation differences other than ...
1 vote
1 answer
157 views

If I put this in my arduino program, in main.cpp, I suddenly run out of memory for flash program size: if(msgSize > 2) { //sr::sequentialRead(&serialRead, newTram.hash); uint8_t bytes[...
-1 votes
1 answer
124 views

I'm working on a linux machine with avrdude and avrgcc. NOT using Arduino IDE. I'm using Arduino Nano 33 SENSE REV2 BLE, trying to upload a sample blink .c program and getting this error. This is the ...
2 votes
2 answers
2k views

I need to initialize several buttons and LEDs connected to my Arduino. To store data related to an individual button or LED, I decided to define my own data type using two different structs. One for a ...
0 votes
1 answer
179 views

I am new to Arduino and gcov. I have a .ino sketch file, avr-gcov, and avr-gcc from Arduino library in the same directory. Could someone guide me to the steps I should take to run avr-gcov on my .ino ...
2 votes
0 answers
193 views

I have a 3.5" TFT LCD communicating in parallel connected to Arduino UNO. I expect it draws a white circle on a black background but all it does is to show a white screen. How to fix this? main.c ...
0 votes
2 answers
318 views

I am programming an attiny202 which as per datasheet can run up to 20Mhz, but after compiling/uploading this simple code to the attiny202 and watch the PA2 pin on the oscilloscope, I see that the pin ...
1 vote
1 answer
386 views

Note: This is a reference question (but feel free to write answers of your own!) I want to use the AVR tools directly -- no arduino-builder or arduino-cli. I would also like compilation and uploading ...
0 votes
1 answer
87 views

So I was reading about Simple AutomaticLight Controller using LDR. or with the help of LDRSenso. But I have LM393 Photoresistor (LDR) Sensor I like to know are they same thing or somewhat different. ...
1 vote
1 answer
1k views

I am using the PubSubClient library in my own Arduino library. I'm having trouble with trying to assign a class member as the client library setCallback callback function. MyClass.cpp: #include <...
1 vote
1 answer
89 views

Why do I have to burn the code twice to actually burn it on to the Arduino board? I have to execute this command twice - only then is the chip getting programmed. I'm using this command to burn the ...
1 vote
2 answers
122 views

I was taking a look at the disassembly for a loop of mine that seemed to be taking too long and I found these assembly instructions that I don't understand. Why does it load 0 into r25 and then do two ...
1 vote
1 answer
204 views

I have two files blink1.cpp typedef unsigned char int8_t; typedef volatile int8_t * volatile port_type; port_type portB = (port_type) 0x25; port_type ddrB = (port_type) 0x24; void delay_500ms() { ...
1 vote
1 answer
2k views

I am exploring the ATmega328p MCU via a standard Arduino UNO, with the help of avr-gcc toolchain and AVRdude (All in the WINAVR package). I have successfully programmed the board a few times with it. ...
11 votes
2 answers
2k views

I have started to play with and arduino UNO quite recently (without any prior experience with micro-controllers). I would like to use emacs instead of the IDE, and I'd also like to know what the IDE ...

15 30 50 per page
1
2 3 4 5