2020-09-30 12:06 AM
Hi.,
Because i wanted to verify if the processes worked as well on my work provided Laptop. I ran the homework a second time.
The TFM Homework of course resulted in mutliple Errors and nothing worked. But now i can't even use the L5 Board anymore. I get no output on the Serial and the usb part shows a fail.txt with the following content:
The interface firmware FAILED to reset/halt the target MCU
Trying to connect the STCubeProgrammer also now fails with: DEV_TARGET_NOT_HALTED
So i can't manually wipe the device and restore it again.
Quick help would be appreciated.
2021-08-18 09:18 PM
@Frantz LEFRERE ,
I am facing same issue, can you please help me to recover board? I am using STM32L562E-DK Discovery kit.
2021-08-18 11:50 PM
This video : https://www.youtube.com/watch?v=4UW8lnbV1cA describes how to proceed with a Nucleo.
The only difference with discovery board is how to enter in bootloader.
For the activation of the STM32L562E-DK Discovery bootloader, the procedure is describe in the user manual :
6.4.2 Boot from RSS
"just by applying 3V3 on the PH3-BOOT0 signal between R32 and R31"
then press reset.
After this you should be able to connect with Cubeprogrammer in hotplug mode and do a RDP regression.
2021-08-19 02:14 AM
Thank you so much @Frantz LEFRERE
I am able to connect it by putting the board in boot mode. My RSS version(read from 0x0BF97FFE) is 0. I have tried to disable the trust zone, but it is not disabling it.
ALso I am following video but I am not able to disable trust zone
2021-08-19 02:17 AM
If you're able to connect, you should be able to do a RDP regression. Do you confirm ?
To disable TZEN, you need to have a secure code that launch a non secure code. Once that's on you target, you can change RDP to level 0.5.
Then you should be able to connect (hotplug mode) .
Then at the same time you should change TZEN and RDP level to 0.
2021-08-19 02:52 AM
@Frantz LEFRERE ,
I have uploaded nonsecure images using loader images(Generated from TFM test named "tfm_ns_enc_sign.bin"). After that, I Have tried to reduce the RDP level to 0.5, that my board is again not able to connect, Then after I have followed the same procedure, and was able to connect the board again. But I am not able to disable trust Zone. Can you help me with it?
2021-08-20 05:43 AM
Now I am able to flash my normal application (without a bootloader).
The steps are as following
1) Connect the board to STM32 cube programmer
2) Change RDP level to 0 i.e.0xaa
3) Disable trust zone by unchecking TZEN in user configuration of option bytes
4) Click on APply
5) Remove write protection by changing write protection end location > start location
After following above steps I am able load demo application.
@Frantz LEFRERE , Thank you so much for your support.