Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"ERROR: 142: token -> '3' ; column 21" errors, PIC18F45k50
17-10-2014, 03:46 PM,
#1
"ERROR: 142: token -> '3' ; column 21" errors, PIC18F45k50
Folks,

Hi!

I'm getting this error even on compiling simple examples. Like Knob. pde

// Controlling a servo position using a potentiometer (variable resistor)

// by Michal Rinott <http://people.interaction-ivrea.it/m.rinott>

int potpin = 0; // analog pin used to connect the potentiometer
int val; // variable to read the value from the analog pin

void setup()
{
servo.attach(9); // attaches the servo on pin 9 to the servo object
}

void loop()
{
val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023)
val = map(val, 0, 1023, 0, 179); // scale it to use it with the servo (value between 0 and 180)
servo.write(9, val); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
}

Processor: 18f45k50

sdcc: Calling preprocessor...
sdcc: Generating code...
sdcpp.exe: fatal error: when writing output to : Invalid argument
/dvpt/pinguino/git-copy/pinguino-compilers/sources/sdcc/src/pic16/main.c:701 setting interrupt vector addresses 0xc00
C:/pinguino-ide/libraries/p8/include/pinguino/core/digital.h:142: syntax error: token -> '3' ; column 21

However the very, very similar PIC18F25k50 compiles fine ...

>>> compilling: C:\pinguino-ide 11\user\examples.Control\Servo\Knob.pde

>>> Board: Pinguino 25k50
>>> Proc: 18f25k50
>>> Arch: 8
>>> Boootloader: v4
>>>
>>> compilation done
>>> code size: 9302 / 29696 bytes (31% used)
>>> 1.019 seconds process time


Ideas?

Best,

R.
Reply
28-10-2014, 08:40 PM,
#2
RE: "ERROR: 142: token -> '3' ; column 21" errors, PIC18F45k50
(17-10-2014, 03:46 PM)rasyoung Wrote: Folks,

Hi!

I'm getting this error even on compiling simple examples. Like Knob. pde

// Controlling a servo position using a potentiometer (variable resistor)

// by Michal Rinott <http://people.interaction-ivrea.it/m.rinott>

int potpin = 0; // analog pin used to connect the potentiometer
int val; // variable to read the value from the analog pin

void setup()
{
servo.attach(9); // attaches the servo on pin 9 to the servo object
}

void loop()
{
val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023)
val = map(val, 0, 1023, 0, 179); // scale it to use it with the servo (value between 0 and 180)
servo.write(9, val); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
}

Processor: 18f45k50

sdcc: Calling preprocessor...
sdcc: Generating code...
sdcpp.exe: fatal error: when writing output to : Invalid argument
/dvpt/pinguino/git-copy/pinguino-compilers/sources/sdcc/src/pic16/main.c:701 setting interrupt vector addresses 0xc00
C:/pinguino-ide/libraries/p8/include/pinguino/core/digital.h:142: syntax error: token -> '3' ; column 21

However the very, very similar PIC18F25k50 compiles fine ...

>>> compilling: C:\pinguino-ide 11\user\examples.Control\Servo\Knob.pde

>>> Board: Pinguino 25k50
>>> Proc: 18f25k50
>>> Arch: 8
>>> Boootloader: v4
>>>
>>> compilation done
>>> code size: 9302 / 29696 bytes (31% used)
>>> 1.019 seconds process time


Ideas?

Best,

R.
I was able to compile for the PIC18F45k50 install on a Linux VM, following the lucid instructions here...

http://shiggyenterprises.wordpress.com/2...-pinguino/

Thanks to the poster!

Best,

R.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)