-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPIF_WritePage corrupting source buffer #43
Comments
Hello. Thanks for your response. I had not this problem. But if you are sure about that, i will use transmit insted of transmitreceive. |
Hello, I'm sure about this, as I tested it on real hardware (Blackpill STM32F411CE + 64Mbit Flash 25Q64JVS). I'll do some more testing and stress tests and will report if issues arrive. Thanks for your work and the seemless integration into the STMCube ecosystem. Best regards, |
your welcome, I have updated the package. please try again. |
That was fast! I updated to the new version. It works as expected, the source buffer stays untouched! Im tinkering with Azure RTOS. You might add a selection in the conf file togehther with CMSIS V1/V1 in order to use the RTOS sleep function. Regards, Wolf |
Thanks. I am waiting for your response after test. ;) |
I have updated the LIB. please try again for any devices you have. |
Hi all,
I experience that SPIF_WritePage function corrupts the source buffer (other write operations will do so aswell).
This is due to the fact that SPIF_WriteFn calls SPIF_TransmitReceive() which in turn sets its rx and tx buffer to source buffer, and by this corrupts the source buffer.
Wouldn't it be better to call a transmit only function here?
Best regards.
Wolf
The text was updated successfully, but these errors were encountered: