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?
Autoclose turned off (UsbSerial init error)
Moderator: Benj
-
- Posts: 364
- Joined: Fri Jan 26, 2018 12:30 pm
- Location: South Australia
- Has thanked: 45 times
- Been thanked: 62 times
- Contact:
Autoclose turned off (UsbSerial init error)
- Attachments
-
- Mega+UsbSerial_1.fcfx
- (7.03 KiB) Downloaded 162 times
- 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)
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 364
- Joined: Fri Jan 26, 2018 12:30 pm
- Location: South Australia
- Has thanked: 45 times
- Been thanked: 62 times
- Contact:
Re: Autoclose turned off (UsbSerial init error)
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
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
-
- Posts: 364
- Joined: Fri Jan 26, 2018 12:30 pm
- Location: South Australia
- Has thanked: 45 times
- Been thanked: 62 times
- Contact:
Re: Autoclose turned off (UsbSerial init error)
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.
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.
- 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)
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel