Topic: Compile WolfBoot with a custom hardware initialization via CMake

Hello!

I would like to compile with CMake a bootloader that looks as below:

my-wolfboot-project/
├─ CMakeLists.txt
├─ src/
│  ├─ main.c             # Your custom entry point
│  └─ hw_init.c          # Optional hardware setup
├─ include/
│  └─ hw_init.h
└─ wolfboot/             # WolfBoot source (submodule or copy)
   ├─ ... (wolfBoot sources)

In main.c, I'll have a main function that performs some specific hardware configuration (GPIO, etc.) to then call "loader_main" and let Wolfboot does its magic.

I cannot find a place in the documentation where this case is described. I do not understant if I need to include Wolfboot sources or link against a static library.

Does anyone has some experience regarding this approach?

Thanks!

Share

Re: Compile WolfBoot with a custom hardware initialization via CMake

Hello mallenbach,

Welcome to the wolfSSL Forums!

Thanks for reaching out. Could you tell us a bit about your wolfBoot project and where you are located for our support statistics?

I am looping in a colleague to help with your question.

Kind regards,
Eric - wolfSSL Support

3 (edited by mallenbach Yesterday 08:16:17)

Re: Compile WolfBoot with a custom hardware initialization via CMake

Hello Eric - thanks for your quick answer!

I am based in Paris area (France).

The project I am working on is an application running on a STM32F4 that aims at controlling (ON / OFF / RESET) a battery-powered power supply with some telemetry. Since this is remotely operated, I am looking for a safe way to perform FUOTA and integrity checks.

I am trying to understand if the CMake integration done in WolfBoot is mature and can easily be integrated in another project to do some "extensions" like this custom hardware integration.

Thanks.

Share