Re: Link error building c++ app with master branch

2023-09-18 Thread Mike Moretti
_TLS_NELEM != 0 So, open menuconfig: $ make menuconfig And search for CONFIG_TLS_NELEM (press "/" inside menuconfig and type TLS_NELEM and press ENTER) Bingo: Symbol: TLS_NELEM [=0] You will need to increase it. BR, Alan On 9/18/23, Mike Moretti wrote: Unfortunately, using mast

Link error building c++ app with master branch

2023-09-18 Thread Mike Moretti
#x27;m trying to fix all the issues I meet with ESP32S3 as I'm trying to build a product on top of it, but there are still many features that I hope gona be added soon (like USB host support for example), so I'm staying on master currently. Best regards, Petro пн, 18 вер. 2023 р. о 22:15 M

Re: /dev/ttyS1 doesn't seem to work on ESP32S3

2023-09-18 Thread Mike Moretti
he end I was able to even run RS485 with EPS32S3 and make a kind of a loopback test connecting UART1-RS485 <-> UART2-RS485 on the same device and exchange data between those UARTs. Please check if your code base contains my fixes. Looking forward to hearing from you, Petro пн, 18 вер. 20

/dev/ttyS1 doesn't seem to work on ESP32S3

2023-09-18 Thread Mike Moretti
Hi, I'm having trouble with NuttX on the ESP32S3 trying to get UART1 (configured on the default pins) working via /dev/ttyS1.  The driver code for esp32s3_serial.c seems to configure uart1 as /dev/ttys1 when you enable it in the configs, however, testing via serialblaster/serialrx (and our ow

UARTs ttyS and esp32

2023-09-18 Thread Mike Moretti
Hi, There are a bunch of configuration options for various peripherals, uart0,1,2, i2c0,1, spi0,1...  It appears that enabling say UART1 or UART2 (and configuring their pins) doesn't actually automatically register it as a ttyS in /devices.  Is there some reason for this? Do I have to manuall

Re: ESP32S3 arbitrary crash when no optimization configured

2023-09-18 Thread Mike Moretti
ue will happen on ESP-IDF (just guessing, I didn't check it). I think it could be a good place to start your investigation. BR, Alan On 9/18/23, Mike Moretti wrote: Hi, I'm using NuttX 12.2.1 with ESP32S3 and have been trying for days to figure out why it crashes on bo

ESP32S3 arbitrary crash when no optimization configured

2023-09-18 Thread Mike Moretti
Hi, I'm using NuttX 12.2.1 with ESP32S3 and have been trying for days to figure out why it crashes on boot with our custom board/app.  It turns out that turning off CONFIG_DEBUG_FULLOPT and turning on CONFIG_DEBUG_NOOPT is what's causing my issue (via menuconfig).  The default from all the ot

Re: ESP32S3 partition sizes?

2023-09-17 Thread Mike Moretti
Hi, That part of the documentation looks like it is specific to esp32 only (not esp32s or esp32c).  This info applies to all the esp32 variants (s, c, h, etc).  That's why I was wondering where this should end up...  There doesn't seem to be a place for esp32 non-variant-specific documentatio

Re: ESP32S3 partition sizes?

2023-09-17 Thread Mike Moretti
e your error message? Best regards, Em sex., 15 de set. de 2023 às 16:12, Mike Moretti escreveu:

ESP32S3 partition sizes?

2023-09-15 Thread Mike Moretti
Hi, I'm trying to build a custom app for the esp32s3.  After linking, nuttx.bin is 1.5Mb.  This doesn't seem to fit in the default partition size and I get an error on boot (and a boot loop).  Where are these partition sizes defined and how do I change them?  The esp32s3 I have has 8Mb flash

Re: defconfig options being ignored

2023-09-13 Thread Mike Moretti
er is giving me undefined symbols when linking.  I will probably post a question about this later. -m On 9/13/2023 1:54 PM, Mike Moretti wrote: Hi, I'm trying to create a custom board config for our custom board that includes an ESP32S3.  I'm attempting to include all the pin and conf

defconfig options being ignored

2023-09-13 Thread Mike Moretti
Hi, I'm trying to create a custom board config for our custom board that includes an ESP32S3.  I'm attempting to include all the pin and configuration definitions for the board in the defconfig file. Unfortunately, after running ./tools/configure.sh using my configuration, some of the options

Re: Custom apps outside the tree

2023-09-12 Thread Mike Moretti
called external you should end up with no, as you called "poop". I assume that you mean no extra files or modifications in NuttX repositories. On Tue, 12 Sep 2023, 19:58 Mike Moretti, wrote: Hi, Is there any way to do custom apps outside the tree without "pooping" in the ap

Custom apps outside the tree

2023-09-12 Thread Mike Moretti
Hi, Is there any way to do custom apps outside the tree without "pooping" in the apps directory?  The docs show 3 ways to do custom apps, but they all require modifying the apps directory in some way, either by putting your custom apps in the apps directory, or making a symlink there.  I'd pr

esp32s3 ble???

2023-09-06 Thread Mike Moretti
Hi, After all the troubles I had with BLE+WiFi on the esp32, I found out that we are actually going to be using the ESP32S3 instead. Unfortunately, I don't see any BLE drivers for the ESP32S3 in nuttx-12.2.1 at all, or any configuration options for it.  Is there no support for bluetooth on e

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Mike Moretti
tely to improve NuttX reliability. Making an open-source, POSIX-compliant, operational system is a huge task! I hope you can overcome your problems and help this amazing community! Please share your findings and help NuttX keeping improving ;) Best regards, Em sex., 1 de set. de 2023 à

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Mike Moretti
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 the menuconfig. Cheers, Lucas ____ From: Mike Moretti Sent: Friday, September 1, 2023 11:14 To: dev@nuttx.apache.org Sub

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

2023-09-01 Thread Mike Moretti
, 1 de set. de 2023 às 12:00, Mike Moretti escreveu: 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

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 Mike Moretti
e 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 tarballs into it, did .

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Mike Moretti
oader 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 tarballs into it, did ./tools/configure.sh esp32-devkitc:bl

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-09-01 Thread Mike Moretti
sp32-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.apach

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-08-31 Thread Mike Moretti
E'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 escreveu: Hi, Thanks. It wasn't until I untarred a whole new co

Re: Adding bluetooth configuration on esp32 hangs nsh

2023-08-30 Thread Mike Moretti
. Best regards, Em ter., 29 de ago. de 2023 às 16:38, Mike Moretti 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 the

Adding bluetooth configuration on esp32 hangs nsh

2023-08-29 Thread Mike Moretti
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 ♩♫♫♩♪♩ # # License Setup # CONFIG_ALL