2025-03-05 3:49 PM
Hello dear friends,
this is my first post and I need your help with an issue I have. I designed some devices based on STM32C031C6. I use an I2C command to jump to bootloader and I upload the new firmware via I2C also from a microcomputer using the stm32flash software.
The problem comes when I switch to RDP L1. Then, stm32flash can't upload the new firmware. As far I understood, before the upload a mass erase should be done, which is not possible. I can change the RDP level from stm32flash using -k and -j parameters, but this is possible only when I enter bootloader using the jumper configuration. If I enter bootloader from the software via the I2C command, -k and -j parameters result on a NACK from the device.
- How can I complete the upload process via I2C, while my devices are secured with RDP L1?
- Is the issue software related?
- Do I need to switch RDP levels, before the upload? If yes, is a power circle also required?
Here is the code I use for the bootloader jump:
Thank you for any help in advance!
Konstantinos