Hello,
I am trying to encrypt the bootloader using the steps in this DFU_ENC.
But I am not able to find the dfu-cc.proto file in the directory nordicsemi/dfu.
Can you please tell me where it is located?
Best regards,
Navin
Hello,
I am trying to encrypt the bootloader using the steps in this DFU_ENC.
But I am not able to find the dfu-cc.proto file in the directory nordicsemi/dfu.
Can you please tell me where it is located?
Best regards,
Navin
Hi Navin
This file can be found in the nrfutil folder under nordicsemi/dfu/dfu-cc.proto
Best regards,
Simon
Hi Simonr,
I found the file in the SDK folder. I am trying to generate nonce as in the example mentioned. https://devzone.nordicsemi.com/f/nordic-q-a/37260/adding-encryption-to-secure-dfu-sdk-v15
Before I added nonce the data-packet size was 141 bytes, and even after making changes the size of the dat file has not changed.
Can you tell me if the example mentioned in the link is how it has to be done?
Please see the picture above for reference. The nonce is "3031323334...", which is not visible in the write bytes packet or command packet.
Hi Navin
Did you remember to edit the dfu-cc.proto file and regenerated the dfu_cc_pb2.py file with the protocol buffer compiler as that is recommended in the comments of the blog post you're using.
Best regards,
Simon
Hello Simonr,
I had made a mistake while editing the init_pcaket.py file. Sorry for that! I am now able to generate pb.h and pb.c files on both the PC, as well as for the microcontroller using nanopb.
Thank you for your time!
Best regards,
Navin
Glad to hear that Navin!
Best of luck and regards,
Simon