"usb_serial_config.h": No such file or directory

Moderator: Benj

Post Reply
Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

"usb_serial_config.h": No such file or directory

Post by Brendan »

Hi Guys.

I had occasion to reinstall Flowcode 8 on a new work machine (Windows 10).

All went well and everything appeared to work, until I tried to use the USB Serial component when programming ECIO40P16. In short, build termination due to the following error report:
Device: PIC16.33E.ECIO40P16
Generated by: Flowcode v8.0.0.6
Date: Tuesday, February 11, 2020 16:06:30
Users: 1
Registered to: **********
License key: **********
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat "***project file name***" "***path to project file***" "33EP256MU806"

***path to project file***>xc16-gcc -c -mcpu="33EP256MU806" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\Flowcode\Common\Compilers\pic16\batchfiles\..\support\h" -I"C:\PROGRA~2\Flowcode\Common\Compilers\pic16\batchfiles\" -std=gnu99 "BT Board Connections Test 110220A".c -o "BT Board Connections Test 110220A".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
BT Board Connections Test 110220A.c:293:58: fatal error: ../../../CAL/PIC16BIT/USB/usb_serial_config.h: No such file or directory
compilation terminated.

Error returned from [xc16-gcc.exe]

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

FINISHED
Now I know this has reared its head before, and a review of an old thread (related to FC7) suggested a fix by updating components from within FC7. However, I have updated everything before, so unsure whether this explains the zero updates when attempted.

Do we have a fix/fudge/anything that I can do to resolve this please? I tried a fresh install on an entirely different Win10 machine with precisely the same issue.

Many thanks,
Brendan

Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

Re: "usb_serial_config.h": No such file or directory

Post by Brendan »

...Incidentally, it's a Windows 10 64-bit version.

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: "usb_serial_config.h": No such file or directory

Post by Benj »

Hi Brendan,

Please can you try a full database update and see if that helps at all.
https://www.matrixtsl.com/wiki/index.ph ... _all_files

Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

Re: "usb_serial_config.h": No such file or directory

Post by Brendan »

Thanks for getting back so quickly Ben - Entirely appreciated.

Interestingly, when I try this with the full database option enabled, I get this...
FC8_No_Updates.png
(10.4 KiB) Downloaded 1051 times
I'm guessing I'm being blocked by system policies or something?

Ideally, if you have some other means by which I can install the necessary files that would be perfect. Alternatively, should I need to contact IT, please advise what I should request to enable full online database access from within FC8.

Thank you again,
Brendan

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: "usb_serial_config.h": No such file or directory

Post by Benj »

Hello Brendan,

Hmm that's interesting. I don't think you need anything special for the update system to work but I'll investigate this for you.

Here are the latest CAL files you can try. You need to extract to your "C:\ProgramData\MatrixTSL\FlowcodeV8\CAL" folder.
PIC16BIT.zip
(310.76 KiB) Downloaded 194 times

Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

Re: "usb_serial_config.h": No such file or directory

Post by Brendan »

Thank you Ben - Very much appreciated.

Following your message I noted that the confirmed directry under root was hidden, so I un-hid it and unzipped the provided files to the directed folder - noting that the same number of files existed (and usb_serial_config.h was in there) but I over-wrote them all anyway.

Re-performing just a Hex build in FC8 confirmed the issue was still there, and same report as before.

Further inspection of the copied files revealed the following...
CAL_Files_Unblock.png
(17.12 KiB) Downloaded 1033 times
...so I manually unblocked all files and tried again, but still no joy.

I then explored a possible authenticated license issue (e.g. no updates database, and compiler error "Options have been disabled due to restricted license. Visit http://www.microchip.com/ to purchase a new key). I re-authenticated the software and confirmed licenses in FC8, but still no joy :(
FlowcodeLicenses.png
(29.93 KiB) Downloaded 1033 times
I'll see if I can think of anything else to try, and report back if I should stumble on an answer.
Hmmm... Odd one !

Many thanks,
Brendan

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: "usb_serial_config.h": No such file or directory

Post by Benj »

Hi Brendan,

The only other thing I can think of is the component file itself. This needs to live in the "C:\ProgramData\MatrixTSL\FlowcodeV8\Components" folder.
USB_Serial.fcpx
(20.4 KiB) Downloaded 182 times
I'm currently using the USB serial component on a 16-bit PIC so I know it certainly is working here.

If still no joy then please can you post your project file just in case it's something to do with that.

Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

SOLVED: Re: "usb_serial_config.h": No such file or directory

Post by Brendan »

Thanks Ben - You're a star !!! :D

I replaced the existing USB_Serial.fcpx file with that you kindly provided and the project built straight off the bat without a hitch.

I suspect that FC8 would have updated to latest if the updates database worked. If, in the meantime, you have any thoughts on that, I'll be very happy to give it a shot.

Thank you again!

Brendan

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: "usb_serial_config.h": No such file or directory

Post by Benj »

Hi Brendan,

Brilliant, glad it's working correctly for you now.

I beleive the port for the update system is 80 so you may have to provide this if your network is locked down in terms of what apps can access the internet.

Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

Re: "usb_serial_config.h": No such file or directory

Post by Brendan »

Thanks again Ben - I've no doubt you're on the money (again :) )

I'll report back once I've contacted IT to open port 80 for Flowcode.

Best regards,
Brendan

Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

Re: "usb_serial_config.h": No such file or directory

Post by Brendan »

Just to update - Sorry it's been a while :oops:

Port 80 was reportedly always open, so given that I have the same license on my personally-owned machine I arbitrarily copied general and updated files/directories from my personal computer to my work computer. The only difference between machines being that my personal computer is running Win7(x64) and the work computer Win10(x64).

Voila! My work machine could then see the updates database and update accordingly.

Very odd, though I'll stop short of suggesting further investigation as very aggressive security policies attach to my work computer, whereas I have NOD32 security software on my personal computer. Nonetheless, possible clues in this perhaps?

All the best,
Brendan

Post Reply