SBSFU BL is not transferring controller to UserApp
Hi,
First of all nice application note for getting started with SBSFU cheers :thumbs_up:
Let me provide details of steps which I followed
Device - STM32H7B3I-DK
Followed AN5056 - Integration guide for the X-CUBE-SBSFU. Under section 4.4 Development or production mode configuration enabled development flow
@@ -59,11 +59,11 @@ extern "C" {
#define SFU_DEBUG_MODE /*!< Comment this define to optimize memory footprint (debug mode removed)
No more print on terminal during SBSFU execution */
-/*#define SFU_VERBOSE_DEBUG_MODE*/ /*!< Uncomment this define when in verbose Debug mode.
+#define SFU_VERBOSE_DEBUG_MODE /*!< Uncomment this define when in verbose Debug mode.
this switch activates more debug prints in the console (FSM state info...) */
-/*#define SFU_FWIMG_BLOCK_ON_ABNORMAL_ERRORS_MODE*/ /*!< You may uncomment this define when running development tests.
+#define SFU_FWIMG_BLOCK_ON_ABNORMAL_ERRORS_MODE /*!< You may uncomment this define when running development tests.
When this switch is activated, the FWIMG part of SB_SFU will
block when an abnormal error is encountered */
@@ -142,7 +142,8 @@ extern "C" {
*
*/
-/*#define SECBOOT_DISABLE_SECURITY_IPS*/ /*!< Disable all security IPs at once when activated */
+#define SECBOOT_DISABLE_SECURITY_IPS /*!< Disable all security IPs at once when activated */
#if !defined(SECBOOT_DISABLE_SECURITY_IPS)2.
Then started building projects, run into overflow error
Fixed it by referring to section 6.2 Memory mapping adaptation
3. Now at this stage SBSFU and UserApp application build successfully
4.Now SBSFU is programmed to board using STM32CubeProgrammer
5.User application is send using tera term with
Baud rate = 115200
- Data = 8 bits
- Parity = none
- Stop = 1 bit
- Flow control = none
6 SBSFU executing
7 User application send to device
Now instead of actually jumping to application SBSFU is still waiting for UserApp :pensive_face:
In sfu_boot.c control is returning from
Hoping to get some pointer on what is going wrong in system.
Thanks
