hathach / tinyusb

An open source cross-platform USB stack for embedded system
https://www.tinyusb.org
MIT License
4.77k stars 1.02k forks source link

It can't work on STM32G0B1CBT6 with FreeRTOS. Please help. #2703

Closed favoritewky closed 1 month ago

favoritewky commented 1 month ago

Operating System

Windows 11

Board

STM32G0B1CBT6

Firmware

I make a simple project here https://github.com/hathach/tinyusb/commit/b3ee927e58cf7cd44f05db9dec41bc241ef94902

What happened ?

I make a CDC Usb device but not work, I need help. It will get

error: redundant redeclaration of 'SystemCoreClock' [-Werror=redundant-decls]
   53 |   extern uint32_t SystemCoreClock;

So, I comment this line https://github.com/hathach/tinyusb/commit/b3ee927e58cf7cd44f05db9dec41bc241ef94902#r144079217

How to reproduce ?

Download the firmware but nothing happend.

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

.USBD init on controller 0, Highspeed = 0
sizeof(usbd_device_t) = 53
sizeof(dcd_event_t) = 12
sizeof(tu_fifo_t) = 20
sizeof(tu_edpt_stream_t) = 112
CDC init

Screenshots

No response

I have checked existing issues, dicussion and documentation

favoritewky commented 1 month ago

@Commotari Please help me.

HiFiPhile commented 1 month ago

Please don't use issue for asking for help.