Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: try to compile, but 0 bytes uploaded
TOMSKI
Newbie
Posts: 3
Permalink
Post try to compile, but 0 bytes uploaded
on: December 10, 2016, 21:02
Quote

well, many hours later, i just have now a white screen. than i red i have to compile. do i have to bundle something? i donΒ΄t get the idea. when i x-load the single .ino files, it gives the 0 bytesuploaded message. how to update the firmware?

polargraph_server_polarshield_22.cpp.hex Is for versions of the Polarshield or PolargraphSD that shipped with 2.2 inch screens. but i cant find it.
later:
+If you have a 2.2 inch screen, then you need to compile the firmware yourself. but why and how?

2.2 inch screen, i guess
polarshield v1.2 2012
freaduino mega 2560 v1.2 2011

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: try to compile, but 0 bytes uploaded
on: December 10, 2016, 22:16
Quote

Congratulations on still plugging away with that original Polarshield πŸ™‚

The source code (uncompiled) is .ino, compiled files are .hex. You use the Arduino app to compile and upload ino files. You use xloader to upload precompiled hex files.

Uploading precompiled hex files is much easier if you have a hex file that matches your hardware.

https://github.com/euphy/polargraph/wiki/Uploading-precompiled-binary-hex-files

There is one .hex currently bundles with the code, but it's for more recent versions of the LCD, so it probably won't work. (It won't do any harm, just the LCD won't work properly.)

I think this commit might suit the generation of board and LCD that you have:

https://github.com/euphy/polargraph_server_polarshield/tree/6b3f8bc03c743b85b4ac5178ff66756515d8ac45

There's two .hex files in there, one for the 2.2 inch LCD, and the other for the 2.4 inch LCD. You probably have a 2.2 inch one, so save the file

https://raw.githubusercontent.com/euphy/polargraph_server_polarshield/6b3f8bc03c743b85b4ac5178ff66756515d8ac45/polargraph_server_polarshield_22.cpp.hex

and try uploading that using xloader.

sn

TOMSKI
Newbie
Posts: 3
Permalink
Post Re: try to compile, but 0 bytes uploaded
on: December 10, 2016, 22:39
Quote

crazy! it works! cool, thank you so much for that superfast answer! looking foward the next steps. yes, it is an older one, was sleeping a while, try to wake it.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: try to compile, but 0 bytes uploaded
on: December 10, 2016, 23:57
Quote

Brilliant! I wasn't sure I'd guessed the version right πŸ™‚ Have fun!

TOMSKI
Newbie
Posts: 3
Permalink
Post Re: try to compile, but 0 bytes uploaded
on: December 11, 2016, 16:16
Quote

πŸ˜€

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.028 seconds.