I am using Ubuntu 20.04.

After successfully installed OpenOCD, I tried  command: openocd -v.

And it showed the following message:
*openocd: error while loading shared libraries: libhidapi-hidraw.so.0:
cannot open shared object file: No such file or directory*

According to the Mynewt tutorial, one needs to try to install the missing
library: libhidapi-dev:i386

I then tried: sudo apt-get install libhidapi-dev:i386at gave the following
error:

*E: Unable to locate package libhidapi-dev:i386*

I then tried: udo apt-get install libhidapi-dev. It seemed some libraries
were installed. However, when tired: openocd -v, it showed the same error
message.

Did anyone meet the same issue? Is there a solution?

Any guidance is appreciated!

Thanks,


On Sat, May 16, 2020 at 12:03 PM Mo Chen <shanyechu...@gmail.com> wrote:

> Great.
>
> Two more questions:
>
> Version 1.8.0 has already been released, why when we try to install the
> latest version, it still installs 1.7.0? Can we fix that?
>
>
> On Ubuntu Linux, under version 1.7.0, with Nordic-pca10040, the IRS works
> fine. However, with the adafruit feather nrf52, the OTA disconnects at
> 99.92% and shows error: disconnected. Any clue?
>
> I was trying to get rid of it by upgrading to a newer version. But on
> Linux, it doesn't seem there is such an instruction on how to install 1.9.0
> dev. Would you please guide me on this?
>
>
> Many thanks!
>
>
>
>
> Mo Chen
>
> On Sat, May 16, 2020, 10:43 Christopher Collins <ccollins47...@gmail.com>
> wrote:
>
>> Thanks Mo.  Someone else reported the same issue with Catalina.  Their
>> `-ldebug` log looked identical to yours.  I'll upgrade to catalina and
>> let you know what I find out.
>>
>> Chris
>>
>> On Sat, May 16, 2020 at 10:10:34AM -0500, Mo Chen wrote:
>> > Hi Chris,
>> >
>> > thanks for the clarification.
>> >
>> > I tried with the following debug info returned:
>> >
>> > newtmgr image upload -c mybleprph -ldebug
>> >
>> /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img
>> >
>> > DEBU[2020-05-16 10:03:28.615] Using connection profile: name=mybleprph
>> > type=ble connstring=peer_name=nimble-bleprph
>> > DEBU[2020-05-16 10:03:28.621] CentralManagerDidUpdateState:
>> cmgr=0x5804b50
>> >
>> > No further responses shown. No signs of connection. Under this status, I
>> > checked the BLE advertise using my phone, the device is still
>> advertising,
>> > meaning the connection is not established.
>> >
>> > Would you please help interpret what the message code means?
>> >
>> > other details:
>> >
>> > newt version: 1.9.0
>> > newtmgr version: 1.9.0
>> > Device: nordic pca10040
>> >
>> > The same method works under version 1.7.0 on Ubuntu Linux. So we can
>> > confirm the device works.
>> >
>> > Thanks,
>> >
>> >
>> > On Fri, May 15, 2020 at 9:15 PM Christopher Collins <
>> ccollins47...@gmail.com>
>> > wrote:
>> >
>> > > On Fri, May 15, 2020 at 07:47:22PM -0500, Mo Chen wrote:
>> > > > Hi Chris,
>> > > >
>> > > > Thank you for your timely response.
>> > > >
>> > > > Under v1.7.0, the error message is:
>> > > > *Unhandled event: xpc.Dict{"kCBMsgId":4,
>> > > > "kCBMsgArgs":xpc.Dict{"kCBMsgArgState":5}}*
>> > > >
>> > > > Under v1.9.0 dev, without '--ldebug':
>> > > > Nothing happens. No message, no response.
>> > > >
>> > > > Under v1.9.0 with '--ldebug':
>> > > > I guess I did not get what you meant by "with the '--ldebug'
>> switch". I
>> > > > tried the following but with an error telling me unknown flag.
>> > > >
>> > > > newtmgr image upload -c mybleprph '--ldebug'
>> > > >
>> > >
>> /Users/NNL/dev/myproj/bin/targets/myperiph/app/@apache-mynewt-nimble/apps/bleprph/bleprph.img
>> > > > Error: unknown flag: --ldebug
>> > > >
>> > > > Would you please guide me on how to implement the --ldebug switch?
>> > >
>> > > Ah, sorry,  I meant `-ldebug` (one dash only)!
>> > >
>> > > Thanks,
>> > > Chris
>> > >
>> >
>> >
>> > --
>> > Mo Chen
>>
>

-- 
Mo Chen

Reply via email to