Replies: 2 comments
|
Hello @Kusekushi, |
0 replies
|
@Kusekushi Did you had time to look at #112253 ? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
On an STM32G0C1 (custom board, but only 1 SPI slave), SPI half-duplex transfers with 5-bit word size show excess clocking during read phase when doing any transaction:
i.e.
spi_write_dt for 1 frame (5 bits command)
spi_read_dt for 4 frames (20 bits data)
under one manual CS window.
With this example I expect total clock pulses to be 25 bits and thus, often enough, leads to an OVR condition.
Though I see approximately 40 to 70 bits on receive phase, depending on the SPI bus speed among other things, while software buffer/accounting indicates intended frame count.
This behavior only occurs when enable debug logs on UART...
If I transmit only, the peripheral works as intended.
Target Platform
What I tried already:
Reproduction steps:
Log output:
[0m[00:00:00.010,000] [0m spi_stm32: spi_context_buffers_setup: current_tx 0x2000944c (1), current_rx 0 (0), tx buf/len 0x20009454/1, rx buf/len 0/0[0m
[00:00:00.010,000] [0m spi_stm32: spi_context_update_tx: tx buf/len 0/0[0m
[00:00:00.010,000] [0m spi_stm32: spi_context_buffers_setup: tx_bufs 0 - rx_bufs 0x20009430 - 1[0m
[00:00:00.011,000] [0m spi_stm32: spi_context_buffers_setup: current_tx 0 (0), current_rx 0x20009438 (1), tx buf/len 0/0, rx buf/len 0x20009440/3[0m
[00:00:00.011,000] [0m spi_stm32: spi_context_update_rx: rx buf/len 0x20009441/2[0m
[00:00:00.011,000] [0m spi_stm32: spi_context_update_rx: rx buf/len 0x20009442/1[0m
[00:00:00.011,000] [0m spi_stm32: spi_context_update_rx: rx buf/len 0/0[0m
[00:00:00.011,000] [0m main: testvp: Read state register: 0x02[0m
DTC (shortened):
(RTC6715 binding inherits from spi-device, so it should be fine)
Any idea what it could be? Is it my approach? Is it the chip being weird?
All reactions