ESP32 code not de-asserting SPI CS pin with SW CS (CONFIG_ESP32_SPI_SWCS)?

2021-02-04 Thread Jardel Lucca
Hello, I noticed an example configuration for SD card reader + ESP32 support has been recently added to NuttX (esp32-devkitc:mmcsdspi). This configuration defines the option "CONFIG_ESP32_SPI_SWCS", which I suppose should control the CS (chip select) pin by code/software. Whenever a command is t

Re: ESP32 code not de-asserting SPI CS pin with SW CS (CONFIG_ESP32_SPI_SWCS)?

2021-02-04 Thread Abdelatif Guettouche
> What's the purpose of "CONFIG_ESP32_SPI_SWCS" since the SPI CS pin can > always be controlled by hardware? Not always. It depends on the pins used. You can check arch/xtensa/src/esp32/hardware/esp32_pinmap.h, if you use the set of pins defined there then you don't need ESP32_SPI_SWCS. There

How to make board specific drivers on nuttx

2021-02-04 Thread kenneth akiti
Hello, I’m a newbie to nuttx, I’m using the maix-bit board which has the k210(RISCV) by ‘sipeed.com’. I tried to use the examples in the apps folder, but apparently I need to make the drivers for the K210 board. Please can I get help on how to make the drivers for a specific board, in this case t

Re: How to make board specific drivers on nuttx

2021-02-04 Thread Alan Carvalho de Assis
Hi Kenneth, Is it the LED example that you commented at LinkedIn? It is important to always explain exactly what you are trying to do and how you are trying to do. If you want add support for LEDs to be controlled by applications you need: 1) map the GPIO pins you are planing to use; 2) Create

Proper handling of arch header files

2021-02-04 Thread Grr
Hello to all I'm developing a Linux-like GPIO system and I need to reach arch definitions (for example STM32_GPIOE_BSRR) in a portable way Obvious choice is arch/board/board.h but in the case of STM32, there's not an elegant way to reach arch/arm/src/stm32/stm32.h from there What would be the pr

testing wapi on esp32 devkitc

2021-02-04 Thread Matias N.
Hi, I'm trying to test WiFi support on ESP32 DevKitC (I used wapi config) and it does not seem to work. I get this: rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0

Re: testing wapi on esp32 devkitc

2021-02-04 Thread Abdelatif Guettouche
It could be because there are some issues with getting the paramters from the flash. Please try disabling Save Paramters from the Wifi Configuration menu. On Thu, Feb 4, 2021, 11:32 PM Matias N. wrote: > Hi, > I'm trying to test WiFi support on ESP32 DevKitC (I used wapi config) and > it does n

Re: testing wapi on esp32 devkitc

2021-02-04 Thread Matias N.
Thanks, now the interface appears. What functionality is currently supported? Can I connect to WPA2 AP? Can I create an AP? Also, I'm trying to scan and I get: nsh> wapi scan wlan0 ioctl(SIOCSIWSCAN): 25 ERROR: Process command (scan) failed. Thanks, Matias On Thu, Feb 4, 2021, at 19:36, Abdela

Re: testing wapi on esp32 devkitc

2021-02-04 Thread Abdelatif Guettouche
Basically you can just check the commands in the wlan_ioctl function in esp32_wlan.c to see what's implemented. But not much going on there for the moment. You can connect to access points. Commands are given in the README.txt file wapi psk wlan0 mypassword 1 wapi essid wlan0 myssid 1 You can als

Re: testing wapi on esp32 devkitc

2021-02-04 Thread Matias N.
Thanks, I was looking at the DevKitC readme which does not have these instructions. I cannot seem to connect though, not sure if it is because my router is set to WPA2 TKIP+CCMP. Best, Matias On Thu, Feb 4, 2021, at 20:06, Abdelatif Guettouche wrote: > Basically you can just check the commands

Re: Proper handling of arch header files

2021-02-04 Thread Xiang Xiao
On Fri, Feb 5, 2021 at 3:49 AM Grr wrote: > Hello to all > > I'm developing a Linux-like GPIO system and I need to reach arch > definitions (for example STM32_GPIOE_BSRR) in a portable way > > NuttX already support pinctrl and gpio peripheral: https://github.com/apache/incubator-nuttx/blob/master

Re: Proper handling of arch header files

2021-02-04 Thread Grr
> NuttX already support pinctrl and gpio peripheral: > > https://github.com/apache/incubator-nuttx/blob/master/include/nuttx/ioexpander/ioexpander.h > > > https://github.com/apache/incubator-nuttx/blob/master/include/nuttx/ioexpander/gpio.h > We can reuse and improve them. > I don't mean IO expand

Re: Proper handling of arch header files

2021-02-04 Thread Xiang Xiao
On Fri, Feb 5, 2021 at 12:26 PM Grr wrote: > > NuttX already support pinctrl and gpio peripheral: > > > > > https://github.com/apache/incubator-nuttx/blob/master/include/nuttx/ioexpander/ioexpander.h > > > > > > > https://github.com/apache/incubator-nuttx/blob/master/include/nuttx/ioexpander/gpio