Example project mcuboot_opensource does not build

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Example project mcuboot_opensource does not build

203 Views
jonasa
Contributor II

Hi, 

 

I try to build the following example project:
C:\work\mcx\mcuxpresso-sdk\mcuxsdk\examples\ota_examples\ota_mcuboot_basic

With this command:
(.venv-mcx) C:\work\mcx\mcuxpresso-sdk>west build -b frdmmcxe31b -d build_mcuboot mcuxsdk\examples\ota_examples\mcuboot_opensource\

 

And get this error:

C:/work/mcx/mcuxpresso-sdk/mcuxsdk/examples/_boards/frdmmcxe31b/ota_examples/mcuboot_opensource/flash_partitioning/flash_partitioning.h:11:10: fatal error: mcuboot_config.h: No such file or directory
11 | #include "mcuboot_config.h"

 

MCUBoot folder is here:

C:\work\mcx\mcuxpresso-sdk\mcuxsdk\middleware\mcuboot

What might the issue be?

0 Kudos
Reply
1 Reply

160 Views
luis_maravilla
NXP Employee
NXP Employee

Hello

Could you help us confirm you are running the example in MCUXpresso for Visual studio code?

Have you made modifications on flash_partitioning.h file?

In your middleware folder do you have an mcuboot_opensource besides the mcuboot?

Could you help us describe how do you import the example ota_mcuboot_basic?

I try to replicate this error with FRDM-MCXE31B by importing [ota_mcuboot_basic] from SDK in Visual studio code and MCUXpresso IDE and at the moment I wasn’t able to replicate this.

If you could share your setup, it would be highly appreciated.

Best Regards

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2364909%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20project%20mcuboot_opensource%20does%20not%20build%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2364909%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20try%20to%20build%20the%20following%20example%20project%3A%3CBR%20%2F%3EC%3A%5Cwork%5Cmcx%5Cmcuxpresso-sdk%5Cmcuxsdk%5Cexamples%5Cota_examples%5Cota_mcuboot_basic%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EWith%20this%20command%3A%3CBR%20%2F%3E(.venv-mcx)%20C%3A%5Cwork%5Cmcx%5Cmcuxpresso-sdk%26gt%3Bwest%20build%20-b%20frdmmcxe31b%20-d%20build_mcuboot%20mcuxsdk%5Cexamples%5Cota_examples%5Cmcuboot_opensource%5C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAnd%20get%20this%20error%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3EC%3A%2Fwork%2Fmcx%2Fmcuxpresso-sdk%2Fmcuxsdk%2Fexamples%2F_boards%2Ffrdmmcxe31b%2Fota_examples%2Fmcuboot_opensource%2Fflash_partitioning%2Fflash_partitioning.h%3A11%3A10%3A%20fatal%20error%3A%20mcuboot_config.h%3A%20No%20such%20file%20or%20directory%3C%2FEM%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3E11%20%7C%20%23include%20%22mcuboot_config.h%22%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EMCUBoot%20folder%20is%20here%3A%3CBR%20%2F%3E%3CBR%20%2F%3EC%3A%5Cwork%5Cmcx%5Cmcuxpresso-sdk%5Cmcuxsdk%5Cmiddleware%5Cmcuboot%3CSTRONG%3E%3CEM%3E%3CBR%20%2F%3E%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWhat%20might%20the%20issue%20be%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2365777%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Example%20project%20mcuboot_opensource%20does%20not%20build%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2365777%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%3C%2FP%3E%0A%3CP%3ECould%20you%20help%20us%20confirm%20you%20are%20running%20the%20example%20in%20MCUXpresso%20for%20Visual%20studio%20code%3F%3C%2FP%3E%0A%3CP%3EHave%20you%20made%20modifications%20on%20flash_partitioning.h%20file%3F%3C%2FP%3E%0A%3CP%3EIn%20your%20middleware%20folder%20do%20you%20have%20an%20mcuboot_opensource%20besides%20the%20mcuboot%3F%3C%2FP%3E%0A%3CP%3ECould%20you%20help%20us%20describe%20how%20do%20you%20import%20the%20example%20ota_mcuboot_basic%3F%3C%2FP%3E%0A%3CP%3EI%20try%20to%20replicate%20this%20error%20with%20FRDM-MCXE31B%20by%20importing%20%5Bota_mcuboot_basic%5D%20from%20SDK%20in%20Visual%20studio%20code%20and%20MCUXpresso%20IDE%20and%20at%20the%20moment%20I%20wasn%E2%80%99t%20able%20to%20replicate%20this.%3C%2FP%3E%0A%3CP%3EIf%20you%20could%20share%20your%20setup%2C%20it%20would%20be%20highly%20appreciated.%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%3C%2FLINGO-BODY%3E