USB Serial Component and DP PUP

Post and discuss new components that you have created.
Post Reply
User avatar
Nico595
Posts: 76
http://meble-kuchenne.info.pl
Joined: Tue Jul 04, 2023 4:17 pm
Has thanked: 16 times
Been thanked: 3 times

Flowcode v10 USB Serial Component and DP PUP

Post by Nico595 »

Hello,


I added the USB Serial component in my project but I have no communication between the device and the computer.
USB Serial Initialise macro return 0 but Windows tell "unknown device descriptor request failed".
I installed Flowcode USB Serial driver in Windows.
I have USB Init success with return = 0, even if the USB cable is disconnected.

I designed my USB Serial driver in the FC5 project but I want try with the USB Serial component from FC10.

My hardware don't use the DP_PUP pin and don't use the USB detect mode. USB stand by mode is disable in my FC5 USB Serial component. DP_PUP and DM_PUP pins are disable in the boot of the project. DP resistor is always connected because I use all PIO of the UC.

Can you tell me if the detect function and the stand by mode can be removed in the FC10 USB Serial component ?
USB Serial Component available is it on ARM or it's only simulating component ?




Thank you.

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: USB Serial Component and DP PUP

Post by BenR »

Hello,

Please could you post your project as an attachment and we will investigate. It's normally a configuration problem as the USB requires specific timings to function correctly.

User avatar
Nico595
Posts: 76
Joined: Tue Jul 04, 2023 4:17 pm
Has thanked: 16 times
Been thanked: 3 times

Re: USB Serial Component and DP PUP

Post by Nico595 »

Hi Ben,

Thank you for your answer.
If I understand good, USB component would be functional for ARM AT91 and STM32 in FC10.
It's a good news, once again if we can customise information about UsbConstructor with the FC10Pro.

I transferred my FC5 USB Serial Component the last Friday. It's probably the best solution for me and my project. I have some interrupts with priority level and some component macros from FC10 can't work in background.

It's the reason why I created C code areas to design user components in my project: PWM, DSP, UART ...
For example the ReceiveChar macro of the UART component of FC10 freeze my project. As you write, it's probably conflict between timer counters and Interrupts. Would be a good idea add "TC Number" and "Priority Interrupt Number" in the Propriety of the Components cadenced by TC. Or the problem is may be the time out of the ReceiveChar macro, I don't know. I tried to customise the UART source code component from Wiki, without success.

With the C code of my user component I can simply use the receive buffer of the UART to use the data. Of course I defined my TC and my Priority Level to obtain a perfect work of the UC.

With the FC10 I can now design user components without limit, so it's better than my FC5 and very easy to add a C Code user component.
Maybe, some things could be improved about user components like the placement of the user component macros in C file of the project. But the problem is may be the placement of global variable declarations in C file project, may be better at the top of the C file project.

My customised USB Serial component work fine with FC10 today. I am happy even if I delayed some orders from my customers to fix some functions of this component with FC10.

I have a new project with STM32, I will try your USB component on the dev board and I come back to you if I have the same problem.
Please, can you tell me if UsbConstructor and .inf driver are customisable with the FC10 USB Serial and FC10 USB HID Component ?

Thank you,
Best.
Nicolas.

Post Reply