8 years ago.

Enable CRP on Nucleo

I am developing on Mac with platformio and eclipse, compiling with gcc and debuging with openocd.

1 - What are the steps to activate the CRP on mbed boards like NucleF103RB or F401RE? I tried this hint also https://developer.mbed.org/users/fyazgan/notebook/adding-crp-protection-to-your-prototypes-dont-use-/ and tried to update the 4 addresses 0x2fc, 0x2fd, 0x2fe, 0x2ff respectively with 0x43, 0x21, 0x87, 0x65, but it did not work (tried crp3 and again i could update the firmware as i always used to do). I should mention here that i did not see the 0xffffffff (ff ff ff ff) value on that adress as mentioned in the post.

Also better would habe been some programatic way so to automate the process and not always need to open and edit the bin file. Every example i find in the mbed forums is talking about NXP boards LPC...and i do not think the same procedure applies doesn't it?

2 - Another thing is how can i test the CRP in level 1 and 2? The problem is that the board is shown as a normal usb drive but when i drag and drop a bin file on it in the very moment it disappears (i think the bin is copied from the mbed disk to the mcu flash) so how can i test now if i can read the bin file again or not? I think if i can test this step than i will not be forced to always test crp3 and check if the program is updated.

Be the first to answer this question.