Search found 4 matches

by GG23800
Mon Apr 29, 2019 10:10 am
Forum: General Discussion
Topic: SPI receive in SPI master, byte shifting in the buffer
Replies: 5
Views: 1097

Re: SPI receive in SPI master, byte shifting in the buffer

I have made more test, with some knowed data at the beginning of the SPI buffer and I can read it, the data lost are at the end of the buffer
by GG23800
Fri Apr 26, 2019 7:10 am
Forum: General Discussion
Topic: SPI receive in SPI master, byte shifting in the buffer
Replies: 5
Views: 1097

Re: SPI receive in SPI master, byte shifting in the buffer

I have also try to shift my receive buffer to see if I receive the whole data with: epf_error_t USC_read_8bline_auto(int nbpoint, int offset) { int ret=0; epf_error_t err = EPF_ERR_NOERROR; printf("number of points: %i\n", nbpoint); spi_transaction_t t; memset(&t, 0, sizeof(t)); t.length=0; t.tx_buf...
by GG23800
Fri Apr 26, 2019 6:51 am
Forum: General Discussion
Topic: SPI receive in SPI master, byte shifting in the buffer
Replies: 5
Views: 1097

Re: SPI receive in SPI master, byte shifting in the buffer

Hi ESP_Sprite,

I do my CS in soft because in need two CS line with this device, one to telling it that it will have to read from the SPI, the second to tell him that it will write on the SPI. To improve efficiency, I will include the reading CS line in the spi_bus_config_t structure latter.
by GG23800
Thu Apr 25, 2019 7:18 pm
Forum: General Discussion
Topic: SPI receive in SPI master, byte shifting in the buffer
Replies: 5
Views: 1097

SPI receive in SPI master, byte shifting in the buffer

Hi all, I am trying to read data from a device on SPI bus using DMA. This device work in half_duplex only. I want to read successively large amount of data considering the ESP is the master. So I initialise the spi with: #define SPI_MOSI 23 #define SPI_MISO 19 #define SPI_CLK 18 #define SPI_COM_SPEE...

Go to advanced search