Page 1 of 1

Return Code -2

Posted: Sun Mar 13, 2011 5:08 pm
by Jan Lichtenbelt
Hello,

After installing Flowcode V4 for PIC24, this is the first time I use Flowcode V4 for PIC16 again. All Flowcode programs I use give the following error:

"Launching the compiler...

C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\BoostC\boostlink.pic.exe -v -t PIC16F688 "Flitser2.c"

Return code = -2

Flowcode can not translate C-code ...:" (no C-errors given)

What to do?

Kind regards

Jan

Re: Return Code -2

Posted: Sun Mar 13, 2011 8:45 pm
by medelec35
Hi Jan,
Since your Flowcharts would of worked in the past, I have two suggestions.

1) Make sure compiler settings are correct.
Should be

Code: Select all

Compiler
Location = C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\BoostC\boostc.pic16.flowcode.exe
Parameters = -v -t PIC%p "%f.c"

Linker
Location = C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\BoostC\boostlink.pic.exe
Parameters = -ld "C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\BoostC\lib" libc.pic16.lib flowcode.pic16.lib rand.pic16.lib float.pic16.lib "%f.obj" -t PIC%p -d "%d" -p "%f"
(windows 64 Bit version)
If that's OK
Then 2)
Maybe best to reinstall Flowcode.
Sounds like linker software or linker settings are corrupt or wrong.

If still don't work then you can get some firewalls (E.g Comodo that will not allow parts or all of software to run, unless it has permission form the PC owner.

Re: Return Code -2

Posted: Sun Mar 13, 2011 10:32 pm
by Jan Lichtenbelt
Hi Medelec

Thanks a lot. On the compiler location was the assembler program. That will not work.

Regards

Jan