USB - Slave Compile Problem
Posted: Sun Jun 04, 2017 7:59 pm
Hi Everyone
I have just tried experimenting with the USB slave component and ran into this problems - it will not compile or download to programer.
FC7 - V7.2.1.4
Update - Latest_220517 (22 May 2017)
Windows 10 - 1703
EB006-30-9
EB055-30-1 (own design copied from Matrix design)
EB005-30-4 (own deign copied from Matrix design)
Here is a very simple program I tried without success, just to eliminate any complex problem, it simply tries to initialise the component. Here is the Compiler message:-
Kind
Regards
Dave
I have just tried experimenting with the USB slave component and ran into this problems - it will not compile or download to programer.
FC7 - V7.2.1.4
Update - Latest_220517 (22 May 2017)
Windows 10 - 1703
EB006-30-9
EB055-30-1 (own design copied from Matrix design)
EB005-30-4 (own deign copied from Matrix design)
Here is a very simple program I tried without success, just to eliminate any complex problem, it simply tries to initialise the component. Here is the Compiler message:-
Any help would be greatly appreciated.Target folder: C:\Users\Dave\DOCUME~1\Projects
Source name: C:\Users\Dave\Documents\Projects\USB Slave FC7 2017 V1.fcfx
Title:
Description:
Device: PIC.18F.18F4550
Generated by: Flowcode v7.2.1.4
Date: Sunday, June 04, 2017 19:29:50
Users: 1
Registered to: XXXXXXXX
Licence key: 123456
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe --chip=18F4550 "USB Slave FC7 2017 V1.c" --MSGDISABLE=359,1273,1388
Microchip MPLAB XC8 C Compiler (Free Mode) V1.41
Build date: Jan 24 2017
Part Support Version: 1.41
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration
Employing 18F4550 errata work-arounds:
* Corrupted fast interrupt shadow registers
USB Slave FC7 2017 V1.c:
165: DATA_PACKET INPacket;
^ (374) missing basic type; int assumed (warning)
^ (372) "," expected
166: DATA_PACKET OUTPacket;
^ (374) missing basic type; int assumed (warning)
^ (372) "," expected
USB Slave FC7 2017 V1.c: IsTxBusy()
237: return (bd1in.stat & (1 << UOWN));
^ (192) undefined identifier "bd1in"
^ (196) struct/union required
^ (192) undefined identifier "UOWN"
USB Slave FC7 2017 V1.c: FCD_07281_USB_Slave1__SendString()
340: INPacket._byte[FCL_IDX] = FCL_DATA[FCL_IDX];
^ (196) struct/union required
(981) pointer required ^
(981) pointer required ^
358: USBGenericInHandle = USBTransferOnePacket(1,1,(BYTE*)&INPacket,FCL_LENGTH);
(192) undefined identifier "BYTE" ^
(195) expression syntax ^
(187) too few function arguments ^
(194) ")" expected ^
(195) expression syntax ^
USB Slave FC7 2017 V1.c: FCD_07281_USB_Slave1__GetString()
389: FCR_RETVAL[FCL_IDX] = OUTPacket._byte[FCL_IDX];
(196) struct/union required ^
(981) pointer required ^
(981) pointer required ^
USB Slave FC7 2017 V1.c: FCD_07281_USB_Slave1__RunSlaveService()
431: ();
^ (195) expression syntax
536: USBGenericInHandle = USBTransferOnePacket(1,1,(BYTE*)&OUTPacket,1);
(192) undefined identifier "BYTE" ^
(195) expression syntax ^
(187) too few function arguments ^
USB Slave FC7 2017 V1.c: 536: too many errors (21)
(908) exit status = 1
(908) exit status = 1
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe reported error code 1
FINISHED
Kind
Regards
Dave