hideakitai / ESP32DMASPI

SPI library for ESP32 which use DMA buffer to send/receive transactions
MIT License
181 stars 37 forks source link

Lost byte's #40

Closed JoeReturn closed 8 months ago

JoeReturn commented 8 months ago

Dear Hideaki Tai,

I have been trying to use the ESP32 library you created for some time, but it doesn't seem to work properly. I am attaching a source code in which there is both TCP and SPI slave communication.

The issue is that, in the master SPI device, the first 168 bytes (from 4108) are consistently missing in a loop, and I don't really understand what kind of error could cause this.

Thank you for your response.

hideakitai commented 8 months ago

I'm sorry for not getting back to you sooner. Could you solve this problem? Please try the v0.4.0 release. Also notice Notes for Communication Errors

JoeReturn commented 8 months ago

Dear Friend,

When i memcpy() made change the spi _slave_tx_buff and read only SlaveRemained... this made qeuer... only

Now this good Thanks Have A Nice Day :)

Best Regards Joe

[image: image.png]

[image: image.png]

Hideaki Tai @.***> ezt írta (időpont: 2024. jan. 31., Sze, 2:15):

Sorry, could you solve this problem? Please try v0.4.0 release. Also notice Notes for Communication Errors https://github.com/hideakitai/ESP32DMASPI?tab=readme-ov-file#notes-for-communication-errors

— Reply to this email directly, view it on GitHub https://github.com/hideakitai/ESP32DMASPI/issues/40#issuecomment-1918186475, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFQFEPBR2SRAQRHDURKS3GTYRGLKDAVCNFSM6AAAAABCEEMUXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJYGE4DMNBXGU . You are receiving this because you modified the open/close state.Message ID: @.***>