Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Mike Moretti
Hi, I totally get that NuttX is open source and community driven. For me, and a lot of people I know in the embedded device industry, whenever I have to choose an OS or framework or library for a device product, whether it's open source or commercial, depending on the kind of product (real pr

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Alan C. Assis
Mike, I think it is similar to other BLE chips supported by NuttX. We need more examples and features, normally people that uses it with NuttX normally figure out how to do something specific for their needs and it is done. So, someone else (this time you) will need to reinvent the wheel. Recentl

Re: bt4 + ble5 (plus wifi) on esp32 where are the docs?!?

2023-09-01 Thread Alan C. Assis
Hi Mike, Actually NuttX doesn't use Zephyr BLE Stack, it uses an ancient BLE stack that Intel released as BSD license. That stack was used on Zephyr and evolved a lot with help from Nordic Semi. It was only a guy from Nordic that started porting that stack to nRF51/nRF52 and Nordic end-up adding

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Tiago Medicci Serrano
Hi! Mike, NuttX is a community-driven project. There are a lot of ongoing developments regarding CI testing, quality control and documentation improvements. This job is mostly done by individual developers, although there are some companies that help do that by keeping their own infrastructure to

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Mike Moretti
12.2.1 is an actual release.  How did it pass testing and end up as an actual release? Unfortunately, all of this is leading me to believe that NuttX bluetooth support for esp32 is just not mature or production quality and probably should not be in any kind of actual "release" version of NuttX

Re: bt4 + ble5 (plus wifi) on esp32 where are the docs?!?

2023-09-01 Thread Mike Moretti
Unfortunately, from what I remember, nimble only supports ble5?  I didn't think it supported bt4 (classic).  The app I'm writing has to support being a beacon using both. So, the ble implementation in NuttX is all on someone's head and not documented anywhere?  Who wrote it?  How do you even k

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Tiago Medicci Serrano
Hi! Well, I was finally able to reproduce something similar to what you've reported. When I switched to ` nuttx-12.2.1`, I was able to see the NuttShell console indication but I wasn't able to type anything on it. Could you please get nuttx from git e build from master? I did the same and I appl

Re: bt4 + ble5 (plus wifi) on esp32 where are the docs?!?

2023-09-01 Thread Tiago Medicci Serrano
Hi! There is no documentation available for that, but I can add some information about BLE and Wi-Fi and, hopefully, you can try and submit an example application for the NuttX community. Well, the `esp32-devkitc:blewifi` already does the radio sharing with Wi-Fi. As you've said, it builds only t

bt4 + ble5 (plus wifi) on esp32 where are the docs?!?

2023-09-01 Thread Mike Moretti
Hi, I still have not heard back about this.  Is there any documentation for developing with BLE on NuttX (with esp32)?  I can't find anything.  I found a presentation that says it's based on Zephyr but the NuttX code doesn't seem to have anything at all in it like what's in the Zephyr api doc

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Lucas Vaz
The make bootloader command, by default, downloads the most recent pre-compiled binaries. Downloading them manually can still be done as long as you make sure you are grabbing the most recent version. You can also build it (or MCUboot) from source by changing the image configuration options in

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Alan C. Assis
Hahaha, true! I use my blog as my personal reference! I always feed my blog, but somethings I forget to update the Documentation/ directory. "Do as I say, not as I do!" ;-) BR, Alan On 9/1/23, Mike Moretti wrote: > Wait, so you're telling me I should submit a PR, but you spent > the time to

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Mike Moretti
Wait, so you're telling me I should submit a PR, but you spent the time to document this on your own web site instead of submitting a PR to the official NuttX docs yourself? ;-) -m On 9/1/2023 10:02 AM, Alan C. Assis wrote: Probably because we didn't update the documentation yet! :-) We're

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Alan C. Assis
Probably because we didn't update the documentation yet! :-) We're developers, we don't care about documentation... documentation is for wimps! Of course we need to improve our documentation! This is why all new PR introducing some new feature I insist to people include documentation. Please c

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Mike Moretti
Wait, so, the NuttX docs say to just download the bootloader/partitions from some link.  If we have to make the bootloader ourselves why isn't that part of the NuttX official documentation? -m On 9/1/2023 9:13 AM, Alan C. Assis wrote: Hi Mike, Please sure you are using the right bootloader t

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Alan C. Assis
Hi Mike, Please sure you are using the right bootloader too: https://acassis.wordpress.com/2022/09/27/flashing-nuttx-bootloader-and-firmware-using-make-command/ BR, Alan On 9/1/23, Mike Moretti wrote: > Hi, > > So, just to be sure, I made a completely fresh directory, untarred the > 12.2.1 ta

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Mike Moretti
Hi, So, just to be sure, I made a completely fresh directory, untarred the 12.2.1 tarballs into it, did ./tools/configure.sh esp32-devkitc:blewifi, changed only DEBUG_ASSERTIONS and DEBUG_ASSERTIONS_EXPRESSION and then flashed.  It boots to nsh but then doesn't accept any input; it's hung.  I

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Tiago Medicci Serrano
Hi Mike, We have been using NuttX on ESP32 for a while. The `esp32-devkitc:blewifi` is run by our internal pipeline (which sets the `DEBUG_ASSERTIONS` and `DEBUG_ASSERTIONS_EXPRESSION`, btw) and we had no problems running it. Again: please use the `esp32-devkitc:nxdiag` configuration and run the