apache/mynewt-newt

Unable to build a "split target"

Closed this issue · 2 comments

Trying to build a split target setup following the Mynewt documentation,
I've configured the following targets:
Loader:
targets/thingy-loader
app=@apache-mynewt-core/apps/bleprph
bsp=@apache-mynewt-core/hw/bsp/nordic_pca20020
build_profile=optimized
syscfg=BLE_LL_CFG_FEAT_LE_ENCRYPTION=0:BLE_SM_LEGACY=0

Application:

targets/split-app
app=@apache-mynewt-core/apps/splitty
bsp=@apache-mynewt-core/hw/bsp/nordic_pca20020
build_profile=optimized
loader=@apache-mynewt-core/apps/bleprph
syscfg=BLE_LL_CFG_FEAT_LE_ENCRYPTION=0:BLE_SM_LEGACY=0

The loader target builds properly but I get the following error when building the application:

Error: Two app packages in build: apps/bleprph, apps/splitty

So, either a newt tool bug or an outdated documention ?

BTW, I didn't find any explanation in the documentation to build a monolithic (One large image; upgrade not supported) application.

Thanks.

Hi @flyingbepi. I am not able to replicate that exact problem, but I noticed that split image support is indeed broken.

This PR fixes the problem for me: #293. Would you mind giving it a try?

Hi Chris,

Unfortunately, this PR didn't fix my issue since I got exactly the same error message.
Regards.