How to actually set PICO_RP2040_USB_DEVICE_UFRAME_FIX=0? #1260
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk#1260
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The SDK 1.5.0 release notes mention the following new variable:
However: How do I actually set PICO_RP2040_USB_DEVICE_UFRAME_FIX to 0? I would have expected to be able to add it to my CMakeLists.txt like other configuration parameters:
However that results in a warning during the build process:
... and checking the command-line shows that my project is still built with PICO_RP2040_USB_DEVICE_UFRAME_FIX=1.
Sadly, the SDK 1.5.0 documentation is (still?) missing, so I there isn't much documentation but the release notes.
PS: Also, the erratum RP2040-E15 is missing from the current RP2040 data sheet. Where I can find its description?
PPS: Good to see that my humble example apparently was used as part of the test case for the E15 erratum:
github.com/P33M/rp2040-e15-testcase@2707219c2ayou have the right idea, but yes this is a bug.
for now use
TUD_OPT_RP2040_USB_DEVICE_UFRAME_FIX=0instead (either viatarget_compile_definitionsor in your tusb_config.h`Thank you. I can confirm that setting
TUD_OPT_RP2040_USB_DEVICE_UFRAME_FIX=0viatarget_compile_definitionshas the intended effect of disabling the workaround for erratum E15.i have updated the release notes
changed to "documentation" as the workaround is actually the correct thing to do
@kilograham AFAICT https://github.com/raspberrypi/pico-sdk/releases/tag/1.5.0 and Appendix F (SDK 1.5.0. Release Notes) of https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-c-sdk.pdf and Appendix B (RP2040-E15) of https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf are all describing using
TUD_OPT_RP2040_USB_DEVICE_UFRAME_FIX- what other documentation updates are needed to fix this? (or are the ducks all already in a row? 🦆 )@P33M Are there any other changes needed here?
None?