Autoclose turned off (UsbSerial init error)

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
viktor_au
Posts: 342
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 43 times
Been thanked: 60 times
Contact:

Autoclose turned off (UsbSerial init error)

Post by viktor_au »

Hello

After update I couldn't use the Usb Serial component.

If I init the component, the compiling errors are:
error: config.h: No such file or directory
error: lib_mcu/usb/usb_drv.h: No such file or directory
error: usb_specific_request.h: No such file or directory
error: uart_usb_lib.h: No such file or directory

How can I fix the problem?
Attachments
Mega+UsbSerial_1.fcfx
(7.03 KiB) Downloaded 97 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: Autoclose turned off (UsbSerial init error)

Post by Benj »

Hello,

The Arduino Mega does not have a USB peripheral it instead has a UART to USB external IC. So to access the USB communications you need to use the UART component set to Channel 1.

viktor_au
Posts: 342
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 43 times
Been thanked: 60 times
Contact:

Re: Autoclose turned off (UsbSerial init error)

Post by viktor_au »

Thank you for your answer Benj

I didn't have any problems using USB Serial with Mega until I made an update.

Quesion
How can I change the link to AVR Tool chain?


Viktor

viktor_au
Posts: 342
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 43 times
Been thanked: 60 times
Contact:

Re: Autoclose turned off (UsbSerial init error)

Post by viktor_au »

Back to normal after

Removed FC8 by using the installation program FlowcodeV8_Installer->Remove.
Removed the compiler folder: C:\Program Files (x86)\Flowcode
Removed registry record for FC8: Computer\HKEY_CURRENT_USER\SOFTWARE\MatrixTSL\FlowcodeV8
---------------
Installed FC8 (2017)
Registered again (manual)
Installed the compiler.
Checked the registry new record ->OK. Exported the registry.
Inserted the Usb Serial component.
Did the initialisation.
Run compiler.
HEX file creation successful!
------------------------
Checked with Sim7600 (port to com10)
AT = OK
Module->OK
Signal quality ->OK
etc
-----
No problem for Mega working with Usb serial component.
PS
Looks like I will use this 2017 FC8 version for a while and stop updating the program.

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: Autoclose turned off (UsbSerial init error)

Post by Benj »

Hello,

The version you are reverting back to is maybe before we added USB support for AVR devices. Hence no compilation error because there is no code being generated?

The Arduino Mega does not have a USB peripheral and so the component at best will do nothing and at worst will cause compilation errors.

The UART component is what you're after.

viktor_au
Posts: 342
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 43 times
Been thanked: 60 times
Contact:

Re: Autoclose turned off (UsbSerial init error)

Post by viktor_au »

Thank you Ben

Post Reply