SPI Transfer Latency between the MCU and the Sx transceiver #1051
-
Greetings, I am working on a project where two transceivers (based on sx1262 and an ARM Cortex M4- Microcontroller) need to communicate with each other at the maximum transfer rate. Symptom : Root Cause : The problem is that the SPI transfer is performed byte by byte using the following for loop on the functions SX126xWriteRegisters, SX126xReadRegisters, SX126xWriteBuffer and SX126xReadBuffer of the sx1262mbxdas-board.c file : Workaround: This helped me accelerate the SPI transfer by approximately 80%, which is more suitable for my case. I would like to Know why using the for loop to read/ write byte by byte the buffer and is there anything wrong with the implementation of this workaround? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nice to hear that you were able to solve your issue. We have used the In the meantime maybe ST has corrected the observed issues on the HAL or we have solved the issue without knowing it. In the future it would be nice if you could post this kind of questions on the project Discussions tab. It is a better place to engage discussions and then we can agree if it is an issue or not. |
Beta Was this translation helpful? Give feedback.
Nice to hear that you were able to solve your issue.
We have used the
for
loop because long time ago he had issues when usingHAL_SPI_TransmitReceive
.I can't remember anymore what were the issues.
In the meantime maybe ST has corrected the observed issues on the HAL or we have solved the issue without knowing it.
In the future it would be nice if you could post this kind of questions on the project Discussions tab. It is a better place to engage discussions and then we can agree if it is an issue or not.
If you don't mind I move this issue to the Discussions tab.