apache / mynewt-core

An OS to build, deploy and securely manage billions of devices
https://mynewt.apache.org/
Apache License 2.0
820 stars 367 forks source link

BUILD fail for nrf5340dk board Error: Could not resolve BSP package: @apache-mynewt-core/hw/bsp/nordic_pca10095 #3110

Closed SatishSolankeEsp closed 5 months ago

SatishSolankeEsp commented 9 months ago

Hi I am trying to create the ble project with blehci , created two target for nrf5340dk image but show the above error while building the target.

i could also see the couple of warning as below : image

Please help to build project for nrf5340dk. I would like flash the mynewt ble controller on nrf via hci .

Thanks, Satish

sjanc commented 9 months ago

Hi,

this looks like repositories are not installed, did you run 'newt upgrade' ? what does 'newt info' shows?

SatishSolankeEsp commented 9 months ago

image image newt info and newt upgrade shows warning like above .

sjanc commented 9 months ago

looks like you are using very old version (1.4) of mynewt, please get latest newt tool from https://mynewt.apache.org/download/ and than either create new project or adjust your project.yml to point to 1.11.0 and do newt upgrade

SatishSolankeEsp commented 9 months ago

image I Have change newt to 1.10.0 and still not able to build shows above errors .

I am not able to create new project show below error image

sjanc commented 9 months ago

newt 1.10 had a bug, so either use newt 1.11 or try 'newt new --shallow=0 sniffproj'

as for unknown gcc option, you probably need to upgrade your toolchain

SatishSolankeEsp commented 9 months ago

I switch back to newt 1.9.0 works fine able to create new proj. Build shows new error now: image

for gcc error i will check how to upgrade toolchain image

Could you also guide on how to upgrade toochain ? This is my current gcc version : image

sjanc commented 9 months ago

I strongly suggest to test with newt 1.11, there were a lot of nrf53 related improvements in latest releases

As for ARM GCC update, you can either update ubuntu (18.04 is quite old...) or download one from ARm directly https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads (I suggest using GCC 12 as 13 may give you some compilation warning we haven't fix yet)

Also, you may want to check cwiki for nRF53 on Mynewt: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=177047756 (and I'd recommend to use NRF5340_EMBED_NET_CORE:1 option instead of building own netcore image)

SatishSolankeEsp commented 8 months ago

Hello @sjanc, with regard to the nrf53840dk and nrf52840dk chipset, which Ubuntu version would you recommend that I install for my new setup? In fact, I'm having trouble setting up with newt1.11 and Ubuntu 18.04. Could you please comment? Ubuntu 20.04 or Ubuntu 22.04?

Step as follow: 1) repo init for mynewtnimble and mynewtcore. 4) FT32 and nrf53 tx and rx connection both are detecting the port. (Jlink installed for nrf) 2) downloading tag of newt1.11 and install using build.sh 3) creating proj and building it.

does above steps ok for mynewt setup with nrf53 or nrf52

Thanks, Satish

sjanc commented 5 months ago

Hi, is this stil an issue?

SatishSolankeEsp commented 5 months ago

No, Please Close.