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.

TMS320F28069: USB Serial Dev Example - Only See One Print - Then Nada

Part Number: TMS320F28069
Other Parts Discussed in Thread: C2000WARE,

Hello All,

I've attached a screen cap here:

You can see in the Extra Putty window - I only get one line of what's being printed out from the target.

I've checked and that data stream is running - I should see a line of text every second; but I only get the initial line.

Also, I was wondering; when doing a search on this - a prior post implied the unused debugger USB channel was being used; I'm assuming that was meant for debugger stdio and not the USB-DEV I/O.

Note I have the USB-Bulk example working but had rather not use that if I don't have to.

Another question - is uartStdio and usb_dev_serial compatible?  Seems a lot of the same calls are used - and I wasn't sure if I could use the uartprintf() command with the usb_dev_serial example without having to modify some code.

Thanks,
John W.

  • John,

    I believe the UART utility code should work fine with the usb_dev_serial code. You just need to make sure your SCI is configured properly, I suppose.

    I am not sure why you would only see the print once. Can you run the original usb_dev_serial example in C2000Ware without modifying it? It should work properly in C2000Ware. The SCI input will out from the USB port, and visa versa.

    sal
  • Make sure you are handling the USB from your application in a similar way to the original example. For more information see the USBL_UG.pdf in C2000Ware. This is the User Guide.

    sal
  • Sal,

    I will take a look.

    One of the issues I've had 'migrating' from Control-Suite to 'Ware' is that it's unclear of the targets the code is supposed to run on vs. it being crystal clear under 'Ware'.

    I don't know what target the usb-dev-serial example is supposed to run on other than the TMS320F28069. I will dig in the docs and look - and then the example just seems to stream vs. actually try to send and receive anything.

    At least the usb-bulk example is a real example and a lot more straightforward. Thus far; getting the driver to load correctly and seeing one string come out of the usb-dev-serial example is about all I've been able to do.

    I will see if I can decode which board the usb-dev-serial example actually targets; and see if I can get anything that is actually useful out of that.
    I have most of the TMS320F28069 boards here minus probably the latest Launch Pad board.

    Thanks,
    John W.
  • Hello Sal,

    I think you meant the USB Bootloader Guide - I didn't find anything I thought was relevant there - but in the F2806x Peripheral Driver Library - which I've looked at before - has pertinent information; but I still don't see where I've done anything incorrect.

    I did try the example on the TMS320F28069 Control Stick - but it just loads the driver since there's really nothing driving the UART.

    If there's something specific in the bootloader guide you're pointing out - can you please be more specific and tell me a page number?

    Regards,
    John W.
  • Hi John,

    What in C2000Ware is unclear about the examples?

    The examples are here: C:\ti\c2000\C2000Ware_1_00_03_00\device_support\f2806x\examples\c28

    I was referencing the USBlibrary User Guide here: C:\ti\c2000\C2000Ware_1_00_03_00\libraries\communications\usb\f2806x\docs

    Have you been able to get the usb_dev_serial example working out of the box? Meaning you have not modified it and it is working properly.

    Regards,
    sal
  • Sal,

    OK - You Said:

    "For more information see the USBL_UG.pdf in C2000Ware. This is the User Guide."

    Explain, in detail, what that means please.

    To me, that means you were pointing me to the USB Bootloader Guide.

    As I pointed out in my post:

    "but in the F2806x Peripheral Driver Library - which I've looked at before"

    I've already looked there.

    From my OP - I believe the rest has been answered.

    Also, I've posted:

    "I did try the example on the TMS320F28069 Control Stick - but it just loads the driver since there's really nothing driving the UART."

    Regards,
    John W.
  • Sal,

    I've attached the Control Stick workspace I have so you can see that it is just the demo that's in the C2000 Ware v 1.03 and been targeted for the TMS320F28069 Control stick (usb_dev_serial).

    Thanks,

    John

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/171/new_5F00_wsControlStick.7z

  • Sal,

    On my terminal - I pressed a space and stopped the debugger - you can see a Hex 20 in the buffer - so I know that it's working on the TX side as well; here's a screen cap:

    Thanks,

    John

  • Is there a chance the TX/RX IRQ remap is backwards?

  • Hi John,

    I was referring to the document here: C:\ti\c2000\C2000Ware_1_00_03_00\libraries\communications\usb\f2806x\docs\F2806x_USBL_UG.pdf

    This is the F2806x USB Library User's Guide

    I am not very familiar with the controlStick. Can you clarify what the issue is you are having, please?

    sal
  • Sal,

    I built the example with the '69 ISO Control Card (pics attached) - and I got chars going out both ends.  Note I am running this on Win10 Pro Test Mode (doesn't require signed USB drivers) Build 16299.rs3_release170928-1534.

    But, I am still having an issue with the target board I have.  If I put a breakpoint on the ReadUARTData(); command in USBUARTRXIntHandler() upon startup; and then disable it - then for some reason it works.  I am not sure just why yet.  All of the IRQ flags; etc. look OK.

    Thanks,
    John W.

  • Hi John,

    I am not sure why right now why that would effect anything.

    What is the behavior you are seeing when it is not working correctly.

    Your board setup looks correct to me.

    sal