cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] SBSFU - WRP / RDP Test Failure

snmunters
Associate III

Hi,

I am setting up SBSFU on our STM32H750. I want to test the RDP and WRP security protections.

Steps taken so far:

  1. I have enabled WRP and RDP Level 1 by setting the option bytes through cubeprogrammer and enabling SFU_WRP_PROTECT_ENABLE & SFU_RDP_PROTECT_ENABLE in app_sfu.h
  2. I have enabled SFU_TEST_PROTECTION in app_sfu.h

 

Note:
There are several test cases in sfu_test.c that I am using. The tests in questions are attached below:

snmunters_0-1776261823593.png

TEST_ERASE_FLASH is failing. 

 

Output:

snmunters_1-1776261926362.png

I am not sure why this would be. Does anyone have any advice?

 

1 ACCEPTED SOLUTION

Accepted Solutions
snmunters
Associate III

Fixed. This was a misunderstanding on my part.


RDP protects against external attack while this test suite attempts invalid access internally.

Enabling the MPU protections (SFU_MPU_PROTECT_ENABLE ) triggers a reset on each invalid read/write which is what should happen.

View solution in original post

2 REPLIES 2
snmunters
Associate III

Update:
TEST_WRITE_FLASH and TEST_ERASE_FLASH are now working. However, TEST_READ_FLASH is consistently failing. I believe WRP is working but RDP is not. 

 

snmunters_0-1776344864662.png

 

snmunters
Associate III

Fixed. This was a misunderstanding on my part.


RDP protects against external attack while this test suite attempts invalid access internally.

Enabling the MPU protections (SFU_MPU_PROTECT_ENABLE ) triggers a reset on each invalid read/write which is what should happen.