Help:Editor doesn't create .hex file

Hi,

I'm having an issue uploading a sketch where the online editor is telling me it can't find my sketch (in the .hex format). When I look in the folder that is referenced below I do see the file BUT it's in a .bin format. (The output is copied below).

I'm sure it something basic as I'm new to arduino, any help would be greatly appreciated. Thank you!


./opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware opt/arduino-builder/hardware -hardware ./opt/cores -tools opt/arduino-builder/tools -tools ./opt/tools -built-in-libraries opt/libraries/latest -logger humantags -fqbn arduino:avr:uno -build-cache /tmp -build-path /tmp/950163282/build -verbose -libraries /tmp/950163282/custom -libraries /tmp/950163282/pinned /tmp/950163282/linefollow

Error reading file (/tmp/950163282/custom/libraries/library.properties:6): Invalid line format, should be 'key=value'

Programming with: Serial

Flashing with command:C:/Users/steinm8/.arduino-create/arduino/avrdude/6.3.0-arduino9/bin/avrdude.exe -CC:/Users/steinm8/.arduino-create/arduino/avrdude/6.3.0-arduino9/etc/avrdude.conf -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:/Users/steinm8/AppData/Local/Temp/arduino-create-agent473729779/linefollow.hex:i

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)

avrdude: reading input file "C:/Users/steinm8/AppData/Local/Temp/arduino-create-agent473729779/linefollow.hex"

avrdude: can't open input file C:/Users/steinm8/AppData/Local/Temp/arduino-create-agent473729779/linefollow.hex: No such file or directory

avrdude: read from file 'C:/Users/steinm8/AppData/Local/Temp/arduino-create-agent473729779/linefollow.hex' failed

avrdude: safemode: Fuses OK (E:00, H:00, L:00)

avrdude done. Thank you.

Are you sure its a CREATE issue as the error msg indicates different

Currently AFAIK the online editor does not handle sketches as BIN or HEX directly.

It will save as an INO file eg. "sketch.ino"
It can import the older types of file "PDE" but they too are often best saved from the IDE into INO format.

Really need to be able to understand what you are doing exactly ?
Are you trying to IMPORT sketches to the online IDE or save them out from the online IDE ?

Downloads from the online IDE are in ZIP format but may contain extra tabs in other formats and a JSON file to compliment other processes.

Uploads to the IDE can also contain other tabs etc but beware there are some limitations.

Have attached a help file for importing into CREATE based on my own experiences in testing.

Importing sketches and libraries.pdf (285 KB)

Thanks, Im trying to import a sketch and a library.

I am trying to upload this sketch:

...and this library:

I read through your document and it helped me upload everything, but now I am getting the following error codes ('line_following' was not declared in this scope), do you know what would cause this?:

./opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware opt/arduino-builder/hardware -hardware ./opt/cores -tools opt/arduino-builder/tools -tools ./opt/tools -built-in-libraries opt/libraries/latest -logger humantags -fqbn arduino:avr:uno -build-cache /tmp -build-path /tmp/262240878/build -verbose -libraries /tmp/262240878/custom -libraries /tmp/262240878/pinned /tmp/262240878/linefollow

Using library RadioShackRobotics at version 1.0.0 in folder: /tmp/262240878/custom/RadioShackRobotics

/tmp/262240878/linefollow/linefollow.ino: In function 'void setup()':

/tmp/262240878/linefollow/linefollow.ino:9:3: error: 'line_following' was not declared in this scope

line_following.line_following_setup(); //initialize the status of line following robot

^

/tmp/262240878/linefollow/linefollow.ino: In function 'void loop()':

/tmp/262240878/linefollow/linefollow.ino:37:7: error: 'line_following' was not declared in this scope

line_following.trigger_optical1();

^

/tmp/262240878/linefollow/linefollow.ino:39:7: error: 'line_following' was not declared in this scope

line_following.trigger_optical2();

^

/tmp/262240878/linefollow/linefollow.ino:47:13: error: 'line_following' was not declared in this scope

sensor_in=line_following.read_optical();

^

exit status 1

Well both have to be in seperate ZIP files.
The library also has to be stripped back (as mentioned in the PDF I supplied)

Simply import the lib attached into your custom libs in CREATE and it should compile your sketch.

Tested this end and everything compiles just fine.

Please do take the time and get to grips with importing sketches and libraries as it is pretty painless and if you are going to use copy / paste style programming it is a MUST for you to understand some basics.

You do realise this looks like a UNO specific library ?
It may not compile for other boards.

RadioShackRobotics.zip (125 KB)