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.

Issue regarding the working of the source code of TIVA series

Other Parts Discussed in Thread: CCSTUDIO

There is a sample source code for TIVA series TM4C129X for usb_dev_bulk for transmitting and receivng the data through ths usb config...the echo through the UART works fine...but the USB_EVENT_RX_AVAILABLE case statement doesnt get executed in the process to echo the data through the USB in the RX Handler...Can you please help me with this??

  • Hello Akhilesh,

    What exactly is the issue, if the usb_dev_bulk is able to TX and RX data then the case statement must get executed?

    Regards

    Amit

  • Yes...when the RX is available that case statement must get executed so that the echo function works...currently it works but it is due to uart configuration and not usb...I want echo to work due to USB...when i debug and put a breakpoint in that case statement, execution doesnt stop at that point which means that it is not entering that case statement RX_AVAILABLE at all...What exactly is the issue for this case statement not getting executed I am not able to figure it out...

  • Hello Akhilesh,

    I put a break point on

            case USB_EVENT_RX_AVAILABLE:

    and then when I send data from the USB it breaks on the same.

    Regards

    Amit

  • Akhilesh Naik said:
    execution doesnt stop at that point which means that it is not entering that case statement RX_AVAILABLE at all...What exactly is the issue for this case statement not getting executed I am not able to figure it out...

     Hi, I got similar issue due to stack overflow, try increase and if you are using CCStudio on project check:

     Property -> CCS_Build -> Arm Linker -> Basic Options

     Then check stack size if not defaulted to 512 Bytes on last setting on page.

  • hii Roberto,

    The stack size for ccs which am using is defaultly set to 1024 which is greater than 512, so I dont think its a stack overflow problem...but still i tried increasing it to 2048 and also on 512...bt still its giving me the same problem during execution...that case statement of RX_AVAILABLE is not getting executed at all...

  • Hi Amit,

    I hav tried putting breakpoint on same case statement USB_EVENT_RX_AVAILABLE...but it doesnt break on the same...What might be the reason?

     

    Regards

    Akhilesh