Re: I2C on nRF52840

2021-01-09 Thread Matias N.
I was about to enable error support but I noticed it is disabled in-code. From the look of it there's not that much else to do but to issue a STOP. Regarding the error I'm receiving, I'm seeing a NACK for every possible address, so I either have the wrong set of pins for the device or there some

Re: I2C on nRF52840

2021-01-09 Thread Brennan Ashton
If I recall the error handling logic is largely missing for the I2C in interrupt mode. I added some more to improve the situation for polled mode. Have you tried that? --Brennan On Sat, Jan 9, 2021, 7:34 PM Matias N. wrote: > Hi, > > I'm having a hard time getting I2C working on nRF52840, the I

I2C on nRF52840

2021-01-09 Thread Matias N.
Hi, I'm having a hard time getting I2C working on nRF52840, the I2C read operation seems to hang (never reaches ISR). Depending on which set of pins (connected to different I2C device) it either hangs on TXSTARTED or I see the ERROR event set to 0x1. Since this is on a closed device I cannot ve

Re: libcxx and buildroot toolchain

2021-01-09 Thread Gregory Nutt
Is NuttX’ buildroot been adopted into Apache along with NuttX? I looked for it, but couldn’t find it. I have a few updates to push (gcc 8.4, 9, 10). I’d really like to share these… No.  It can't come into the Apache repository because it is GPL (at least not without some special considera

Re: libcxx and buildroot toolchain

2021-01-09 Thread David S. Alessio
Slightly off topic, but related: Is NuttX’ buildroot been adopted into Apache along with NuttX? I looked for it, but couldn’t find it. I have a few updates to push (gcc 8.4, 9, 10). I’d really like to share these… Regards, -david > On Jan 9, 2021, at 8:57 AM, Xiang Xiao wrote: > > On Sat

Re: libcxx and buildroot toolchain

2021-01-09 Thread Xiang Xiao
On Sat, Jan 9, 2021 at 8:11 AM Anthony Merlino wrote: > Thanks for the info Xiang! I was on the right track but it is good to have > some affirmation that I'm not missing something. > > The issue with the Arm maintained toolchain, as Greg has warned many times, > is its use of newlib. Are you doi

Re: libcxx and buildroot toolchain

2021-01-09 Thread Alan Carvalho de Assis
Hi Anthony, Since Xiang already added support for NuttX on libcxx mainstream: https://reviews.llvm.org/D88718?id=303700 I think it is time to phase out my libcxx repository and we will stick to libcxx mainline. Do you agree on that? BR, Alan On 1/9/21, Anthony Merlino wrote: > Thanks for the

Re: libcxx and buildroot toolchain

2021-01-09 Thread Anthony Merlino
Thanks for the info Xiang! I was on the right track but it is good to have some affirmation that I'm not missing something. The issue with the Arm maintained toolchain, as Greg has warned many times, is its use of newlib. Are you doing anything to ensure the wrong math library is not used? I will

Re: libcxx and buildroot toolchain

2021-01-09 Thread Xiang Xiao
On Fri, Jan 8, 2021 at 9:57 AM Anthony Merlino wrote: > Hey all, > > Would someone be willing to share their experience with libcxx and their > toolchain? This toolchain should work: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm > I've