I'm making consecutive calls to one device using polling transactions. I have acquired the bus in initialization. My transactions are relatively short and usually come in chunks of 10 (10 polling transactions).
I find that the speed is still not satisfactory. How can I improve this?
SPI very slow
-
- Posts: 30
- Joined: Mon Sep 17, 2018 6:39 am
Re: SPI very slow
Specifically, by logging a time value I'm reading that each polling transaction takes around 3 ms. Should it not be much quicker? <100 us?
-
- Posts: 37
- Joined: Mon Aug 28, 2017 10:25 am
Re: SPI very slow
Hi jollytopper,
What's your clock speed?
Can you provide a piece of simple code for us to test it? From our internal test, one-byte transaction should only take 8us (at 10MHz).
What's your clock speed?
Can you provide a piece of simple code for us to test it? From our internal test, one-byte transaction should only take 8us (at 10MHz).
-
- Posts: 30
- Joined: Mon Sep 17, 2018 6:39 am
Re: SPI very slow
I have found that the problem was I was outputting many ESP_LOG statements over UART, thus causing delay.
-
- Posts: 30
- Joined: Mon Sep 17, 2018 6:39 am
Re: SPI very slow
I have found that the problem was I was outputting many ESP_LOG statements over UART, thus causing delay.
Re: SPI very slow
Hi,
So, After reducing logs dis you get improvement into SPI Speed?
So, After reducing logs dis you get improvement into SPI Speed?
Regards,
Ritesh Prajapati
Ritesh Prajapati
-
- Posts: 30
- Joined: Mon Sep 17, 2018 6:39 am
Re: SPI very slow
Yes. Speed improved significantly after removing log statements.
Re: SPI very slow
Great. Thanks for update regarding same.jollytopper wrote: ↑Mon Jun 03, 2019 1:56 amYes. Speed improved significantly after removing log statements.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Who is online
Users browsing this forum: ESP_Sprite and 288 guests