I changed the line in polargraph_server_polarsheild.ino
from
// for working out CRCs
static PROGMEM prog_uint32_t crc_table[16] = {
0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,
0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c,
0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c
};
to
// for working out CRCs
const uint32_t PROGMEM crc_table[16] = { // const static PROGMEM prog_uint32_t crc_table[16] = {
0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,
0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c,
0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c
};
Might work for you as well.
Quote from linkreincarnate on June 9, 2015, 04:43
Is there any walkthrough on setting up this for the first time. I have no idea where the linker is looking for files and I cannot even get it to compile. I'm kinda an arduino noob. I am running kali linux and I have the arduino nightly build on the desktop. Which files do i download from github? Where do i put them once I download them? What do i need to do so that all the files are talking to eachother properly and how do I upload it to the ramps board? Basically is there a video tutorial anywhere that covers everything from downloading the project to runnning it?
I added the library files and commented out the stuff I was instructed to but I get a compiler error:
polargraph_server_polarshield.ino:109:16: error: 'prog_uint32_t' does not name a type
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from /Applications/Arduino.app/Contents/Resources/Java/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.ino:392:31: error: 'crc_table' was not declared in this scope
util.ino:394:31: error: 'crc_table' was not declared in this scope
Error compiling.
|