Skip to content

call tud_init() after freeRTOS kernel is started#471

Merged
hathach merged 1 commit into
masterfrom
call-usbinit-after-kernel-started
Jul 23, 2020
Merged

call tud_init() after freeRTOS kernel is started#471
hathach merged 1 commit into
masterfrom
call-usbinit-after-kernel-started

Conversation

@hathach
Copy link
Copy Markdown
Owner

@hathach hathach commented Jul 23, 2020

Describe the PR
TinyUSB IRQ handler make use of RTOS queue API. If stack is initialized before kernel/scheudler, the ISR can invoke RTOS API when kernel is in unknown state which could cause hardfault in case of freeRTOS with portYield().

  • update example to call tud_init() after freeRTOS kernel is started
  • add note to usb init functions

follow up to #468

add note for usb init when using with RTOS
@hathach hathach merged commit 6035572 into master Jul 23, 2020
@hathach hathach deleted the call-usbinit-after-kernel-started branch July 23, 2020 18:28
7FM pushed a commit to 7FM/tinyusb that referenced this pull request Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant