Skip to content

Porting tinyusb to nrf52840 (USBD_IRQHandler not being called) #731

Answered by hathach
oleh-hordiichuk asked this question in Q&A
Discussion options

You must be logged in to vote

you need to call the tusb_hal_nrf_power_event() on the power event to trigger enable usb controller. Check out the stock example with nrf board bsp here for hint https://github.com/hathach/tinyusb/blob/master/hw/bsp/nrf/family.c

Note: the power handle is different with and without softdevice enabled, when SD inited/started after usb, you also need to uninit the nrfx_power() and hooked up/ check the power using sd api as well. Here is the code used in adafruit arduino nrf52 https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/master/libraries/Bluefruit52Lib/src/bluefruit.cpp#L67

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@oleh-hordiichuk
Comment options

@hathach
Comment options

@oleh-hordiichuk
Comment options

Answer selected by oleh-hordiichuk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants