I've defined the default gateway and the router IP in the menuconfig like this:
Library Routines ├── NETDB Support ├── DNS Name Resolution ├── Target IPv4 address (default gateway) Application Configuration ├── Network Utilities ├── Network Initialization ├── IP Address Configuration ├── Target IPv4 address (default gateway) ├── Router IPv4 address (router IP) When trying to ping, it returns 'no response': [image: ping response] Em sex., 17 de mar. de 2023 às 12:59, Petro Karashchenko < petro.karashche...@gmail.com> escreveu: > Hello Gustavo, > > By "connected esp to the internet" do you mean that your board has public > IP (not in the local network) or accessible via NAT? > > Because if you just connect board to home WiFi router that provides > Internet, this is not "connected esp to the internet". If that is the case, > then better try to find IP config of esp wireless interface and access > webserver from LAN. > > Best regards, > Petro > > On Fri, Mar 17, 2023, 5:22 PM Gustavo Soares < > gustavo.felipesoa...@hotmail.com> wrote: > > > Hi, Alan! > > > > Thank you and Petro for the support, it's compiling now! I also connected > > the esp to the internet, but for some reason both 'nslookup' and 'ping' > are > > failing and when I start the webserver it gets stuck in the 'starting > > webserver' message. > > > > Em sex., 17 de mar. de 2023 às 08:52, Alan C. Assis <acas...@gmail.com> > > escreveu: > > > > > Hi Gustavo, > > > > > > Enabling all the network needed features on NuttX is very time > > > consuming, so this is a good idea to start with a working example. > > > > > > In this case nsh is not the recommended starting point, but wapi (wifi > > > board profile). > > > > > > Try this sequence: > > > make distclean > > > ./tools/configure.sh esp32-devkitc:wapi > > > > > > Then example the webserver example. > > > > > > BR, > > > > > > Alan > > > > > > On 3/17/23, Gustavo Soares <gustavo.felipesoa...@hotmail.com> wrote: > > > > Hi, Petro! > > > > > > > > I'm using the latest version of NuttX. > > > > > > > > Em sex., 17 de mar. de 2023 01:56, Petro Karashchenko < > > > > petro.karashche...@gmail.com> escreveu: > > > > > > > >> I just tried next steps: > > > >> > > > >> 1. tools/configure.sh esp32-devkitc:nsh > > > >> 2. Additionally enabled via menuconfig: > > > >> CONFIG_ESP32_EMAC=y > > > >> CONFIG_ESP32_WIFI=y > > > >> CONFIG_EXAMPLES_WEBSERVER=y > > > >> CONFIG_NETUTILS_WEBSERVER=y > > > >> CONFIG_NET_SOCKOPTS=y > > > >> CONFIG_NET_TCP=y > > > >> CONFIG_SCHED_HPWORK=y > > > >> CONFIG_SCHED_LPWORK=y > > > >> CONFIG_TLS_TASK_NELEM=1 > > > >> 3. make -j8 > > > >> > > > >> The project compiles with errors. > > > >> I tried that on the latest master branch. Are you using some stable > > > >> release or the reported issue is on master? > > > >> > > > >> Best regards, > > > >> Petro > > > >> > > > >> пт, 17 бер. 2023 р. о 05:32 Gustavo Soares < > > > >> gustavo.felipesoa...@hotmail.com> пише: > > > >> > > > >>> I'm trying to compile the webserver example first. When I created > the > > > >>> config file, the chosen configuration for esp32 was > > > 'esp32-devkitc:nsh'. > > > >>> > > > >>> Em sex., 17 de mar. de 2023 às 01:14, Petro Karashchenko < > > > >>> petro.karashche...@gmail.com> escreveu: > > > >>> > > > >>>> Hello Gustavo, > > > >>>> > > > >>>> Are you trying to compile an example or your custom application? > > > >>>> If you are getting started with an example, so maybe you make > "make > > > >>>> savedefconfig" and send it to me, so I can try locally? > > > >>>> > > > >>>> Best regards, > > > >>>> Petro > > > >>>> > > > >>>> On Fri, Mar 17, 2023, 5:08 AM Gustavo Soares < > > > >>>> gustavo.felipesoa...@hotmail.com> wrote: > > > >>>> > > > >>>>> Hello, Petro! > > > >>>>> > > > >>>>> inside menuconfig IPv4 is enabled: > > > >>>>> [image: image.png] > > > >>>>> > > > >>>>> It's also possible to see the option in the .config file: > > > >>>>> [image: image.png] > > > >>>>> > > > >>>>> Thank you for your support, > > > >>>>> Gustavo. > > > >>>>> > > > >>>>> > > > >>>>> Em qui., 16 de mar. de 2023 22:56, Petro Karashchenko < > > > >>>>> petro.karashche...@gmail.com> escreveu: > > > >>>>> > > > >>>>>> Hi, > > > >>>>>> > > > >>>>>> I see that both "inet_ntoa" and "inet_ntoa_r" implementations > are > > > >>>>>> guarded by "CONFIG_NET_IPv4" and "CONFIG_LIBC_IPv4_ADDRCONV". > > Could > > > >>>>>> you > > > >>>>>> take a look if your configuration has at least one of those > > options > > > >>>>>> enabled? > > > >>>>>> > > > >>>>>> Best regards, > > > >>>>>> Petro > > > >>>>>> > > > >>>>>> пт, 17 бер. 2023 р. о 01:57 Gustavo Soares < > > > >>>>>> gustavo.fssoare...@gmail.com> пише: > > > >>>>>> > > > >>>>>>> Hi! > > > >>>>>>> > > > >>>>>>> I'm starting a new project at college using NuttX and ESP-32. > I'm > > > >>>>>>> trying to build a new application for NuttX: a webserver to > read > > > and > > > >>>>>>> execute Assembly! But the following error is showing up:[image: > > > >>>>>>> error description] > > > >>>>>>> [image: netprocfs_inet4addresses function (netdev_statistics.c > > > >>>>>>> file)] > > > >>>>>>> > > > >>>>>>> In menuconfig I enabled: > > > >>>>>>> Network support > > > >>>>>>> ├── Link layer support > > > >>>>>>> ├── Ethernet support > > > >>>>>>> ├── Late driver initialization > > > >>>>>>> ├── TCP/IP Networking > > > >>>>>>> > > > >>>>>>> Application Configuration > > > >>>>>>> ├── Network utilities > > > >>>>>>> ├── Network initialization > > > >>>>>>> ├── Network initialization thread > > > >>>>>>> ├── Hardware has no MAC Address > > > >>>>>>> > > > >>>>>>> Could someone help me with this? > > > >>>>>>> And also, I've been searching for articles about building > > > >>>>>>> applications for NuttX, but didn't find any. Does anyone know > > > where I > > > >>>>>>> can > > > >>>>>>> find them? > > > >>>>>>> > > > >>>>>>> > > > >>>>>>> > > > > > > > > > >