3 Replies Latest reply on Nov 4, 2012 9:44 AM by user_1377889

    USBUART doesnt work

    akash.gupta

      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.

        • 1. Re: USBUART doesnt work
          user_1377889

          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

          • 2. Re: USBUART doesnt work
            akash.gupta

            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!

            • 3. Re: USBUART doesnt work
              user_1377889

              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