I want use anthor MCU update firmware for nrf51822 via SPI port,is there a demo for this ?
I want use anthor MCU update firmware for nrf51822 via SPI port,is there a demo for this ?
What is the other MCU? Why do you want to use SPI, why don't use get the other MCU to update the firmware on the nRF51822 using SWD ?
[1].The other MCU:STM32 [2].in my project, The pcb is sealed in the box, the only one interface is connect for stm32.
There is existing code for the STM32F103 ( and possibly other STM32 series MCUs) to act as a SWD debugger / programmer.
Take a look at the Blackmagic probe code, on github ( by Blacksphere) you should be able to modify it to suit your needs
Hi Sam,
If SPI is the only interface (no SWD) you can have a look at this SPI bootloader.