SPI MASTER

Use this section to discuss your embedded Flowcode projects.
Post Reply
KARLGROSS
Posts: 11
http://meble-kuchenne.info.pl
Joined: Sat Dec 19, 2020 11:53 pm
Been thanked: 1 time

SPI MASTER

Post by KARLGROSS »

Hi,
I am working with SPI.
We are getting compile errors as listed below. Any thoughts? we just have one item in the flowchart to initialize.

Target folder: \\CEI-SERVER\common share\Mike R
Source name: \\CEI-SERVER\common share\Mike R\clock_test1.fcfx
Title:
Description:
Device: PIC16.33E.BL0032
Generated by: Flowcode v10.1.0.38
Date: Friday, September 13, 2024 13:29:32
Users: 1
Registered to: KARLGROSS (89238304)
Licence key: AEDD38
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat "clock_test1" "\\CEI-SERVER\common share\Mike R\" "33EP256MU806"
'\\CEI-SERVER\common share\Mike R'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.

Y:\Mike R>xc16-gcc -c -mcpu="33EP256MU806" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\..\support\h" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\" -std=gnu99 "clock_test1".c -o "clock_test1".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\includes.c:1285:0,
from \\CEI-SERVER\common share\Mike R\clock_test1.h:117,
from clock_test1.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_SPI.c: In function 'FC_CAL_SPI_Master_Init_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_SPI.c:232:2: error: 'tris' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_SPI.c:232:2: note: each undeclared identifier is reported only once for each function it appears in
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_SPI.c: In function 'FC_CAL_SPI_Master_Uninit_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_SPI.c:357:2: error: 'tris' undeclared (first use in this function)
clock_test1.c: In function 'main':
clock_test1.c:452:2: warning: 'return' with a value, in function returning void

Error returned from [xc16-gcc.exe]

C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 0x1

Autoclose turned off


FINISHED

mnfisher
Valued Contributor
Posts: 1518
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 138 times
Been thanked: 729 times

Re: SPI MASTER

Post by mnfisher »

Please upload a flowchart that demonstrates this. It's hard to guess at the cause otherwise (pins not set?)

Martin

Post Reply