This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Merging SPI, TWI and Buttonless dfu

Hi Everyone

I am working on nrf52832 with sdk 14.0.0 on iar IDE.  TWI and SPI separately working fine in buttonless_dfu then i merged SPI and TWI in buttonless_dfu itself but due to adding both codes they stuck . .

i also try to change the priority( 2 , 3 or same) of both (TWI and SPI) and also enable the peripheral resouce sharing bit. 

Parents
  • What IRQ level are you calling the SPI functions from? Where does the code get stuck? Is it in a "while (!spi_xfer_done)"? Or is it an APP_ERROR_CHECK() that returns?

    Or does the code run fine, but it is only the transfer of data that is not working? Have you tried to analyse the MOSI pin, using a logic analyzer or an oscilloscope? 

    Would it be possible to send a stripped down version of the product that can reproduce the issue?

    BR,

    Edvin

Reply
  • What IRQ level are you calling the SPI functions from? Where does the code get stuck? Is it in a "while (!spi_xfer_done)"? Or is it an APP_ERROR_CHECK() that returns?

    Or does the code run fine, but it is only the transfer of data that is not working? Have you tried to analyse the MOSI pin, using a logic analyzer or an oscilloscope? 

    Would it be possible to send a stripped down version of the product that can reproduce the issue?

    BR,

    Edvin

Children
No Data
Related