Skip to main content
HJung.2
Associate II
July 6, 2021
Solved

Firmware doesn't work when Read Out Protection is enabled.

  • July 6, 2021
  • 1 reply
  • 2562 views

I programmed stm32F103RCT6 firmware using STM32CubeIDE.

When Read Out Protection (RDP) is disabled, the firmware works well.

But RDP is enabled, the firmware doesn't work.

My firmware is transmitting data by UART.

when RDP is disabled, Firmware sends data like the pic below

0693W00000BcupGQAR.pngHowever, RDP is enabled. I cannot see anything.

How can the firmware work when RDP is enabled?

I'm using QFP 64pin socket & connected Jtag by ST-Link v2.

0693W00000Bcuq3QAB.jpg

This topic has been closed for replies.
Best answer by Mike_ST

If JTAG is unplugged, and RDP enabled, your software should work...

Please check that the BOOT0 pin is correctly pulled to ground.

1 reply

Mike_ST
Technical Moderator
July 6, 2021

Please try to unplug the JTAG connector when RDP is enabled, power cycle and check whether your firmware works.

HJung.2
HJung.2Author
Associate II
July 6, 2021

Hello! Thank you for your answer!

I use JTAG for debugging and reset the chip.

I tried to reset and start the firmware without jtag, but socket doesn't have reset button like NUCLEO board.

So I couldn't reset the chip without jtag.

Is there any solution for start firmware without jtag??

And for further work, I must use JTAG.

Does the firmware never work with JTAG when RDP is enabled?

Mike_ST
Technical Moderator
July 6, 2021

>> Is there any solution for start firmware without jtag??

Yes, power off then power on.

I see on the picture that you are using a breakout board, find the RESET pin and pull it to ground for a short time.

>> Does the firmware never work with JTAG when RDP is enabled?

This is read-out protection, by definition it forbids access to the flash. If you plug debug probe, the mcu will forbid access.

Probably entering a locked state.