Page 1 of 1

linker/assembler problem, return code= -2

Posted: Thu Sep 30, 2010 9:56 am
by dannyvanneijenhoff
Hello
I have (had) a problem with compling on 2 pc's (VISTA 32, AND W7 64BIT). With FC3 and FC4.
A few moths ago, there was no problem, have Norton antivirus installed on both PC's :!:
FC4 is working now (on VISTA), FC3 not.
Have someone a idee. thanks
------------------------------------------------
Changed in compiler options
in FC3 was, (and still is)
C\Program Files\Matrix Multimedia\Common\PPPv3\PPPv3.exe,
-cs 2 -chip PIC%p -nogui "%f.hex"
in FC4 is, is something changed AND IS WORKING, (on Vista)
C:\Program Files\Matrix Multimedia\Flowcode V4\tools\PICkit2\pk2cmd.exe,
-PPIC%p -F%f.hex -M -A5 -T -R -BC:\Program Files\Matrix Multimedia\Flowcode V4\tools\PICkit2\
-----------------------------------------------------------
file name: C:\werk back-up 1-6-07\PIC data en sotware\Data klaar\HT 1337 led lamp puls potm rev2.c
Generated by: Flowcode v3.6.11.53
Date: Thursday, September 30, 2010 09:12:53
Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC12F683 "HT 1337 led lamp puls potm rev2.c"
BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)
hT 1337 led lamp puls potm rev2.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "C:\werk back-up 1-6-07\PIC data en sotware\Data klaar\HT 1337 led lamp puls potm rev2.c" -i "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC12F683 -la -c2 -o "HT 1337 led lamp puls potm rev2.pp" -v -d _BOOSTC -d _PIC16
HT 1337 led lamp puls potm rev2.c success return code = 0

Launching the linker/assembler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostlink.pic.exe -ld "C:\Program Files\SourceBoost\lib" libc.pic16.lib "HT 1337 led lamp puls potm rev2.obj" -t PIC12F683 -d "C:\werk back-up 1-6-07\PIC data en sotware\Data klaar" -p "HT 1337 led lamp puls potm rev2"
BoostLink Optimizing Linker Version 6.70

Failed to open:C:\werk back-up 1-6-07\PIC data en sotware\Data klaar/HT 1337 led lamp puls potm rev2.hex
failure Return code = -2

Re: linker/assembler problem, return code= -2

Posted: Thu Sep 30, 2010 1:01 pm
by Benj
Hello,

The problem is likely due to the file path. If you save the file into a folder off the C drive without non alphanumeric characters then the program should compile correctly.

Eg.

c:\Flowcode work\Data Klaar\

Re: linker/assembler problem, return code= -2

Posted: Tue Oct 26, 2010 1:08 pm
by dannyvanneijenhoff
Do you have other idee's, this is not working.
Thanks Danny

1 Launching the linker/assembler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\BoostC\boostlink.pic.exe -ld "C:\Program Files\SourceBoost\lib" libc.pic16.lib "HT 1337rev3.obj" -t PIC12F683 -d "J:" -p "HT 1337rev3"
BoostLink Optimizing Linker Version 6.95
Error: Failed to open:libc.pic16.lib or C:\Program Files\SourceBoost\lib/libc.pic16.lib

2 Launching the linker/assembler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\BoostC\boostlink.pic.exe -ld "C:\Program Files\SourceBoost\lib" libc.pic16.lib "HT 1337 rev3.obj" -t PIC12F683 -d "C:\Flowcode work\Data Klaar" -p "HT 1337 rev3"
BoostLink Optimizing Linker Version 6.95
Error: Failed to open:libc.pic16.lib or C:\Program Files\SourceBoost\lib/libc.pic16.lib

Re: linker/assembler problem, return code= -2

Posted: Tue Oct 26, 2010 1:15 pm
by Benj
Hello,

It looks like the compiler is looking in the wrong place for the linker.

If you go to Chip -> Compiler options in Flowcode and then check that the following values are as shown.

Flowcode v3.

Compiler Location: C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe
Compiler Params: -v -t PIC%p "%f.c"

Linker Location: C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostlink.pic.exe
Linker Params: -ld "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\lib" libc.pic16.lib flowcode.pic16.lib "%f.obj" -t PIC%p -d "%d" -p "%f"

Flowcode v4.

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

Linker Location: C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostlink.pic.exe
Linker Params: -ld "C:\Program Files\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"

Re: linker/assembler problem, return code= -2

Posted: Tue Oct 26, 2010 1:25 pm
by dannyvanneijenhoff
YES,
Only changed, C:\Program Files to C:\Program Files(x86) , 3 times
thanks