This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

using spi in bootloader

Hi,

i'm doing my own bootloader and i want to use external flash to download image trough a spi. The bootloader project based on example from SDK11, now just an external flash interface is added by me.The problem is that spi only works if softdevice is already enabled ( calling nrf_drv_spi_xfer(); before ble_stack_init(!app_reset); hangs system and no spi activity on oscilloscope). Is my suggestion true? If so, how to enable spi functionality without the softdevice?

Parents
  • The problem is solved, it was my fault. I forget to set the CONFIG_NFCT_PINS_AS_GPIOS key for the bootloader project (since in my pCB spi uses pin 9 - shared this NFCT) but set it for my application project. So accidentally run of app set pin 9 as gpio and enables the SD. I misplaced that signs as enabling the SD in bootloader project.

Reply
  • The problem is solved, it was my fault. I forget to set the CONFIG_NFCT_PINS_AS_GPIOS key for the bootloader project (since in my pCB spi uses pin 9 - shared this NFCT) but set it for my application project. So accidentally run of app set pin 9 as gpio and enables the SD. I misplaced that signs as enabling the SD in bootloader project.

Children
No Data
Related