USBUART doesnt work

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Whenever I call USBUART_Stop() even before starting the USB UART component that is USBUART _Start() the , I am seeing that the component doesn't even work.

   

I noticed that USBUART _CLK_Enable bit doesn't get set even if it is assigned 1.

   

You can reproduce this issue by opening the simple USBUART example project that comes with the creator and just call USBUART _Stop() before calling USBUART _Start() and then you can see thyat USBUART_Clk_Enable bit not set and also enumeration doesn't happen .

   

Can you tell me what goes wrong if i call Stop before even starting the component.

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Since stopping the component requires some initialization having been performed I am not very surprised that this will not work as you obviously expect.

   

Since there is no need to stop the (or any) component before starting it the question arises why you do not keep to the suggested order of initializing. If you still need to stop the component, call UART_Init() before UART_Start();

   

 

   

Bob

0 Likes
Anonymous
Not applicable

But I didn't expect that the component will never work atall after calling STOP and then START.

   

Initialising USBUART in the begginning will not cause any problem in my project, but I am wondering whats going wrong!

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Well, if you never ever initialized your component what do you expect to happen when you try to stop it? You never gave it a chance to set the values you defined in the configuration-dialog which will be saved when you stop it, so what is going to be saved?

   

Bob

0 Likes