adafruit / Adafruit_Mynewt

Apache Mynewt documentation and test project for the nRF5x family of BLE SoCs
MIT License
8 stars 3 forks source link

newtmgr image list on BLEUART versus THROUGHPUT #22

Closed microbuilder closed 8 years ago

microbuilder commented 8 years ago

The following commands works fine on bleuart but won't run on throughput:

$ newtmgr -c serial1 image list
Images:
    0 : 0.2.2

The pkg.yml dependencies look similar ... but what is required for newtmgr to work properly here? The only difference seems to be:

    - "@apache-mynewt-core/libs/imgmgr"
    - "@apache-mynewt-core/fs/nffs"

I added those but the command still fails with throughput. We must be missing an init call in the throughput example?

Throughput Dependencies:

pkg.deps:
    - "libs/adautil"
    - "libs/fifo"
    - "libs/bleuart"
    - "libs/bledis"
    #- "@apache-mynewt-core/libs/bleuart"
    - "@apache-mynewt-core/libs/os"
    - "@apache-mynewt-core/libs/baselibc"
    - "@apache-mynewt-core/libs/console/full"
    - "@apache-mynewt-core/libs/shell"
    - "@apache-mynewt-core/libs/util"
    - "@apache-mynewt-core/libs/newtmgr"
    - "@apache-mynewt-core/libs/newtmgr/transport/ble"
    - "@apache-mynewt-core/sys/log"
    - "@apache-mynewt-core/net/nimble/controller"
    - "@apache-mynewt-core/net/nimble/host"
    - "@apache-mynewt-core/net/nimble/host/services/gap"
    - "@apache-mynewt-core/net/nimble/host/services/gatt"
    - "@apache-mynewt-core/net/nimble/host/store/ram"
    - "@apache-mynewt-core/net/nimble/transport/ram"
    - "@apache-mynewt-core/libs/crash_test"

BLEUART Dependencies:

pkg.deps:
    - "libs/adautil"
    - "libs/fifo"
    - "libs/bleuart"
    - "libs/bledis"
    - "@apache-mynewt-core/libs/os"
    - "@apache-mynewt-core/libs/baselibc"
    - "@apache-mynewt-core/libs/console/full"
    - "@apache-mynewt-core/libs/shell"
    - "@apache-mynewt-core/libs/util"
    - "@apache-mynewt-core/libs/newtmgr"
    - "@apache-mynewt-core/libs/newtmgr/transport/ble"
    - "@apache-mynewt-core/libs/imgmgr"
    - "@apache-mynewt-core/fs/nffs"
    - "@apache-mynewt-core/sys/log"
    - "@apache-mynewt-core/net/nimble/controller"
    - "@apache-mynewt-core/net/nimble/host"
    - "@apache-mynewt-core/net/nimble/host/services/gap"
    - "@apache-mynewt-core/net/nimble/host/services/gatt"
    - "@apache-mynewt-core/net/nimble/host/store/ram"
    - "@apache-mynewt-core/net/nimble/transport/ram"
microbuilder commented 8 years ago

imgmgr_module_init(); was missing from the throughput example. The command works fine with the function added in.

microbuilder commented 8 years ago

I removed the line