Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

USB and BLE - IRQ Enable

I am trying to use both USB and BLE on an NRF52840 using SDK 15.  It hit a hard fault during initialization, specifically when it tries to enable the USBD IRQ.

It looks like it is happening on line 1850 uf nrf_drv_usbd.c:  NRFX_IRQ_ENABLE(USBD_IRQn);

Does anyone know what might be going wrong?

Parents
  • I had the wrong system config files included.  I had the generic ses_nrf52_Vectors.s and system_nrf52.c files.  Now I am using the ses_nrf52840_Vectors.s and system_nrf52840.c files.

    It had been looking liked it worked because I hadn't been using any NRF52840 specific features yet.  Then when I added USB it finally didn't have enough information to make things work.  But now with the the right files in place the interrupts can get enabled correctly.

Reply
  • I had the wrong system config files included.  I had the generic ses_nrf52_Vectors.s and system_nrf52.c files.  Now I am using the ses_nrf52840_Vectors.s and system_nrf52840.c files.

    It had been looking liked it worked because I hadn't been using any NRF52840 specific features yet.  Then when I added USB it finally didn't have enough information to make things work.  But now with the the right files in place the interrupts can get enabled correctly.

Children
No Data
Related