What is the correct procedure to replace the example UserApp in SBSFU with a different existing project in STM32CubeIDE (generated with CubeMX)?
I have attempted the following:
-Build and tested a simple app, called TestApp with STM32CubeIDE/CubeMX, runs fine on itself (without SBSFU)
-Build and tested the SBSFU 2_images example, works fine.
-The TestApp runs on the same hardware as the SBSFU example and I want to replace the example SBSFU UserApp with the TestApp.
-To achieve this I copied all project settings from UserApp to TestApp.
-Modified postbuild.sh call to use the TestApp.bin instead
-Managed to build the SBSFU_TestApp.bin without errors
-Flashed SBSFU_TestApp.bin according to the SBSFU UserApp instructions
-SBSFU boots correctly and signals that the TestApp is started, but the TestApp does not run.
I suspect the problem lies in the STM32L475VGTx_FLASH.ld file. These differ quite a bit in the UserApp and in the TestApp. In the TestApp, CubeMX has generated it. I tried to replace that file in the TestApp with the one from UserApp, but then the TestApp also does not run anymore, even on itself, without SBSFU. What complicates things is that I also do not know how to debug an app that is running inside of SBSFU.
The TestApp is very small and does not use FreeRTOS, it only prints "Hello World" to the uart. If I can get this to work the next step is to change to my large app (FreeRTOS + OTA).
For now I'm lost. Already spent a few days on this without any luck, hope anyone here knows the best way to do this.
