2018-05-12 10:55 AM
Secure Boot and Secure Firmware Update is just awesome. Very excited to use it. However, for whatever reason, the process of setting up and practical usage of it is quite confusing.
I've loaded the demo application(s) into Atollic and found that nothing works to the degree that the application notes explain. Have the ''Hands on'' workshop but found it more of a ''load the demo.... see it works'' but little in the way of explanation.
I've been using
as the only reference.This should be clear but it isn't.
Here is my understanding:
What I'm looking for is some clarification and ideally some more detailed instructions on how the project workflow is setup.
#secure-boot #secure-update #update #sbsfu2018-05-28 04:57 PM
Example, here is the entire 'Step by Step' software installation instructions:
5.2
Software setupThis section lists the minimum requirements for the developer to setup the SDK, run thesample scenario, and customize applications.5.2.1Development toolchains and compilersSelect one of the Integrated Development Environments supported by the STM32CubeExpansion Package.Take into account the system requirements and setup information provided by the selectedIDE provider.With instructions like that, who needs the forums.
2018-06-04 02:39 AM
Hi Richard
We as well as the Getting Started doc, we followed readme.txt files in the source and were able to build everything using IAR, and got the demo to work on a Nucleo L476RG demo board.
The user app is a separate project because the post-build steps create an encrypted and signed binary which only your bootloader can receive and de-crypt. It's a really nice system and will be very useful to us when it is fully developed.
We found that user apps that were not correctly encrypted would be send OK but did not run - the failure was silent, so it was difficult to see if SBSFU was working correctly. We discovered it was, but an error message on decrypt failure would help us.
Also we are struggling to port the whole a package to another board, but I suspect we will be able to fix this with a bit more work and time.
Tim
2018-06-04 05:59 AM
I've ported it over to Atollic without too much stress. The difficult part for me was the lack of detail in pre-compile / post-compile commands. Inclusion of what directories and which libraries. Had to dig through the .project files to find those details.
Right now my roadblock is converting the .bat file into a respectable .sh file. Doing development on Windows is becoming more and more of a pain and less of a luxury.
2018-08-08 02:06 AM
I also find myself lost in the example code (which works great). But there's literally no information about how to set up your own project, creating uC dependent SECoreBins and SBSFU. I could setup a project with CubeMX, but what comes next? How do I set up the necessary projects to create uC dependent SECoreBin and SBSFU? I would be so much more helpful if ST described the way how to use the software, and not only how to run a small demo.
2018-09-05 11:12 AM
SBSFU is the actual bootloader application and not just an object file. After building the SECoreBin you can build the SBSFU and load it into the controller using stlink. When u build the user app project u may notice that there is a merged binary which is also created that is a combined binary of SBSFU,SECoreBin and the User App. U may flash(stlink utility) this to flash both bootloader and app in one go(e.g. during production).
2018-10-11 05:10 PM
Hello guys, as far as I understand you are (trying to use or) using the reference ST secure bootloader from SBSFU, is this correct?
It seems the situation you were in 5 months ago is the same today for STM32H7, there is a big missing piece of BPS+Documentation surrounding RSS needed for secure bootloader on the H7.