BLE DTM mode on nrf5340

Hi Devzone,

we are working on nrf5340 mcu, from the DTM sample, l learned that the application run on network core only,  but my application scenario is combine the DTM with other factory test, so there are something run on application code.  is there doable?  or i have to sperate the DTM and the other factory test code (two images) ? 

thanks!

Br, ivan li

Parents
  • ivan.li said:
    Just want to double confirm: two sperate images is must. right ? 

    Yes.

    However, I have asked around a bit, and it might be possible to include the DTM project into another project, unfortunately there is no example for it, but I mention it in any case. How? In NCS 2.2.0 we got support for direct dynamic interrupts in the MPSL lib.

    You can for instance look at this PR, https://github.com/nrfconnect/sdk-nrf/pull/9347/files on how support for this in ESB was added, the same method needs to be applied to the DTM code.

    The added support for using direct dynamic interrupts in ESB means that you run-time can switch between ESB and BLE in NCS 2.2.0. It shouldn't be to hard to add support for this in DTM as well now. Main change is to change the DTM code from using IRQ_DIRECT_CONNECT to use ARM_IRQ_DIRECT_DYNAMIC_CONNECT and irq_connect_dynamic instead for the IRQ handler initialization. 

    I have put in a request to look into this for future.

    Best regards,
    Kenneth

Reply
  • ivan.li said:
    Just want to double confirm: two sperate images is must. right ? 

    Yes.

    However, I have asked around a bit, and it might be possible to include the DTM project into another project, unfortunately there is no example for it, but I mention it in any case. How? In NCS 2.2.0 we got support for direct dynamic interrupts in the MPSL lib.

    You can for instance look at this PR, https://github.com/nrfconnect/sdk-nrf/pull/9347/files on how support for this in ESB was added, the same method needs to be applied to the DTM code.

    The added support for using direct dynamic interrupts in ESB means that you run-time can switch between ESB and BLE in NCS 2.2.0. It shouldn't be to hard to add support for this in DTM as well now. Main change is to change the DTM code from using IRQ_DIRECT_CONNECT to use ARM_IRQ_DIRECT_DYNAMIC_CONNECT and irq_connect_dynamic instead for the IRQ handler initialization. 

    I have put in a request to look into this for future.

    Best regards,
    Kenneth

Children
No Data
Related