How to use apps/system/spi "SPI Tool"

2021-09-29 Thread murat tologlu
Hi, I have esp32-wrover-kit working, SPI2 and SPI3 are already configured for lvgl and mmcsd, working properly. I also enabled SYSTEM_SPITOOL in Application Configuration --> System Libraries and NSH Add-Ons, it works. However, when I run nsh> spi bus, I get BUS EXISTS? Bus 0: NO Bus 1: N

Re: How to use apps/system/spi "SPI Tool"

2021-09-29 Thread Alan Carvalho de Assis
Try to do it: Device Drivers ---> [*] SPI Driver Support ---> [*] SPI character driver BR, Alan On 9/29/21, murat tologlu wrote: > Hi, > > I have esp32-wrover-kit working, SPI2 and SPI3 are already configured for > lvgl and mmcsd, working properly. > > I also enabled SYSTEM_SPITOOL in App

RE: How to use apps/system/spi "SPI Tool"

2021-09-29 Thread Murat Tologlu
Hi Alan, Thanks for your help. It is already very similar ( please see the attached screen capture ). BR, Murat -Original Message- From: Alan Carvalho de Assis Sent: Wednesday, September 29, 2021 3:02 PM To: dev@nuttx.apache.org Subject: Re: How to use apps/system/spi "SPI Tool" Try

Re: How to use apps/system/spi "SPI Tool"

2021-09-29 Thread Gustavo Henrique Nihei
Hi Murat, The bringup procedure for esp32-wrover-kit does not initialize the character device driver for any SPI channel. Please, take a look at the code for the esp32-devkitc board: https://github.com/apache/incubator-nuttx/blob/master/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c#L398-L4

Re: How to use apps/system/spi "SPI Tool"

2021-09-29 Thread murat tologlu
Hi Gustavo, Very good info, thanks. I'll try adding SPI initialization for esp32-wrover-kit. BR, Murat On 2021/09/29 16:50:33, Gustavo Henrique Nihei wrote: > Hi Murat, > > The bringup procedure for esp32-wrover-kit does not initialize the > character device driver for any SPI channel. > Ple

Re: How to use apps/system/spi "SPI Tool"

2021-09-29 Thread murat tologlu
It's OK now, thanks a lot ! On 2021/09/29 17:20:27, murat tologlu wrote: > Hi Gustavo, > > Very good info, thanks. I'll try adding SPI initialization for > esp32-wrover-kit. > > BR, > Murat > > On 2021/09/29 16:50:33, Gustavo Henrique Nihei wrote: > > Hi Murat, > > > > The bringup proced

How SPI Chip Select Number (CSn) works?

2021-09-29 Thread murat tologlu
Hi, I am trying to implement a master-slave SPI configuration with multiple slave devices on a single SPI bus. For this purpose I wanted to play with apps/system/spi/ SPI Tool to experiment and understand how multiple slave devices can be configured on a single bus in Nuttx, and a question occ