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 `nxdiag -all` from the NSH (please refer to https://nuttx.apache.org/docs/latest/platforms/xtensa/esp32/boards/esp32-devkitc/index.html#nxdiag). Please share your results for reevaluation ;) Best regards, Em qui., 31 de ago. de 2023 às 14:00, Mike Moretti <nu...@mordent.com.invalid> escreveu: > It appears that when using the blewifi configuration out of the box, and > just turning on DEBUG_ASSERTIONS and DEBUG_ASSERTIONS_EXPRESSION, and > setting wifi ssid/pw causes the esp32 to hang. This is as far as I've > gotten so far. I'm still tweaking other configs to see if they cause > hanging as well. > > This just does NOT appear to be a stable OS on the ESP32. > > -m > > On 8/31/2023 9:05 AM, Tiago Medicci Serrano wrote: > > Hi! > > > > Good to know that! Yes, there are packages that need to be selected to > make > > it work. The `esp32-devkitc:blewifi` is a good starting point. > > > > Please note that BLE's log is enabled with the other wireless logs > through > > the menuconfig in "*Build Setup → Debug Options*". I hope this helps > > debugging. > > > > Best regards, > > > > Em qua., 30 de ago. de 2023 às 18:29, Mike Moretti > > <nu...@mordent.com.invalid> escreveu: > > > >> Hi, > >> > >> Thanks. It wasn't until I untarred a whole new copy of nuttx+apps and > >> ran tools/configure.sh with blewifi that I was able to get that > >> configuration to work. In my old tree, make distclean apparently didn't > >> clean something, or my old tree was corrupt somehow. > >> > >> However, I still cannot get my own config to work (the one I previously > >> attached). There's a lot more stuff I need enabled than what is enabled > >> by default in the blewifi configuration. I guess I will just have to > >> randomly keep modifying different config params until something works. > >> > >> Thanks, > >> -m > >> > >> On 8/30/2023 3:32 PM, Tiago Medicci Serrano wrote: > >>> Hi Mike, > >>> > >>> I found no trouble using the esp32-devkitc:blewifi configuration. May I > >> ask > >>> you to double-check your bootloader/partition-table configuration? (you > >> can > >>> refer to > >>> > >> > https://nuttx.apache.org/docs/latest/platforms/xtensa/esp32/index.html#bootloader-and-partitions > >>> ). > >>> > >>> If not successful yet, please do the following: > >>> > >>> Select the esp32-devkitc:nxdiag configuration and run the `nxdiag -all` > >>> from the NSH (please refer to > >>> > >> > https://nuttx.apache.org/docs/latest/platforms/xtensa/esp32/boards/esp32-devkitc/index.html#nxdiag > >> ). > >>> Please share your results for reevaluattion ;) > >>> > >>> Best regards, > >>> > >>> Em ter., 29 de ago. de 2023 às 18:03, Tiago Medicci Serrano < > >>> tiago.medi...@gmail.com> escreveu: > >>> > >>>> Hi, > >>>> > >>>> I'll take a look at it soon. Interestingly, our internal CI tests all > >> the > >>>> defconfigs, so I wouldn't expect any erroneous behavior. > >>>> > >>>> I'll check. > >>>> > >>>> Best regards, > >>>> > >>>> Em ter., 29 de ago. de 2023 às 16:38, Mike Moretti > >>>> <nu...@mordent.com.invalid> escreveu: > >>>> > >>>>> Hi, > >>>>> > >>>>> I'm using NuttX 12.2.1 on an esp32 wroom devkit. > >>>>> > >>>>> If I try to configure NuttX via tools/configure.sh using the > >>>>> esp32-devkitc:blewifi configuration, when I boot the esp32, I get > >> problems > >>>>> with it telling me there's no bootable app. > >>>>> > >>>>> If I instead start with the esp32-devkitc:nsh configuration and add > >> wifi > >>>>> and ble to it via menuconfig, I get only a little further. It gets > >> past > >>>>> the entropy message and then I see "AB" and it hangs forever. With > >> all the > >>>>> ble options disabled and only wifi configured by itself it actually > >> boots > >>>>> into nsh after some time. (At first, I had a somewhat similar issue > >> with > >>>>> nsh when wifi only is enabled and connection info wasn't defined in > the > >>>>> config file, where it would seem to hang and then finally show a > >> prompt. > >>>>> It wasn't until I actually figured out about turning on CONFIG_DEBUG > >>>>> "ERROR" for network/wireless that it showed me a bunch of errors > during > >>>>> boot and I knew it wasn't just hanging permanently and to just wait > >> for it > >>>>> a bit to show an nsh prompt.) > >>>>> > >>>>> However, there don't seem to be any config debug options for > bluetooth. > >>>>> I have no idea why it hangs as no messages are displayed and it never > >> shows > >>>>> a prompt even after a half an hour. I've now spent hours messing > with > >>>>> various BLE configuration options with no luck. I'm including my > >> config > >>>>> file in hope that someone might see something wrong with it. > >>>>> > >>>>> Thanks, > >>>>> -m > >>>>> -- > >>>>> Mike Moretti > >>>>> ♩♫♫♩♪♩ > >>>>> > >>>> -- > >>>> Tiago Medicci Serrano > >>>> > >>>> Embedded Software Engineer > >>>> MSc Electronics/Microelectronics > >>>> m: +55 (19) 981403886 <+55+(19)+981403886> > >>>> e: tiago.medi...@gmail.com > >>>> a: Campinas, Brazil > >>>> Follow me: > >>>> <https://www.linkedin.com/in/tiago-serrano-924458b6> > >>>> <https://github.com/tmedicci> > >>>> > >> > > -- Tiago Medicci Serrano Embedded Software Engineer MSc Electronics/Microelectronics m: +55 (19) 981403886 <+55+(19)+981403886> e: tiago.medi...@gmail.com a: Campinas, Brazil Follow me: <https://www.linkedin.com/in/tiago-serrano-924458b6> <https://github.com/tmedicci>