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.
Hello,
I have the RM48 Hercules™ ARM® Safety MCU Development Kit (HDK) with Cortex R4 Rm48L950. I am using Code Composer Studio 4.2. Do you have a working sample demonstrating how to use the USB Device (not the sci usb for debugging). I want to communicate with the PC over the USB Device (J16, USB Device Connector).
Hi Helmi,
I have forwarded your request to the concerned team. We will get back to you as soon as possible.
Best Regards
Prathap
Hello,
I have the same board, and I want to communicate with the PC over the USB Device too
Do you have news about sample code ?
No Not yet. I am waiting since the last friday. I hope we receive an answer soon.
I apologize for the delay in responding. There are two options coming for examples of a USB device stack support on the RM48HDK hardware supporting.
1. Micrium uC/OS is developing an example for their RTOS using their USB stack and I will check on the latest schedule. This should be available very soon.
2. TI is working on a general purpose, RTOS-less example. This project has a release timeline of early March and will be released to the Hercules wiki site: www.ti.com/hercules-wiki.
Sorry for the delay in making this post.
The USB stack release is included in Halcogen 3.01.00 which should be posted on the TI web about June 11th. www.ti.com/tool/halcogen
Here’s the scope for USB in HALCoGen 3.01.00 release:
With the HALCoGen release, we will also have a Wiki page (www.ti.com/hercules-wiki) with description of the design & usage of these components.
If you need further details on the implementation or have further requests feel free to post those here.
Hi,
Just wondering about point number 3. Is the example application to demonstrate the usage of the CDC Class available? If yes, where can I find it?
Thanks,
Scott, USB CDC Class is now available as a part of HALCoGen 3.01.00 release. For details of the stack please visit http://processors.wiki.ti.com/index.php/HALCoGen_USB_Device_-_driver_%26_CDC_Class
For downloading the latest version of HALCoGen you can use the Auto-Update feature or visit http://www.ti.com/tool/halcogen.
Regards,
Pramod
**************************UPDATE***************************************
I tested it with the original CDC example and it happens the same. Does this mean this is the default behavior?
Which interrupts should I enable? Step seven instructs to "Step 7: Enable the USBD Interrupts on ‘VIM Channel 63-94’ tab " There is not such thing as VIM Channel 63-94 tab in HalCoGen 3.01 but I am assuming it refers to VIM Channel 64-95 in this version. The image is incomplete and does not show enabling USB_DSWAKERQON and USBRESETO. In addition, USB_IRQISOON is not market as enabled. I have ALL the 5 USB interrupts enabled as in step 8 I see that all are directed to serviceIrq routine. Please correct me if I am wrong.
********************END OF UPDATE**********************************
Hi,
Could anyone give me a hint or an explanation for the image below?
I have been testing the CDC usb example. I modified the descriptor in order to have my own device. I have 4 endpoints and I changed the enpoint handler to receive the information and signal when I send information. The enumeration process is working fine and I see my device in Windows Device Manager.
The problem is that I keep getting an interrupt and the program does not get a chance to return to the main loop. The issue is that when I read the interrupt source (uIrqSrc in the image) it returns zero. Half of the times it returns 0x80 (SOF) which should be normal. There are no other values for the interrupt source.
Is there an explanation for a IntSrc = 0 within this function?
If not, what can be the explanation for this behavior?
Thank you,
Scott,
SOF is generated by the Host every 1ms. And this will flood the Device. Unless you are planning to use SOF for synchronizing you can disable the SOF interrupt. Regarding rest of the interrupts:
So the recommendation is to turn off the SOF, DSWAKEUP & ISOC interrupts.
Since the IRQSRC is zero, it looks like the Device has not rcvd any transfers from Host. What are you running on the Host side?
Your assumption on Step#7 is correct. We will rectify in the next Wiki update.
Regards,
Pramod
Hi,
Is the tutorial at http://processors.wiki.ti.com/index.php/HALCoGen_USB_Device_-_driver_%26_CDC_Class working with CCS 5.2?
I tried this but without any success :(
Please help!!