Hi
I verified the OAD functionality based on the "basic_ble_oad_onchip" routine and now I want to change the default raw key, how can I do that? I found this link for how the CC26XX series generates and handles keys, but the CC2340 is different.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Thank you for reaching out.
The CC2340Rx series use MCUBoot as boot loader. imgtool is responsible for adding the MCUBoot image header, managing keys and sign the image.
imgtool is executed as post-build step (see https://software-dl.ti.com/simplelink/esd/simplelink_lowpower_f3_sdk/7.20.01.10/exports/docs/ble5stack/ble_user_guide/html/oad-mcuboot/imgtool.html).
You can generate a keypair for the image using the following imgtool command:
./scripts/imgtool.py keygen -k filename.pem -t ecdsa-p256
More details on imgtool is available imgtool documentation page.
I hope this will help,
Best regards,