Hot answers tagged

6

First of all: The Arduino IDE brings its own GCC compiler. It is a version, that can compile for the AVR platform (don't know, if the standard version is capable of that). When you activate verbose output for compilation in the preferences of your Arduino IDE, you can actually see, what calls to GCC the IDE is doing. You could use that to replicate it. If ...


3

Download: avrdude \ -c <programmer type> \ -P <connection port> \ -b <override RS-232 baudrate> \ -p <partno, AVR device> \ -U <memtype>:r:file_name[:format] Upload: Use w (write) instead of r (read) for the -U option. More details at manual - avrdude Option-Descriptions. Example: Download UNO v3 (ATmega328)...


2

This is not an answer that fully meets what you ask, but it is too big for a comment, and it helps you somewhat, at least using your Sublime editor. What annoys me most in the Arduino IDE is the lack of supporting multiple files (having horizontal tabs make the number of files to see max 6 or 7, and using .h/.cpp files easily goes most beyond that number). ...


2

I'm not sure if you ever solved this issue but for me this error was occurring because the ATmega4809 chip was not powered on. By adjusting the wiring I managed to get rid of the "RSP_NO_TARGET_POWER" error. So I would suggest double checking wiring and then use the "Upload using programmer" (in "Sketch" tool-bar menu) to upload ...


1

Reflashing (and with that recompiling) the sketch for every variable change is very over-the-top. As you already want to write your own program for the PC I would suggest using Serial. That will be the easiest to implement. This would work like the following: On the Arduino: You regularly check if there is data in the Serial buffer, read if in that case. ...


1

In the Arduino IDE you should select "No Line Ending" from the menu, instead of "New line". Otherwise you are sending an extra "\n".


Only top voted, non community-wiki answers of a minimum length are eligible