newtmgr OTA error: slice bounds out of range [:-62]

2022-09-15 Thread Mo Chen
github.com/spf13/cobra.(*Command).Execute(...) /Users/mndrive/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864 main.main() /Users/mndrive/Downloads/apache-mynewt-newtmgr-1.10.0/newtmgr/newtmgr.go:111 +0x16f -- Mo Chen

Re: nrf5340 DK ADC driver

2022-07-05 Thread Mo Chen
ic/nrf5340/pkg.yml#L58 > > On Tue, 24 May 2022 at 21:19, Mo Chen wrote: > > > > Hi all, > > > > I am developing using the nrf5340DK pca10095. > > > > I noticed that in the @apache-mynewt-core/hw/drivers/adc/ folder, there > is > > no nrf53 serie

Re: Upcoming Apache Mynewt 1.11

2022-07-05 Thread Mo Chen
l requests! > > Please note that this will be coordinated with NimBLE 1.6 release. > > -- > pozdrawiam > Szymon K. Janc > -- Mo Chen

Re: error using newt new command

2022-05-23 Thread Mo Chen
gt; > Yes, this is unfortunately bug in 1.10 release > Please use "shallow" option when creating new project: > newt new --shallow=0 myproj > > > On Thu, 19 May 2022 at 04:43, Mo Chen wrote: > > > Hi all, > > > > I got the following error when trying the &q

error using newt new command

2022-05-18 Thread Mo Chen
git fetch --unshallow".* *Error: error: pathspec 'mynewt_1_10_0_tag' did not match any file(s) known to git* -- Mo Chen

Re: Errors in installing v1.10.0

2022-05-17 Thread Mo Chen
the default version 1.10.0 instead of 1.9.0. Thanks, On Tue, May 17, 2022 at 8:47 AM Mo Chen wrote: > Hi all, > > I encountered the following errors in installing v1.10.0. Would you please > help with this? > > Platform: MacOS Monterey v12.3.1 > > 1. Using the comman

Errors in installing v1.10.0

2022-05-17 Thread Mo Chen
4.go:166:3: //go:linkname must refer to declared function or variable /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/ golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:166:3: too many errors -- Mo Chen

Examples won't build on MacOS Monterey 12.2.1

2022-02-26 Thread Mo Chen
shows up. Any suggestions? Thanks, -- Mo Chen

Re: About mynewt support for nRF5340-dk board.

2021-04-20 Thread Mo Chen
s, > Ujjval Rathod. > -- Mo Chen

Re: Reviews for New product

2020-11-07 Thread Mo Chen
Hi Adityaraj, I am interested in giving this a try. Please let me know how to proceed. Thanks & Regards Mo On Sat, Nov 7, 2020, 23:31 Aditya Raj Bhatt wrote: > Hello Zephyr Project Group, > > > > I'm writing this mail to let you know about the new product that our > startup has created that

How does Mynewt manage priority of different event queues

2020-08-16 Thread Mo Chen
, but not sure if that is the case. Thanks, -- Mo Chen

Re: Include all ADC ports in drivers and core code for nrf52

2020-06-28 Thread Mo Chen
Great. I will give it a try and let you know how it goes. Thank you for your response. It helps. Mo On Sun, Jun 28, 2020, 04:20 Casper Meijn wrote: > Hi Mo Chen, > > I am not part of the core team. I have used the ADC on the nRF52832. As > I understood it, it has a single AD

Re: Include all ADC ports in drivers and core code for nrf52

2020-06-23 Thread Mo Chen
ev, "adc6", OS_DEV_INIT_KERNEL, OS_DEV_INIT_PRIO_DEFAULT, nrf52_adc_dev_init, _bsp_adc6_config); assert(rc == 0); #endif } -- Mo Chen

Re: Nimble on NRF52 : connectivity issue with Android, stack seems to freeze

2020-06-15 Thread Mo Chen
Maybe I should direct my question to JF then. Thanks for your reply. Mo Chen On Mon, Jun 15, 2020, 10:18 Mo Chen wrote: > Hi Lukasz, > > We are also trying FreeRTOS + Nimble on nrf52. Have you realized DFU OTA > via BLE with FreeRTOS? We are not sure if this is something doable

Re: Nimble on NRF52 : connectivity issue with Android, stack seems to freeze

2020-06-15 Thread Mo Chen
t;> same > > >> place. > > >> - I noticed that the tasks (ll task and host task are not in > > >> deadlock > > >> BUT it looks like the radio ISR (ble_phy_isr() in ble_phy.c) is not > > >> called anymore. > > >> - When I build the very same code in DEBUG (-Og instead of -O3), it > > >> works perfectly! > > >> > > >> You'll find in attachements 2 captures I did with Wireshark and the > > >> NRF > > >> Sniffer (running on a NRF52-DK), one failed and one successful attempt > > >> to connect. > > >> > > >> I'm running out of idea to debug this further. Is there a > > >> configuration > > >> issue (there are so many parameters in syscfg.h)? What could I try? > > >> Where should I search ? Do you need more info to understand the > > >> issue? > > >> > > >> Could you help me fix this issue? > > >> > > >> Thanks, > > >> > > >> JF > > > -- Mo Chen

ADC function on nrf52 with version 1.8.0

2020-06-10 Thread Mo Chen
Hi all, Since the 1.8.0 adopted a new version of the nrfx driver. The old ADC code is not working. I wonder if there is a tested working ADC example available for nrf52 with version 1.8.0? I have been working on this for almost two weeks to get it work but with no success. The ADC always gives

Re: Backport nrf52 driver nrfx 2.1.0 to nrfx 1.8.x.

2020-06-10 Thread Mo Chen
gative" Thanks, struct adc_chan_cfg cc = { .pin = (nrf_saadc_input_t)(NRF_SAADC_INPUT_AIN1), .differential = false, .pin_negative = (nrf_saadc_input_t)(NRF_SAADC_INPUT_DISABLED), .gain = ADC_GAIN1_6, .reference = ADC_REFERENCE_INTERNAL }; On Wed, Jun 10, 2020 at 2:42 PM Mo Chen wrote: >

Re: Backport nrf52 driver nrfx 2.1.0 to nrfx 1.8.x.

2020-06-10 Thread Mo Chen
t; > > > > > > On 10. Jun 2020, at 17:26, Mo Chen wrote: > > > > > > Hi Andrew, > > > > > > Would you please attach the blog post you mentioned? > > > > It was attached so I guess the mailing list software strips attachments.

Re: Backport nrf52 driver nrfx 2.1.0 to nrfx 1.8.x.

2020-06-10 Thread Mo Chen
Hi Andrew, Would you please attach the blog post you mentioned? Thanks, On Wed, Jun 10, 2020 at 10:23 AM Andrew Stevenson wrote: > > > > On 10. Jun 2020, at 16:51, Mo Chen wrote: > > > > BTW: I am using 1.9.0 dev. I could not figure out how to install 1.8.0 on

Re: Backport nrf52 driver nrfx 2.1.0 to nrfx 1.8.x.

2020-06-03 Thread Mo Chen
driver > works well and we need consistent APIs. I f you need I can help you to > update your old code but I see no reason for us to regress. Feel free to > reach me through this e-mail address or through mynewt's slack (my handle > is mlaz). > > Thanks, > > Miguel > &g

Backport nrf52 driver nrfx 2.1.0 to nrfx 1.8.x.

2020-06-03 Thread Mo Chen
. Unfortunately, for now, we do not have any examples available for the new driver. I would recommend you to stick with the driver from nrfx v1.8.x for now. Best regards, Jørgen - Mo Chen

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-17 Thread Mo Chen
is not working. Needs to be modified. I am working on it now. Thanks, On Sat, May 16, 2020 at 12:03 PM Mo Chen 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

OpenOCD error: libhidapi-hidraw.so.0

2020-05-16 Thread Mo Chen
, 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 wrote: > Great. > > Two more questions: > > Version 1.8.0 has already been released,

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-16 Thread Mo Chen
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

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-16 Thread Mo Chen
Christopher Collins 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, > > &q

Re: How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-15 Thread Mo Chen
Error: unknown flag: --ldebug Would you please guide me on how to implement the --ldebug switch? Thanks, On Fri, May 15, 2020 at 5:45 PM Christopher Collins wrote: > Hi Mo, > > On Fri, May 15, 2020 at 05:11:36PM -0500, Mo Chen wrote: > > I am currently using 1.7.0 on MacOS Cata

How to upgrade to 1.8.0 for both newt and newtmgr?

2020-05-15 Thread Mo Chen
I am currently using 1.7.0 on MacOS Catalina. There is a BLE connection issue. I cannot upload img via OTA. I searched online, it seems in verison 1.8.0, this problem has been solved? I tried to use install mynewt-newtmgr --HEAD. The 1.9.0 dev version did not solve the BLE connection issue.