Search found 513 matches
- Thu Mar 30, 2017 6:53 am
- Forum: General Discussion
- Topic: SPI Master Receive Problems
- Replies: 19
- Views: 29364
Re: SPI Master Receive Problems
Sorry about the mess with transaction/transmission usage. I've edited the post to be more clear. The problem exists only when using the hardware CS (.spics_io_num > 0), because then the spi hardware activates/deactivates the CS. I'm always using the software CS (.spics_io_num = -1 & .spics_ext_io_nu...
- Wed Mar 29, 2017 10:13 pm
- Forum: General Discussion
- Topic: SPI Master Receive Problems
- Replies: 19
- Views: 29364
Re: SPI Master Receive Problems
Thank you for the suggestion about C++ guard, I'll add it. About the CS problem, please try to use "software CS": spi_nodma_device_interface_config_t devcfg={ ........ .spics_io_num=-1, //we will use "software" CS pin .spics_ext_io_num=PIN_NUM_CS, //your "software" CS pin ........ }; spi_nodma_trans...
- Wed Mar 29, 2017 8:18 am
- Forum: General Discussion
- Topic: SPI Master Receive Problems
- Replies: 19
- Views: 29364
Re: SPI Master Receive Problems
@rsimpsonbusa Sorry, I've only tested the driver locally. I have now changed the conflicting functions and struct names in spi_master_nodma driver, so now you can place spi_master_nodma.c in <esp-idf_path>/components/driver directory and spi_master_nodma.h in <esp-df_path>/components/driver/include/...
- Tue Mar 28, 2017 7:15 am
- Forum: Hardware
- Topic: RTC with 32.768 kHz crystal
- Replies: 14
- Views: 28521
Re: RTC with 32.768 kHz crystal
Is this issue considered so unimportant or is it so complicated to implement the support?
- Tue Mar 28, 2017 6:55 am
- Forum: General Discussion
- Topic: SPI Master Receive Problems
- Replies: 19
- Views: 29364
Re: SPI Master Receive Problems
I've had similar problems with SPI reads (see https://www.esp32.com/viewtopic.php?f=14&t=1527 ). I'm now using non DMA spi driver ( https://www.esp32.com/viewtopic.php?f=18&t=1546 ) which passes all my tests for all combinations of write/reads. If your processor has nothing useful to do during the l...
- Mon Mar 27, 2017 7:35 pm
- Forum: Sample Code
- Topic: Non DMA version of the spi_master driver
- Replies: 14
- Views: 28322
Non DMA version of the spi_master driver
Sometimes, using the spi driver not based on DMA transfer is more convenient. I've created a new nonDMA spi_master driver (based on esp-idf spi_master) which is available on GitHub. https://github.com/loboris/ESP32_SPI_MASTER_NODMA_EXAMPLE Main features Transfers data to SPI device in direct mode, n...
- Sat Mar 25, 2017 8:38 pm
- Forum: Report Bugs
- Topic: Bug in spi-master READ
- Replies: 2
- Views: 6642
Bug in spi-master READ
It looks like there is serious bug in spi-master receive when DMA is used. I was testing it with ILI9341 display with application based on spi-master example (the example itself works ok). I've added the function to read line of data from display. Display data format (when read) is: dummy_byte [R_by...
- Fri Mar 24, 2017 3:01 pm
- Forum: Sample Code
- Topic: Modified spi_master driver and example
- Replies: 0
- Views: 3726
Modified spi_master driver and example
https://github.com/loboris/ESP32_NEW_SPI_MASTER_EXAMPLE Driver modifications Number of the devices attached to the bus which uses hw CS can be 3 ( NO_CS ) as in original driver Additional devices which does not use hw CS can be attached to the bus, up to NO_DEV Additional parameter spics_ext_io_num...
- Wed Mar 22, 2017 8:27 am
- Forum: General Discussion
- Topic: only three slave can be attached in SPI ?
- Replies: 8
- Views: 15875
Re: only three slave can be attached in SPI ?
Ooops.... I can set spics_io_num = -1, but when I call spi_bus_add_device > 3 times, driver still said E (199) spi_master: spi_bus_add_device(326): no free cs pins for host .... If you wan to use more than 3 devices, you have to modify spi_bus_add_device() function, something like this: #define NO_...
- Tue Mar 21, 2017 8:41 am
- Forum: ESP-IDF
- Topic: Multiple flash chips on same the SPI line
- Replies: 6
- Views: 10498
Re: Multiple flash chips on same the SPI line
You can add an arbitrary (well, with the current driver, 3 per host) SPI memory devices to the ESP32 and you can access them using DMA transfers. However, only one device can be memory mapped, and you're limited to 4MiB of memory mapped memory. Also, at the moment memory mapping is not supported in...