USBFS 2.70 -> What happened to USBUART_Start(0, USBUART_1_3V_OPERATION);

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

cross mob
Anonymous
Not applicable

 The document describing USBFS 2.70 no longer has an API entry for USBUART_Start

   

And the command

   

 /* Start USBFS Operation with 3V operation */

   

USBUART_1_Start(0, USBUART_1_3V_OPERATION);

   

no longer compiles in Creator 3.0. USBUART_1_3V_OPERATION is not recognized.

   

WHY? HOW DO WE INITIALIZE A USBUART ANYMORE?

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

I do not have any problems compiling

   

    USBUART_Start(0,USBUART_5V_OPERATION);
 

   

I am using Creator 3.1, can you have the name mis-spelled? If all fails, post your complete project here:  To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.



Bob
 

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

The current version of the USBFS (that contains the USBUART too) component is 2.8. Both data sheets for 2.80 and 2.70 contain the USBFS_Start() function, and both mention the USBFS_3V_OPERATION constant.

   

Did you try code completion - may its just a mis-spelling? Did you look at the generated code, it should have the constant?

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received
    I had this one time.   
   
    It seems it happens when copying from old projects.   
   
    Externally, the text seems to be correct, but does not compile.   
   
    I just copy the text from the right file again.   
   
    for example:  of USBUART_1.h line 353:   
   
        
   
    PSoC Creator 3.0 SP2 (3.0.0.3140)   
   
    USBUART_1.h of USBFS 2.70   
   
    ..................   
   
    353        #define USBUART_1_3V_OPERATION               (0x00u)   
   
    354        #define USBUART_1_5V_OPERATION               (0x01u)   
   
    355        #define USBUART_1_DWR_VDDD_OPERATION         (0x02u)   
   
    .................   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I have red (somwhere) that it might be necessary to open the component and close it normally to have the correct configuration generated. This did not only apply to USBFS, as far as I remember there have been other components, too.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

 Bob,

   

That is really strange. When I search for USBUART_Start in the document (2.70), it comes up twice but neither one is a definition. Are we to assume USBFS_Start is the substitute?

   

You were right though. I needed the line to read USBUART_Start(0, USBUART_3V_OPERATION). The "_1" was not used in my case...

   

Thanks,

   

Bill

0 Likes