You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the same script will now continuously print :
Data received: array('B', [129, 165])
Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)
I could not see any useful in the debug logs, I had to use the pico probe debugger to see that the interrupt EP is in fact not busy and the the code is wrong.
Screenshots
No response
I have checked existing issues, dicussion and documentation
I confirm I have checked existing issues, dicussion and documentation.
The text was updated successfully, but these errors were encountered:
hinxx
changed the title
USBTMC check for EP not busy should return true in tud_usbtmc_transmit_notification_data
USBTMC: EP not busy should not bail true in tud_usbtmc_transmit_notification_data
Jul 23, 2024
hinxx
changed the title
USBTMC: EP not busy should not bail true in tud_usbtmc_transmit_notification_data
USBTMC: EP not busy should not bail from tud_usbtmc_transmit_notification_data
Jul 23, 2024
Operating System
Linux
Board
RPI Pico
Firmware
tinyusb/src/class/usbtmc/usbtmc_device.c
tinyusb/examples/device/usbtmc/src/usbtmc_app.c
What happened ?
PR #2494 introduced
tud_usbtmc_transmit_notification_data()
function. The check if EP is not busy bails out of the function if the EP is NOT busy:tinyusb/src/class/usbtmc/usbtmc_device.c
Line 256 in cfbdc44
I believe it should be the opposite; bail if the EP IS busy and continue if not busy like so:
How to reproduce ?
Original code:
usbtmc_app.c
:Use the following python script to poll for interrupt condition: poll-interrupt-in.txt
Observe
No data available (timeout)
being printed out by python script.Change the
tinyusb/src/class/usbtmc/usbtmc_device.c
Line 256 in cfbdc44
to
Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)
I could not see any useful in the debug logs, I had to use the pico probe debugger to see that the interrupt EP is in fact not busy and the the code is wrong.
Screenshots
No response
I have checked existing issues, dicussion and documentation
The text was updated successfully, but these errors were encountered: