cancel
Showing results for 
Search instead for 
Did you mean: 

SBSFU Application from STM32CubeU5

alanl
Associate

I am still very new to embedded programming. I am trying to walk through the SBSFU example application for the B-U585I-IOT02A from STM32CubeU5. The board I am using is STM32U5A9J-DK. I tailored some of the build settings in STM32CubeIDE for STM32U5A9J-DK according to the README. In order to get things to work, for the configuration, I had to disable Anti-Tamper (since with it enabled, the main menu would not display). I have a few questions:

  1. Besides the build settings, are there any hardware related code changes that I need to tweak in order to get the example running correctly? The two boards seem to have similar hardware layout for user button and led6 (but I wasn't sure if there were any hardware specific changes that I needed to make).

  2. When running the application and selecting option 1 (Test Protections) from the main menu in Tera Term, I get that Data Secure Start and End has been DENIED as well as some other reading of flash bytes. Is this the expected result? I've attached the test protection results that I get from repeated option 1.

  3. When I press the user button during board reset to access the Local Loader App, I do not get any menu options. I only get the following:

    [INF] Flash operation: Op=0x0, Area=0x0, Address=0x0

    I was hoping to have an option to send a signed binary with Tera Term via a menu option.

    How do I get the menu options for the Local Loader App?
  4. If I try to use a secondary slot by NOT defining MCUBOOT_PRIMARY_ONLY and MCUBOOT_OVERWRITE_ONLY and setting MCUBOOT_NS_DATA_IMAGE_NUMBER to 1 in Linker/flash_layout.h, I get the following error: Unable to find bootable image. I also get some other errors such as unexpected value for secure flash protection (set wmsec1) and secure user flash protection (set hdp1). I've attached the console from Tera Term.

    How do I set wmsec1 and hdp1? How would I debug why it cannot find the bootable image (where is it expecting it)?
0 REPLIES 0