Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: RAMPS 1.4 Version HEX File
Richard
Newbie
Posts: 5
Permalink
Post RAMPS 1.4 Version HEX File
on: July 13, 2015, 16:35
Quote

Hi,

I'm finding it above my understanding to compile all of the various Polargraph files in the Arduino.... I have been able to load the HEX files without an issue but I'm using a RAMPS board and I need to change the various comments to set this. But, as I just cant seem to figure out how to compile all the software and as I am currently only capable of loading hex files, I'm stuck!!
Anybody!! Please post/share a hex file that accommodates a ramps 1.4 on an Arduino mega. Please!

Richard
Newbie
Posts: 5
Permalink
Post Re: RAMPS 1.4 Version HEX File
on: July 13, 2015, 17:01
Quote

Further to my post, I've been trying to arrange the code, and I keep getting this error when trying to compile.

Richard
Newbie
Posts: 5
Permalink
Post Re: RAMPS 1.4 Version HEX File
on: July 13, 2015, 17:02
Quote

Arduino: 1.6.5 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

polargraph_server_polarshield:108: error: 'prog_uint32_t' does not name a type
In file included from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from C:\Program Files\Arduino\hardware\arduino\avr\libraries\SPI/SPI.h:17,
from polargraph_server_polarshield.ino:47:
util.ino: In function 'long unsigned int crc_update(long unsigned int, byte)':
util:392: error: 'crc_table' was not declared in this scope
util:394: error: 'crc_table' was not declared in this scope
'prog_uint32_t' does not name a type

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

sandy
Administrator
Posts: 1449
Permalink
Post Re: RAMPS 1.4 Version HEX File
on: July 13, 2015, 20:28
Quote

Arduino 1.6 has changed a few things, I haven't got around to updating the code bundle. The fix is as follows:

// for working out CRCs
const uint32_t PROGMEM crc_table[16] = {
    0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
    0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,
    0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c,
    0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c
};

https://github.com/euphy/polargraph_server_polarshield/blob/master/polargraph_server_polarshield.ino#L107-L113

This should replace the section in polargraph_server_polarshield.ino

Give that a shot!

Install libraries:

Put the libraries in the right place. There is a folder called "libraries" in the code bundle, that contains four subfolders: Accelstepper, AFMotor, UTFT, UTouch.

There is also a folder called "libraries" in your arduino sketchbook folder. You should copy the four subfolders from the code bundle, into your libraries folder in your arduino sketchbook folder. On my machine, the arduino sketchbook folder is C:\Users\sandy_000\Documents\Arduino. Yours will be something similar, but if you can't find it, go to file -> preferences to see it.

Lastly, the version of UTFT that is in the bundle is old and needs to be updated for v1.6. Download the new version from http://www.rinkydinkelectronics.com/library.php?id=51 and put that new UTFT folder into your sketchbook/libraries folder.

That compiles ok for me in 1.6.

Sandy Noble

Richard
Newbie
Posts: 5
Permalink
Post Re: RAMPS 1.4 Version HEX File
on: July 15, 2015, 19:14
Quote

Hi Sandy, Got it working!!! I'm so pleased, I can't tell you. Thank you for the help so far..
Pictures will follow.
Thanks Again

Richard

sandy
Administrator
Posts: 1449
Permalink
Post Re: RAMPS 1.4 Version HEX File
on: July 15, 2015, 20:19
Quote

Hurray! Great to hear it. I need to go and update the code in the bundle to do this, I've just had a rash of questions that all boiled down to this same issue.

sn

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