spi can not compile.
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
.Please help me. thank youspi can not compile
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: spi can not compile
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.
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel