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

SPI not working properly when bootloader is flashed

Hello,

I have the same problem as this post. The difference is my SPI is sending out junk instead of stucking. I have tried the solution in the original post but no avail (I set NRF_BL_DFU_ENTER_METHOD_BUTTON to 0 in the bootloader sdk_config.h). Does anyone have idea on what could be the problem?

I use SPI1, pin P0.11 for SCK, P0.21 for MOSI, P0.5 for MISO. When sending a message, I notice MOSI (P0.21) is pulled high all the time (is pulled high even when not sending a message), MISO (P0.05) is pulled low (normally high) and SCK behaves correctly (there are clock pulses). This happened when the bootloader and bootloader setting are flashed. I use mergehex to merge the softdevice, bootloader, bootloader settings and the application together. When there are only softdevice and the application, the SPI works correctly.

I have tried SPI0 and it worked correctly.

I am using nrf52382 with softdevice s132 v6.0.0.

Thank you!

Parents Reply Children
No Data
Related