2021-05-24 12:41 AM
Hello,
I am working on integrating SBSFU with the STM32F4 controller. The target controller is F429.
I am trying to build an example project. It is a single image slot project which is developed for STM32F413H. I build the SE_Corebin project first and I am getting the following error.
################################################################
Core/se_callgate.c:462:25: error: 'SE_FW_IMAGE_COMPLETE' undeclared (first use in this function); did you mean 'SE_FW_HEADER_TOT_LEN'?
if ((se_FwType != SE_FW_IMAGE_COMPLETE) && (se_FwType != SE_FW_IMAGE_PARTIAL))
^~~~~~~~~~~~~~~~~~~~
SE_FW_HEADER_TOT_LEN
Core/se_callgate.c:462:64: error: 'SE_FW_IMAGE_PARTIAL' undeclared
################################################################
I couldn't find these macros. Can anyone help me resolve this?
Solved! Go to Solution.
2021-05-24 06:21 AM
It appears to be defined in se_def_metadata.h. Look for that file and ensure it's included before it is used.
2021-05-24 06:21 AM
It appears to be defined in se_def_metadata.h. Look for that file and ensure it's included before it is used.
2021-05-24 08:20 AM
Thanks @TDK it solved the issue. It has not been included. A file named se_def_metadata_template.h was included instead and it didn't have those two macros. Thanks a lot.
I would like to follow up with one more question
If I want to port the SBSFU and SB_COREBIN from F413H to F429 is it enough if I change the following in SBSFU and SB_COREBIN projects and build them?
Then do the SBSFU+header+ STM32F429 firmware merge using the python script?
Is that how it works? or Do I need to do something specific? Can you please give some insight?
2021-05-24 09:42 AM
I would imagine the firmware for the STM32F413 and STM32F429 will be largely compatible, but I don't know the details for this particular situation. Certainly the CMSIS header include file and the linker file will be different between the two, but other firmware should be the same.
2023-06-26 05:02 AM
Hi ADani,
I'm currently working on an exact project to port SBSFU for NUCLEO-F429ZI, however, I'm really new to working with ST tools and examples. Would you please help me find the starting point on how to port the code and which parts to modify?
I'm currently using STM32Cube IDE.
Thanks in advance