This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB setup

Other Parts Discussed in Thread: CONTROLSUITE

Hi 

I am using F28377xD .  I would like to know if the below given steps are right for setting up my usb interface on the card , as I am still waiting for the USB female to mini wire and am a bit confused with the process required to be done . 

1) Put all the J1- J7 jumpers on pins 1 and 2. 

2) Turn on Switch Position 2 on A:SW1 . 

3) Connect USB with a hex file to the microcontroller card and run usb_dev_bulk_cpu01 and the program would convert from  lower to upper case and vice versa ?

I do not have the mentioned file  'usb_bulk_example'  or a tools directory to know if this is required. Will I need this ?

Kind Regards

  • Anish, 

    There are some issues with the F28377D USB examples that I am currently fixing, but I do believe the usb_dev_bulk example is working.  The steps you've mentioned are correct.

    After loading the embedded application to the controlcard, running it, and connecting the controlCARD to the PC with a micro USB cable you'll need to run the usb_bulk_example in the tools folder.  This will allow you to send and receive characters to the controlCARD over USB.  It is in this program you will see the case of the characters changed.

    BR,

  • Hi Trey ,

    Thanks for the reply. 

    The tools folder does not exist  for me only for this device. Would you be able to tell me how I could get this folder please .

  • Anish,

    The tools folder was left out of the the original v100 release, but is present in the v110 release.  Try updating your controlsuite to get the latest updates.  After you do you'll find the tools folder inside the F2837xD_common folder.

    BR,

  • Thanks . 

    Will update the control suite then and try it once my USB cable is here .

    Regards

  • Hi 

    I have come back to trying this out as i have my USB cable now . I would like to ask you if the following program works or please tell me where I am going wrong.

    I have loaded the example program usb_host_msc_cpu01   into my microcontroller . 

    I then connect my USB stick onto the microcontroller. So I expect it to atleast power up my USB stick . But it dosent do so . g_eState and g_eUIState from the program returns back STATE_NO_DEVICE in my expressions window. 

    I have connected J2-J7 on pins 1-2 . And not changed any of the switches. So why am I not receiving an enable signal through J6 . (It shows 0V) 

  • Anish,

    I checked the example and it looks like there are two small bugs in the example.

    On line 1312 in usb_host_msc.c:

    USBStackModeSet(0, eUSBModeHost, ModeCallback);

    needs to be changed to 

    USBStackModeSet(0, eUSBModeForceHost, ModeCallback);

    On line 611 in uart.c:

    if(HWREGH(ui32Base + UART_O_FFTX) && UART_FFTX_SCIFFENA)

    needs to be changed to 

    if(HWREGH(ui32Base + UART_O_FFTX) & UART_FFTX_SCIFFENA)

    Try making these changes, compile, reload, and the example should work.  I apologize for the trouble.  These issues will be fixed in the next controlSUITE release.

    BR,

  • Hi 

    Thanks . 

    The below part is not in my file , so guess wasnt necessary  : 

    if(HWREGH(ui32Base + UART_O_FFTX) && UART_FFTX_SCIFFENA)

    needs to be changed to 

    if(HWREGH(ui32Base + UART_O_FFTX) & UART_FFTX_SCIFFENA)

    I am able to read from the usb now . Could you also let me know out of interest how long it may take for the next ControlSuite to be out.

    Kind Regards

    Anish 

  • Anish,

    It will be released around the end of August and will contain numerous updates as well as a few new things.

    BR