Go Down

Topic: Upload without recompiling (Read 10901 times) previous topic - next topic

cyclegadget


My computer at home runs in the low 30's on processes and the one I am sitting at is at 49. You have a lot of add-ons running or something to be show above 100!

Mark
Good links: Eagle tutorial= http://www.youtube.com/playlist?list=PLDE1858BD83D19C70
General Arduion tutorials = http://tronixstuff.wordpress.com
http://www.gammon.com.au/forum/bbshowpost.php?bbtopic_id=123

robtillaart


- sounds not like too much apps or so, although firefox can be a killer app
- disk usage is not extreme either.

Do you have a virusscanner in the background?

which version of the IDE?

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

smeezekitty



- sounds not like too much apps or so, although firefox can be a killer app

Yes. Firefox is the reason the CPU is not 1%
Quote

Do you have a virusscanner in the background?

Yes
Quote

which version of the IDE?



0021
Avoid throwing electronics out as you or someone else might need them for parts or use.
Solid state rectifiers are the only REAL rectifiers.
Resistors for LEDS!

mowcius

Quote
If this happens, you need a new Arduino. The Arduino doesn't just randomly loose sketches.

The Arduino Uno bootloader shipped with the first batch can cause arduino boards to not remember their sketch but that just means you need to load the new bootloader.

I think that an 'upload from hex' could be quite useful - Yes we can do it with another program but that's not the point.

And of course a better location for the hex would be good too.

CrossRoads

@mowcius,
any thoughts on smeezekitty's really slow compile times? See Replys #8,9 in this thread. 56 seconds to compile "blink" sketch?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

mowcius

I'm afraid I've got no idea on that - my 1.8Ghz with 1GB RAM only takes 15 seconds or so to compile blink (or similar - haven't timed it)

I haven't seen any solutions anywhere else either.

smeezekitty

I don't really mind the delay because I use it to work on hardware etc. But uploading without recompiling would be very helpful.
Avoid throwing electronics out as you or someone else might need them for parts or use.
Solid state rectifiers are the only REAL rectifiers.
Resistors for LEDS!

superman54f

i think he forgot to change board type or maybe he choose wrong board on the tools> board
and check also the comport.

AndyDev

From what I can work out the buttons are "Verify/Compile" and "Upload", however their functions are "Verify/Compile" and "Verify/Compile/Upload" it's a bit frustrating. At least an 'On Upload dont recompile if sketch unchanged' checkbox would be nice in preferences, or have the buttons do what they say, or maybe a 3rd or something.

Marttyn

I fully support this. We had to deploy the same program to 10 Arduino Mega. Compile took about 1 minute on each upload, even when the HEX was not changed.
Is there any program that can upload an HEX that is simple enough and with GUI? Dont want to mess with fuses, clock speeds or anything... just select which arduino, which port, the HEX file, and upload. Would be great, at least if the Arduino IDE dont have any interest on this topic.

Marttyn

Found this: http://www.hobbytronics.co.uk/arduino-xloader
Also changing IDE to Visual Studio or Atmel Studio gives much more freedom...
Quite tired of Arduino IDE.

eahenle

You ever run into a problem, search the internet high and low for solutions, and determine that it's basically been ignored by the developers for most of a decade?

How is this still an issue?  There is no option anywhere in IDE 1.8.9 to prevent the wanton deletion of the compiled result, or to in any way force the use of the most recent successful compilation.  Every time I want to upload to a board, the IDE chooses to recompile.  Even if there hasn't been a single changed character anywhere in any source code, even if it's to the same board, even if the board has been powered on since before the last compilation and the same uploader has been connected continuously, the program will recompile in its entirety.  This happens for every board, every programmer, and every sketch, and it happens for every installation of the IDE on every computer I can get my hands on.

I need to program a number of boards with identical code, in an application that lends itself to frequent problems during upload.  Having to recompile the code (and all libraries) for every single attempt is completely ridiculous, especially given that this has been a known problem for 8 or 9 years.  Right now, my plan is to export the .hex and upload it using different software... but the point of an IDE is supposed to be that you do not need other software.

Romonaga

Let me clarify. The GCC port to windows is SLOW. Compiling blink takes 60 seconds and bigger sketches longer. No there is nothing wrong with the computer. It has dual core and 2GB ram. MingW gcc is very slow as well. No excessive CPU consumption, just slow. Adding a upload button with would trivial by not deleting the hex file and running the avrdude command. It could be hidden on the pull down menu.
Hmmm,

I run
Linux at home, my machine while a file server is not particularly fast, I have never seen a compile time that large.


However, I will agree, it would be nice if no changes were made to NOT recompile.  It is a pain and if my compile times matched yours I would be wanting this changed as well.
The universe exists only because we are aware of it.
We want a few mad people now. See where the sane ones have landed us!

westfw

Quote
Every time I want to upload to a board, the IDE chooses to recompile.
It shouldn't.   Changes were made "quite some time ago" not to completely recompile the same sketch, and somewhat more recently to avoid recompiling the core, even if the sketch has changed.
Mine windows install does this, unless you change board type or exit the IDE.  Recently. I've been more worried about not having a "clean" function that would for-sure recompile everything.

Here's a log (somewhat edited so that it fits.) (See the highlighted RED parts.)
I guess there are parts that still don't need to be done, but it's certainly inaccurate to say that the situation has not improved in a decade....


...\arduino-builder ...
...\arduino-builder ...
Using board 'uno' from platform in folder: ...\hardware\arduino\avr
Using core 'arduino' from platform in folder: ...\hardware\arduino\avr
Detecting libraries used...
".../avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\billw\\AppData\\Local\\Temp\\arduino_build_117157\\sketch\\BarometricPressureWebServer.ino.cpp" -o nul
".../avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Ethernet\\src" "C:\\Users\\billw\\AppData\\Local\\Temp\\arduino_build_117157\\sketch\\BarometricPressureWebServer.ino.cpp" -o nul
".../avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Ethernet\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "C:\\Users\\billw\\AppData\\Local\\Temp\\arduino_build_117157\\sketch\\BarometricPressureWebServer.ino.cpp" -o nul

Using cached library dependencies for file: ...\libraries\Ethernet\src\Dhcp.cpp
Using cached library dependencies for file: ...\libraries\Ethernet\src\Dns.cpp
Using cached library dependencies for file: ...\libraries\Ethernet\src\Ethernet.cpp
Using cached library dependencies for file: ...\libraries\Ethernet\src\EthernetClient.cpp
Using cached library dependencies for file: ...\libraries\Ethernet\src\EthernetServer.cpp
Using cached library dependencies for file: ...\libraries\Ethernet\src\EthernetUdp.cpp
Using cached library dependencies for file: ...\libraries\Ethernet\src\socket.cpp
Using cached library dependencies for file: ...\libraries\Ethernet\src\utility\w5100.cpp
Using cached library dependencies for file: ...\hardware\arduino\avr\libraries\SPI\src\SPI.cpp

Generating function prototypes...
".../avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Ethernet\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "C:\\Users\\billw\\AppData\\Local\\Temp\\arduino_build_117157\\sketch\\BarometricPressureWebServer.ino.cpp" -o "C:\\Users\\billw\\AppData\\Local\\Temp\\arduino_build_117157\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\billw\\AppData\\Local\\Temp\\arduino_build_117157\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
".../avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Ethernet\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "C:\\Users\\billw\\AppData\\Local\\Temp\\arduino_build_117157\\sketch\\BarometricPressureWebServer.ino.cpp" -o "C:\\Users\\billw\\AppData\\Local\\Temp\\arduino_build_117157\\sketch\\BarometricPressureWebServer.ino.cpp.o"
Compiling libraries...
Compiling library "Ethernet"
Using previously compiled file: C:...7\libraries\Ethernet\Dhcp.cpp.o
Using previously compiled file: C:...7\libraries\Ethernet\EthernetServer.cpp.o
Using previously compiled file: C:...7\libraries\Ethernet\EthernetUdp.cpp.o
Using previously compiled file: C:...7\libraries\Ethernet\Ethernet.cpp.o
Using previously compiled file: C:...7\libraries\Ethernet\socket.cpp.o
Using previously compiled file: C:...7\libraries\Ethernet\Dns.cpp.o
Using previously compiled file: C:...7\libraries\Ethernet\EthernetClient.cpp.o
Using previously compiled file: C:...7\libraries\Ethernet\utility\w5100.cpp.o

Compiling library "SPI"
Using previously compiled file: C:...7\libraries\SPI\SPI.cpp.o

Compiling core...
Using precompiled core: ...\Temp\arduino_cache_36981\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a


Go Up