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

How to add spis example in Secure DFU ble example

Hi Nordic Team,

                         I was doing OTA in nrf52840 using Secure DFU ble example in nrf5 sdk. Where i want add some customizations in the code.

1.I wanted to add spis example to secure dfu ble example.to send date to another ic. it is working perfectly fine when using spis example .but when i add the spis slave example to secure dfu 

code it is not working.(on stm32(other chip) side it is giving 0xffff data. but it was working fine with spis example)

2.how can we add a spis peripheral example to secure dfu.

pls help

Parents
  • Hello,

    Are you already enabling the constant latency power mode like in the SPIS example? This mode makes the SPIS wakeup shorter so you don't have to assert the CSN line as early.

    int main(void)
    {
        // Enable the constant latency sub power mode to minimize the time it takes
        // for the SPIS peripheral to become active after the CSN line is asserted
        // (when the CPU is in sleep mode).
        NRF_POWER->TASKS_CONSTLAT = 1;
        ...

    Note: the SPIS should be unitialized and the sub-power mode should be set to low power before booting the main app.

    Best regards,

    Vidar

Reply
  • Hello,

    Are you already enabling the constant latency power mode like in the SPIS example? This mode makes the SPIS wakeup shorter so you don't have to assert the CSN line as early.

    int main(void)
    {
        // Enable the constant latency sub power mode to minimize the time it takes
        // for the SPIS peripheral to become active after the CSN line is asserted
        // (when the CPU is in sleep mode).
        NRF_POWER->TASKS_CONSTLAT = 1;
        ...

    Note: the SPIS should be unitialized and the sub-power mode should be set to low power before booting the main app.

    Best regards,

    Vidar

Children
Related