Page 1 of 1

spi can not compile

Posted: Wed Feb 14, 2018 1:03 am
by nnnnff
spi can not compile.
spi.fcf
(21.97 KiB) Downloaded 285 times
.Please help me. thank you

spi.c
Starting preprocessor: C:\PROGRA~2\Flowcode\v5\Tools\boostc\pp.exe spi.c -i C:\PROGRA~2\Flowcode\v5\Tools\boostc\include -d _PIC16F886 -la -c2 -o spi.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX

spi.c(296): "Chip does not have SPI capability"

1 errors detected
Error: preprocessing error

failure
Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:


If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.


FINISHED

spi can not work

Posted: Wed Feb 14, 2018 1:39 am
by nnnnff
Spi can work well in v4; But it doesn't work very well in v5. Why is that?

Re: spi can not compile

Posted: Wed Feb 14, 2018 11:46 am
by Benj
Hello,

Hmm I'm not sure why this isn't working correctly. Looks like maybe a device specific bug.

v5 is now well out of support but you can add the following to your supplementary code via the project options to get the program to compile.

Code: Select all

#define MX_SPI
#define SPI_CKE 0
#define SPI_SSPM 0
#define SPI_SMP 0
#define SPI_CKP 0