what is the differerce between case pca10028 and pca10028_debug?
-
I am a novice and I hope you can help me. Thank you very much
I am a novice and I hope you can help me. Thank you very much
Hi,
I'm assuming you are using nRF5 SDK v12.3.0, and that you are referring to the secure_bootloader example, but it would help a lot if you included this information in the problem description.
The pca100xx_debug projects will define the preprocessor symbol 'NRF_DFU_DEBUG_VERSION', which will make the application use the "debug public key" defined in dfu_public_key.c:
#ifdef NRF_DFU_DEBUG_VERSION /** @brief Public key used to verify DFU images */ __ALIGN(4) const uint8_t pk[64] = { 0x19, 0xf5, 0x25, 0x60, 0x18, 0xc5, 0x3a, 0x48, 0x0d, 0x60, 0xa0, 0xe6, 0xdf, 0xf3, 0x2c, 0x16, 0x71, 0xcc, 0xf6, 0x69, 0x13, 0x2a, 0x63, 0x16, 0x55, 0x4d, 0x67, 0x7d, 0xc6, 0x1d, 0xc9, 0x27, 0xeb, 0xf9, 0xd3, 0xec, 0x54, 0x08, 0x08, 0xf8, 0x58, 0x62, 0xd0, 0xc6, 0x77, 0x68, 0x74, 0x64, 0x0a, 0xee, 0x28, 0xf6, 0x59, 0x12, 0xb6, 0xbd, 0x97, 0x5d, 0x64, 0x18, 0x62, 0x99, 0x9c, 0x87 }; #else #error "Debug public key not valid for production. Please see https://github.com/NordicSemiconductor/pc-nrfutil/blob/master/README.md to generate it" #endif
The debug projects can then be used to test the DFU images found in examples\dfu\ble_dfu_send_hex. Since you do not have access to the private key for this public key, you need to generate your own private-public key pair for generating your own DFU packages. Please follow the instructions in the Testing-section.
Best regards,
Jørgen
Hi,
I'm assuming you are using nRF5 SDK v12.3.0, and that you are referring to the secure_bootloader example, but it would help a lot if you included this information in the problem description.
The pca100xx_debug projects will define the preprocessor symbol 'NRF_DFU_DEBUG_VERSION', which will make the application use the "debug public key" defined in dfu_public_key.c:
#ifdef NRF_DFU_DEBUG_VERSION /** @brief Public key used to verify DFU images */ __ALIGN(4) const uint8_t pk[64] = { 0x19, 0xf5, 0x25, 0x60, 0x18, 0xc5, 0x3a, 0x48, 0x0d, 0x60, 0xa0, 0xe6, 0xdf, 0xf3, 0x2c, 0x16, 0x71, 0xcc, 0xf6, 0x69, 0x13, 0x2a, 0x63, 0x16, 0x55, 0x4d, 0x67, 0x7d, 0xc6, 0x1d, 0xc9, 0x27, 0xeb, 0xf9, 0xd3, 0xec, 0x54, 0x08, 0x08, 0xf8, 0x58, 0x62, 0xd0, 0xc6, 0x77, 0x68, 0x74, 0x64, 0x0a, 0xee, 0x28, 0xf6, 0x59, 0x12, 0xb6, 0xbd, 0x97, 0x5d, 0x64, 0x18, 0x62, 0x99, 0x9c, 0x87 }; #else #error "Debug public key not valid for production. Please see https://github.com/NordicSemiconductor/pc-nrfutil/blob/master/README.md to generate it" #endif
The debug projects can then be used to test the DFU images found in examples\dfu\ble_dfu_send_hex. Since you do not have access to the private key for this public key, you need to generate your own private-public key pair for generating your own DFU packages. Please follow the instructions in the Testing-section.
Best regards,
Jørgen