All Questions
10 questions
8
votes
1
answer
5k
views
How does the call stack operated during an interrupt on AVR?
(Specific to the Arduino Uno...)
What happens to the stack when an interrupt occurs on an AVR microcontroller and I call a function? Does the compiler inline the code? Does it cache the stack ...
2
votes
2
answers
1k
views
Using the arduino toolchain as a convenent way to get GCC - Can you disable the code-munging?
I've been using the Arduino toolchain as a extremely convenient way to get a complete GCC toolchain and build-system with basically zero effort a lot recently.
However, I'm currently working on some ...
7
votes
2
answers
17k
views
How different is the Arduino language than Atmel Studio language? [closed]
I see that on the official Arduino website, the reference page contains the functions and vales you would use specified to the Arduino compiler.
http://arduino.cc/en/Reference/HomePage
What would ...
3
votes
2
answers
5k
views
Memory management problems with ATTiny85
The setup is as follows:
I have a little program to drive single color 8x8 led matrix using 595 shift registers that are supplied with data by ATTiny85 through USI as SPI Master. I upload program to ...
11
votes
3
answers
17k
views
How to discover memory overflow errors in the Arduino C code?
Several times I had some suspicious outputs on the Serial Monitor after uploading code to the Arduino: like eternal output of whitespaces or suddenly cut of strings or scrambled strings.
Because ...
5
votes
2
answers
2k
views
If YOU were starting out now, what PIC16F-compatible IDE and compiler would you choose, and why?
This is going to be a bit long as I wanted to cover all the obvious questions before they arise, give a rationale to some of my thinking, and prove I've done my groundwork! If time is short, skip down ...
-2
votes
1
answer
75
views
Adding a global int corrupts compiled code
I have a strange issue. I want to either increment a value every time the loop function is called or us a random value each time. Whether I use a global int for incrementing or set a local int to a ...
5
votes
1
answer
923
views
Easiest way to get rid of __clz_tab in winavr compiled code?
I've ported a program from the arduino environment to a makefile build using winavr, which, in turn, is based on avr-gcc (just like arduino).
However, my program started crashing, and after some ...
3
votes
1
answer
8k
views
How does the Arduino IDE/build system work?
How does the Arduino IDE/build system work?
I noticed that they use the avr-gcc in the background,
but what do they do on top?
They seem to have their own "kind of C" language that transforms into ...
11
votes
3
answers
15k
views
Programming for the Arduino without the Arduino IDE.. but with the provided libraries?
I recently started a new project using my Arduino that's been collecting dust for a while. Along with the physical board collecting dust, so has my copy of avr-gcc and the Arduino libraries. I can ...