打pca10100_s113_ble_debug工程,将生成的key
__ALIGN(4) const uint8_t pk[64] =
{
0xa3, 0x9a, 0x37, 0xb3, 0x1e, 0x44, 0xb5, 0x77, 0xb3, 0xa4, 0xf3, 0x65, 0xb8, 0xe6, 0xff, 0xa4, 0x33, 0x19, 0x30, 0x0c, 0xd8, 0xaf, 0xc6, 0x5a, 0xdf, 0xd1, 0x8f, 0xf3, 0xf3, 0xdb, 0x3f, 0xc6,
0x51, 0x2c, 0x4a, 0xee, 0x4c, 0x2c, 0x0b, 0x44, 0xbf, 0xf4, 0x0e, 0x85, 0x88, 0xea, 0x88, 0x7a, 0x1b, 0xe2, 0x05, 0xc6, 0xb4, 0xfc, 0x34, 0x77, 0x6f, 0x7a, 0x63, 0x86, 0x34, 0x73, 0x11, 0xe3
};
替换到dfu_public_key.c中对应的key位置
在nRF_DFU工程目录下加入nrf_dfu_serial.c和nrf_dfu_serial_uart.c两个文件
在nRF_Libraries工程目录下加入slip.c文件
在nRF_Drivers工程目录下加入nrf_nvic.c nrf_soc.c nrfx_uarte.c nrfx_uart.c
nrf_drv_uart.c和nrfx_prs.c六个文件
在工程中定义全局宏MBR_PRESENT DFU_UART_SUPPORT_EN
在sdk_config.h中加入以下宏
// <h> nrf_dfu_serial_uart - UART DFU transport
// <q> SLIP_ENABLED - slip - SLIP encoding and decoding
#ifndef SLIP_ENABLED
#define SLIP_ENABLED 1
#endif
//==========================================================
// <q> NRF_DFU_SERIAL_UART_USES_HWFC - HWFC configuration
#ifndef NRF_DFU_SERIAL_UART_USES_HWFC
#define NRF_DFU_SERIAL_UART_USES_HWFC 0
#endif
// <o> NRF_DFU_SERIAL_UART_RX_BUFFERS - Number of RX buffers.
// <i> Number of buffers depends on flash access vs.
// <i> transport throughtput. If value is too low it may lead
// <i> to received packets being dropped.
#ifndef NRF_DFU_SERIAL_UART_RX_BUFFERS
#define NRF_DFU_SERIAL_UART_RX_BUFFERS 64
#endif
//==========================================================
// <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing module
//==========================================================
#ifndef NRFX_PRS_ENABLED
#def