-
Notifications
You must be signed in to change notification settings - Fork 3k
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
STM32 SPI format 16 bit not working #15113
Comments
@JojoS62 thank you for raising this issue.Please take a look at the following comments: Could you add some more detail to the description? A good description should be at least 25 words. NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'. This indicates to us that at least all the fields have been considered. |
#14981 is the problem, at this point only a byte is read from the tx_buffer instead of a datasize type: msp_write_data casts the data depending the bitshift, but a byte value is a nothing more than a byte value: |
This should be fixed by #15206 |
Description of defect
changing SPI._spi.format(16, 0); does not work as intended.
Transmitted bytes are prepended by a zero byte.
This problem is introduced with mbed-os-6.15.0:
with mbed-os-6.14.0, the output is correct:
Target(s) affected by this defect ?
tested with STM32F407
but Problem is in targets/TARGET_STM/stm_spi_api.c and affects all STM32
Toolchain(s) (name and version) displaying this defect ?
gcc10
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.15.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-tools
How is this defect reproduced ?
The text was updated successfully, but these errors were encountered: