This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UARTE NVIC interrupt number

Hi there, 

We are trying to enable the interrupts on one of the UARTE peripherals, and are having trouble finding the interrupt number within nrf5340_application.h? It is not defined here. We need enable the right interrupt with NVIC_EnableIRQ.

We are not using zephyr and are thus writing our own libraries.

Can you please advice on what the interrupt number is and why it is not defined within nrf5340_application.h?

Regards,

Frikkie

Parents
  • Hi,

    From the product specification document we have managed to figure out the interrupt numbers for the UARTE0-3 peripherals. This is defined within nrf5340_application.h as SERIAL0-3. It is indeed a pity that these inconsistencies are present in the code base.

    We also had the same issue when trying to access the GPIO peripheral, only to find in the code that it is referred to as P0 in the code base and not GPIO0, even though it is a NRF_GPIO_Type pointer. 

    #define NRF_P0_NS                ((NRF_GPIO_Type*)          NRF_P0_NS_BASE)
    

    Hopefully these are the only inconsistencies that we will find...

  • The naming makes sense to the designers who designed a seriobox for these shared peripherals, but I understand that this is confusing for the users. I can ask to see if this can be changed. Thanks for pointing at this and the GPIO naming.

Reply Children
No Data
Related