Compile Error USB Slave Component

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

Moderator: Benj

Post Reply
User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Compile Error USB Slave Component

Post by QMESAR »

Hello Team.
I am having a syntax error report when I compile this simple example Flowchart with a PIC18F4550 Selected as device.
1.JPG
1.JPG (25.13 KiB) Viewed 3821 times
The flow chart contains only a main and the slave service makro attached my flowchart

Please help me out :D
I am still having problems to install the driver on WIN10 however it worked in WIN7 (I am using WIN7 machine at the moment)
USB_Slave.rar
(77.39 KiB) Downloaded 206 times

User avatar
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: Compile Error USB Slave Component

Post by Benj »

Hi Peter,

This should work correctly now. The Slave Macro property was empty, I've now populated this with the slave_service name of your service macro.
Test_USB_Slave.fcfx
(9.08 KiB) Downloaded 208 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Compile Error USB Slave Component

Post by QMESAR »

Hi Ben.

I am sorry I am trying to find my way through this :D
Thank for the updated Flowchart however it now complains that the RunsSlaveservice ()has to few parameters :oops:
I hope soon I will be off your neck with this !
1.png
(21.98 KiB) Downloaded 2136 times

User avatar
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: Compile Error USB Slave Component

Post by Benj »

Hi Peter,

Aha yes sorry your slave service macro has a byte parameter so this also has to be specified in the component properties.
USBSlave.jpg
USBSlave.jpg (94.94 KiB) Viewed 3815 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Compile Error USB Slave Component

Post by QMESAR »

Hi Ben,
Thank you so much, :D
The issue is solved and I have understood the problem :D

Post Reply