tinyusb icon indicating copy to clipboard operation
tinyusb copied to clipboard

examples/device/cdc_msc_freertos does not compile for stm32f439nucleo as-is

Open Lotharyx opened this issue 2 years ago • 2 comments

Operating System

Linux (Debian 12.1 via WSL on Windows 10)

Board

ST STM32F439-Nucleo

Firmware

examples/device/cdc_msc_freertos

What happened ?

Following output from make BOARD=stm323f439nucleo all

buildlog.txt

WORKAROUND: Disable maybe-uninitialized as an error by adding to Makefile: CFLAGS_GCC += -Wno-error=maybe-uninitialized

How to reproduce ?

  1. git clone https://github.com/hathach/tinyusb
  2. cd tinyusb/examples/device/cdc_msc_freertos
  3. make BOARD=stm32f439nucleo get-deps
  4. make BOARD=stm32f439nucleo all

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

N/A as the build does not complete, no Debug Log generated

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • [x] I confirm I have checked existing issues, dicussion and documentation.

Lotharyx avatar Oct 05 '23 20:10 Lotharyx

Note: The example appears to run correctly on an STM32F429-Nucleo board, with the described workaround.

Lotharyx avatar Oct 05 '23 21:10 Lotharyx

Same issue with host/cdc_msc_hid_freertos It's a freertos "error" (There's a configAssert guarding the potentially uninitialized variable) but I don't think we should have -Werror for third party chunks..

karlp avatar Nov 24 '23 13:11 karlp