Example project mcuboot_opensource does not build

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Example project mcuboot_opensource does not build

540 次查看
jonasa
Contributor III

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 项奖励
回复
1 回复

497 次查看
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 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2364909%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E7%A4%BA%E4%BE%8B%E9%A1%B9%E7%9B%AE%20mcuboot_opensource%20%E6%97%A0%E6%B3%95%E6%9E%84%E5%BB%BA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2364909%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%E3%80%81%20%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E6%9E%84%E5%BB%BA%E4%BB%A5%E4%B8%8B%E7%A4%BA%E4%BE%8B%E9%A1%B9%E7%9B%AE%EF%BC%9A%3CBR%20%2F%3EC%3A%5Cwork%5Cmcx%5Cmcuxpresso-sdk%5C%20mcuxsdk%5C%20examples%5C%20ota_examples%5C%20ota_examples%5C%20ota_mcuboot_basic%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%E4%BD%BF%E7%94%A8%E8%BF%99%E4%B8%AA%E5%91%BD%E4%BB%A4%EF%BC%9A%3CBR%20%2F%3E(.venv-mcx)%20C%3A%5Cwork%5Cmcx%5Cmcuxpresso-sdk%20%26gt%3B%20west%20build-b%20frdmcxe31b-d%20build_mcuboot%20mcuboot%20mcuxsdk%5C%20examples%5C%20ota_examples%5C%20mcuboot_opensource%5C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E7%84%B6%E5%90%8E%E5%87%BA%E7%8E%B0%E8%BF%99%E4%B8%AA%E9%94%99%E8%AF%AF%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3E%20C%3A%20%2Fwork%2Fmcx%2Fmcuxpresso-sdk%2Fmcuxsdk%2Fexamples%2F_boards%2Ffrdmmcxe31b%2Fota_examples%2Fmcuboot_opensource%2Fflash_partitioning.h%3A%2011%3A10%EF%BC%9A%E8%87%B4%E5%91%BD%E9%94%99%E8%AF%AF%EF%BC%9Amcuboot_config.h%EF%BC%9A%E6%B2%A1%E6%9C%89%E8%BF%99%E6%A0%B7%E7%9A%84%E6%96%87%E4%BB%B6%E6%88%96%E7%9B%AE%E5%BD%95%3C%2FEM%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3E%2011%20%7C%20%23include%20%22%20mcuboot_config.h%20%22%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EMcuBoot%20%E6%96%87%E4%BB%B6%E5%A4%B9%E5%9C%A8%E8%BF%99%E9%87%8C%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3EC%3A%5Cwork%5Cmcx%5Cmcuxpresso-sdk%5C%20mcuxsdk%5C%20%E4%B8%AD%E9%97%B4%E4%BB%B6%5C%20mcuboot%20%3CSTRONG%3E%3CEM%3E%3CBR%20%2F%3E%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%E9%97%AE%E9%A2%98%E5%8F%AF%E8%83%BD%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%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%3E%E6%82%A8%E8%83%BD%E5%90%A6%E5%B8%AE%E5%8A%A9%E6%88%91%E4%BB%AC%E7%A1%AE%E8%AE%A4%E6%82%A8%E6%98%AF%E5%9C%A8%20MCUXpresso%20for%20Visual%20studio%20%E4%BB%A3%E7%A0%81%E4%B8%AD%E8%BF%90%E8%A1%8C%E7%A4%BA%E4%BE%8B%EF%BC%9F%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E6%98%AF%E5%90%A6%E5%AF%B9%20flash_partitioning.h%20%E8%BF%9B%E8%A1%8C%E4%BA%86%E4%BF%AE%E6%94%B9%EF%BC%9F%E6%96%87%E4%BB%B6%EF%BC%9F%3C%2FP%3E%0A%3CP%3E%E5%9C%A8%E4%BD%A0%E7%9A%84%E4%B8%AD%E9%97%B4%E4%BB%B6%E6%96%87%E4%BB%B6%E5%A4%B9%E9%87%8C%E9%99%A4%E4%BA%86%20mcuboot%20%E4%B9%8B%E5%A4%96%E8%BF%98%E6%9C%89%20mcuboot_opensource%20%E5%90%97%EF%BC%9F%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E8%83%BD%E6%8F%8F%E8%BF%B0%E4%B8%80%E4%B8%8B%E5%A6%82%E4%BD%95%E5%AF%BC%E5%85%A5%20ota_mcuboot_basic%20%E7%A4%BA%E4%BE%8B%E5%90%97%EF%BC%9F%3C%2FP%3E%0A%3CP%3E%E6%88%91%E5%B0%9D%E8%AF%95%E5%9C%A8%20Visual%20studio%20%E4%BB%A3%E7%A0%81%E5%92%8C%20MCUXpresso%20IDE%20%E4%B8%AD%E4%BB%8E%20SDK%20%E4%B8%AD%E5%AF%BC%E5%85%A5%20%5Bota_mcuboot_basic%5D%EF%BC%8C%E7%94%A8%20FRDM-MCXE31B%20%E5%A4%8D%E5%88%B6%E6%AD%A4%E9%94%99%E8%AF%AF%EF%BC%8C%E4%BD%86%E7%9B%AE%E5%89%8D%E6%97%A0%E6%B3%95%E5%A4%8D%E5%88%B6%E3%80%82%3C%2FP%3E%0A%3CP%3E%E5%A6%82%E6%9E%9C%E6%82%A8%E8%83%BD%E5%88%86%E4%BA%AB%E4%B8%80%E4%B8%8B%E6%82%A8%E7%9A%84%E8%AE%BE%E7%BD%AE%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B0%86%E4%B8%8D%E8%83%9C%E6%84%9F%E6%BF%80%E3%80%82%3C%2FP%3E%0A%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E