You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Ujjval Rathod <uj...@gmail.com> on 2024/06/11 04:01:32 UTC

Trying to build simple ble application fails

Hi,

When I try to build a simple BLE application it fails with following error


*Building target targets/ble_tgt1Error: Config for package
@apache-mynewt-nimble/nimble/transport: setting BLE_HCI_EVT_BUF_SIZE does
not have required value field*

What is this error and how to solve this? Internet search did not have that
much content.

Regards,
Ujjval

Re: Trying to build simple ble application fails

Posted by Ujjval Rathod <uj...@gmail.com>.
I updated the newt and now it is working fine.
Thank you so much.

Regards,
Ujjval

On Mon, Jun 17, 2024 at 9:16 PM Szymon Janc <sz...@codecoup.pl> wrote:

> Hi,
>
> Looks like you are using mynewt 1.9 but your nimble repository is head of
> master branch.
> Mynewt 1.9 was released with NimBLE 1.4.
>
> You should either set NimBLE to 1.4 (`newt upgrade` should do it) or you
> update your project to latest release which should give you NimBLE 1.7
> Also note that using NimBLE from master branch will likely require Mynewt
> from master as well as newt tool build from master branch..
>
>
>
> On Tue, 11 Jun 2024 at 09:38, Ujjval Rathod <uj...@gmail.com>
> wrote:
>
> > Hi,
> >
> > Here is the output
> >
> > $newt info
> > Apache Newt 1.9.0 / unknown / 2024-05-21_17:20
> > Repository info:
> >     * apache-mynewt-core: b9ca5270c7954815c41e4451345f04d300b8e9fa, 1.9.0
> >     * apache-mynewt-mcumgr: 62009e0ef131762f966e2f877bc467fb5743d35b,
> 0.2.0
> >     * apache-mynewt-nimble: 89d6fd6c474e3273abe33d18794d69968a145366,
> > 0.0.0, (dirty: local changes)
> >     * mcuboot: 137d79717764ed32d5da4b4b301f32f81b2bf40f, 0.0.0
> >
> > $ newt target show ble_tgt1
> > targets/ble_tgt1
> >     app=apps/ble_app
> >     bsp=@apache-mynewt-core/hw/bsp/nordic_pca10040
> >     build_profile=optimized
> >
> > Regards,
> > Ujjval
> >
> > On Tue, Jun 11, 2024 at 12:46 PM Szymon Janc <sz...@codecoup.pl>
> > wrote:
> >
> > > Hi,
> > >
> > > What version do you use? This setting was defunct in NimBLE 1.5 ?
> > > Also please share your repo and target configuration
> > >
> > > newt info
> > > newt target show ble_tgt1
> > >
> > >
> > >
> > > On Tue, 11 Jun 2024 at 05:59, Ujjval Rathod <ujjwalrathod007@gmail.com
> >
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > When I try to build a simple BLE application it fails with following
> > > error
> > > >
> > > >
> > > > *Building target targets/ble_tgt1Error: Config for package
> > > > @apache-mynewt-nimble/nimble/transport: setting BLE_HCI_EVT_BUF_SIZE
> > does
> > > > not have required value field*
> > > >
> > > > What is this error and how to solve this? Internet search did not
> have
> > > that
> > > > much content.
> > > >
> > > > Regards,
> > > > Ujjval
> > > >
> > >
> > >
> > > --
> > > pozdrawiam
> > > Szymon K. Janc
> > >
> >
>
>
> --
> pozdrawiam
> Szymon K. Janc
>

Re: Trying to build simple ble application fails

Posted by Szymon Janc <sz...@codecoup.pl>.
Hi,

Looks like you are using mynewt 1.9 but your nimble repository is head of
master branch.
Mynewt 1.9 was released with NimBLE 1.4.

You should either set NimBLE to 1.4 (`newt upgrade` should do it) or you
update your project to latest release which should give you NimBLE 1.7
Also note that using NimBLE from master branch will likely require Mynewt
from master as well as newt tool build from master branch..



On Tue, 11 Jun 2024 at 09:38, Ujjval Rathod <uj...@gmail.com>
wrote:

> Hi,
>
> Here is the output
>
> $newt info
> Apache Newt 1.9.0 / unknown / 2024-05-21_17:20
> Repository info:
>     * apache-mynewt-core: b9ca5270c7954815c41e4451345f04d300b8e9fa, 1.9.0
>     * apache-mynewt-mcumgr: 62009e0ef131762f966e2f877bc467fb5743d35b, 0.2.0
>     * apache-mynewt-nimble: 89d6fd6c474e3273abe33d18794d69968a145366,
> 0.0.0, (dirty: local changes)
>     * mcuboot: 137d79717764ed32d5da4b4b301f32f81b2bf40f, 0.0.0
>
> $ newt target show ble_tgt1
> targets/ble_tgt1
>     app=apps/ble_app
>     bsp=@apache-mynewt-core/hw/bsp/nordic_pca10040
>     build_profile=optimized
>
> Regards,
> Ujjval
>
> On Tue, Jun 11, 2024 at 12:46 PM Szymon Janc <sz...@codecoup.pl>
> wrote:
>
> > Hi,
> >
> > What version do you use? This setting was defunct in NimBLE 1.5 ?
> > Also please share your repo and target configuration
> >
> > newt info
> > newt target show ble_tgt1
> >
> >
> >
> > On Tue, 11 Jun 2024 at 05:59, Ujjval Rathod <uj...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > When I try to build a simple BLE application it fails with following
> > error
> > >
> > >
> > > *Building target targets/ble_tgt1Error: Config for package
> > > @apache-mynewt-nimble/nimble/transport: setting BLE_HCI_EVT_BUF_SIZE
> does
> > > not have required value field*
> > >
> > > What is this error and how to solve this? Internet search did not have
> > that
> > > much content.
> > >
> > > Regards,
> > > Ujjval
> > >
> >
> >
> > --
> > pozdrawiam
> > Szymon K. Janc
> >
>


-- 
pozdrawiam
Szymon K. Janc

Re: Trying to build simple ble application fails

Posted by Ujjval Rathod <uj...@gmail.com>.
Hi,

Here is the output

$newt info
Apache Newt 1.9.0 / unknown / 2024-05-21_17:20
Repository info:
    * apache-mynewt-core: b9ca5270c7954815c41e4451345f04d300b8e9fa, 1.9.0
    * apache-mynewt-mcumgr: 62009e0ef131762f966e2f877bc467fb5743d35b, 0.2.0
    * apache-mynewt-nimble: 89d6fd6c474e3273abe33d18794d69968a145366,
0.0.0, (dirty: local changes)
    * mcuboot: 137d79717764ed32d5da4b4b301f32f81b2bf40f, 0.0.0

$ newt target show ble_tgt1
targets/ble_tgt1
    app=apps/ble_app
    bsp=@apache-mynewt-core/hw/bsp/nordic_pca10040
    build_profile=optimized

Regards,
Ujjval

On Tue, Jun 11, 2024 at 12:46 PM Szymon Janc <sz...@codecoup.pl>
wrote:

> Hi,
>
> What version do you use? This setting was defunct in NimBLE 1.5 ?
> Also please share your repo and target configuration
>
> newt info
> newt target show ble_tgt1
>
>
>
> On Tue, 11 Jun 2024 at 05:59, Ujjval Rathod <uj...@gmail.com>
> wrote:
>
> > Hi,
> >
> > When I try to build a simple BLE application it fails with following
> error
> >
> >
> > *Building target targets/ble_tgt1Error: Config for package
> > @apache-mynewt-nimble/nimble/transport: setting BLE_HCI_EVT_BUF_SIZE does
> > not have required value field*
> >
> > What is this error and how to solve this? Internet search did not have
> that
> > much content.
> >
> > Regards,
> > Ujjval
> >
>
>
> --
> pozdrawiam
> Szymon K. Janc
>

Re: Trying to build simple ble application fails

Posted by Szymon Janc <sz...@codecoup.pl>.
Hi,

What version do you use? This setting was defunct in NimBLE 1.5 ?
Also please share your repo and target configuration

newt info
newt target show ble_tgt1



On Tue, 11 Jun 2024 at 05:59, Ujjval Rathod <uj...@gmail.com>
wrote:

> Hi,
>
> When I try to build a simple BLE application it fails with following error
>
>
> *Building target targets/ble_tgt1Error: Config for package
> @apache-mynewt-nimble/nimble/transport: setting BLE_HCI_EVT_BUF_SIZE does
> not have required value field*
>
> What is this error and how to solve this? Internet search did not have that
> much content.
>
> Regards,
> Ujjval
>


-- 
pozdrawiam
Szymon K. Janc