Unable to program a PIC18F2685 in ICD mode
Posted: Mon Jan 26, 2015 12:22 pm
Hi,
I have tried to program the above chip using the ICD mode and the compiler comes up with errors. If it is programmed normally, switching off the ICD mode all is ok. I have tried the using the same piece of test code (toggling an output in a loop) to program a PIC18F4685 in ICD mode and that compiles ok. I have a tried in Flowcode 6 too with the same results. Any help would be appreciated.
Thanks
C:\Program Files\Flowcode\v5\Tools\boostc\boostc_pic18_flowcode.exe -v -t PIC18F2685 "a.c"
BoostC Optimizing C Compiler Version 7.04 (for PIC18 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited
a.c
Starting preprocessor: C:\PROGRA~1\Flowcode\v5\Tools\boostc\pp.exe a.c -i C:\PROGRA~1\Flowcode\v5\Tools\boostc\include -d _PIC18F2685 -la -c2 -o a.pp -v -d _BOOSTC -d _PIC18 -d _CHAR_INDEX
......................
C:\Program Files\Flowcode\v5\FCD\..\CAL\PIC\PIC_CAL_ICD.c(649:2): error: unknown identifier 'trise'
C:\Program Files\Flowcode\v5\FCD\..\CAL\PIC\PIC_CAL_ICD.c(649:2): error: invalid operand 'trise'
C:\Program Files\Flowcode\v5\FCD\..\CAL\PIC\PIC_CAL_ICD.c(649:8): error: failed to generate expression
a.c success
failure
Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:
I have tried to program the above chip using the ICD mode and the compiler comes up with errors. If it is programmed normally, switching off the ICD mode all is ok. I have tried the using the same piece of test code (toggling an output in a loop) to program a PIC18F4685 in ICD mode and that compiles ok. I have a tried in Flowcode 6 too with the same results. Any help would be appreciated.
Thanks
C:\Program Files\Flowcode\v5\Tools\boostc\boostc_pic18_flowcode.exe -v -t PIC18F2685 "a.c"
BoostC Optimizing C Compiler Version 7.04 (for PIC18 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited
a.c
Starting preprocessor: C:\PROGRA~1\Flowcode\v5\Tools\boostc\pp.exe a.c -i C:\PROGRA~1\Flowcode\v5\Tools\boostc\include -d _PIC18F2685 -la -c2 -o a.pp -v -d _BOOSTC -d _PIC18 -d _CHAR_INDEX
......................
C:\Program Files\Flowcode\v5\FCD\..\CAL\PIC\PIC_CAL_ICD.c(649:2): error: unknown identifier 'trise'
C:\Program Files\Flowcode\v5\FCD\..\CAL\PIC\PIC_CAL_ICD.c(649:2): error: invalid operand 'trise'
C:\Program Files\Flowcode\v5\FCD\..\CAL\PIC\PIC_CAL_ICD.c(649:8): error: failed to generate expression
a.c success
failure
Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors: