USB - Slave Compile Problem

An area to discuss 8-bit PIC specific problems and examples

Moderator: Benj

Post Reply
johnsondav
Posts: 188
Joined: Thu Jun 28, 2012 7:29 pm
Location: Durham
Has thanked: 86 times
Been thanked: 186 times
Contact:

USB - Slave Compile Problem

Post by johnsondav »

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.
USB Slave FC7 2017 V1.fcfx
(8.88 KiB) Downloaded 202 times
Here is the Compiler message:-
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
Any help would be greatly appreciated.

Kind
Regards
Dave

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: USB - Slave Compile Problem

Post by LeighM »

Hi,
Yes, sorry, we currently have a few issues with USB and the new compiler and are working to resolve them as soon as possible.
Please also see this thread...
http://www.matrixtsl.com/mmforums/viewt ... 68&t=18889

johnsondav
Posts: 188
Joined: Thu Jun 28, 2012 7:29 pm
Location: Durham
Has thanked: 86 times
Been thanked: 186 times
Contact:

Re: USB - Slave Compile Problem

Post by johnsondav »

Hi LeighM

Thank you for your quick reply, very much appreciated. Not a problem though, I was just investigating its possibilities. I will wait until fixed.

Regards
Dave

Post Reply