cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4xx: read out protection level1 results in MCU getting locked and frozen

dmakhrov9
Associate II
Posted on September 28, 2012 at 13:59

Hello all,

I hope I'm just doing something wrong. I programm the chip with ST-Link Utility (v2.3.0 - the newest). At read out protection Level0 the programms runs fine. If I set the protection level to ''1'', the execution stops.

What's the matter?

regards

8 REPLIES 8
Posted on September 28, 2012 at 16:02

Sounds like heaps of fun to debug. Do you have a small application that demonstrates this behaviour?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
dmakhrov9
Associate II
Posted on September 28, 2012 at 16:14

Thank you, Clive! I will provide a small example on Monday.

The chip is STM32F417IGT6 marked A, but the utility reads Rev B.

The utility version is the newest (v2.3.0) and the ST-Link/V2 firmware is updated as well.

Before I did this, the utility could not define the size of the flash memory saying it is unknown.

Posted on September 28, 2012 at 20:22

Was wondering if you tried setting the RDP level programmatically from your own code.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
dmakhrov9
Associate II
Posted on October 02, 2012 at 10:55

Hi Clive,

this program will make all 4 LEDs om STM32F4-Discovery board blink at 2 Hz.

Setting read out protection level 1 let it freeze.

I do nothing with RDP and any other registers for flash.

________________

Attachments :

STM32F4-Discovery-LED_Toggle.hex : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtYE&d=%2Fa%2F0X0000000aRe%2Fy9Ro4OgRSBOQtyBkwdb560DVP18Elw9vXhx1FyphWSA&asPdf=false
dmakhrov9
Associate II
Posted on October 09, 2012 at 10:43

dmakhrov9
Associate II
Posted on October 09, 2012 at 10:43

Can some one please try the upper hex file on a STM32F4-discovery board?

As I said the program is an LED blinker. But after setting read out protection to level 1, it stops...
dmakhrov9
Associate II
Posted on October 12, 2012 at 14:29

Did some one ever try to set read out protection with this utility?