STM32H743 SPI Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
fvantienen
Posts: 20
Joined: Thu Nov 08, 2018 11:56 am
Has thanked: 1 time
Been thanked: 2 times

Re: STM32H743 SPI

Postby fvantienen » Mon May 02, 2022 3:40 pm

No I'm not using polled exchange and I checked that if I set it before the spiSelect everything works fine, but if I set it after the spiSelect it doesn't work. I can't actually look at see what happens on the SPI1 bus with an analyser. But I guess that it might either be a timing issue where the register needs to be set quickly after configuring, or it would generate some weird pulses on the bus because it is set after spiSelect.
My guess is that the second one is the problem, in combination with high clock idle state it might generate an 'extra' pulse at the start after spiSelect.

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32H743 SPI

Postby Giovanni » Thu May 05, 2022 8:58 am

Hi,

Update, I am testing on a H755, fixed the problem with polled exchange:

polled_exchance.png
polled_exchance.png (3.67 KiB) Viewed 2257 times


I don't see that clock glitch, at least not in polled mode (my LA is sampling at 200MHz, is yours faster?).

I am not experiencing problems with the existing SPI demo, I am trying to stress the driver some more in DMA mode. Could it be specific to old H743s? which chip revision are you using?

Giovanni

fvantienen
Posts: 20
Joined: Thu Nov 08, 2018 11:56 am
Has thanked: 1 time
Been thanked: 2 times

Re: STM32H743 SPI

Postby fvantienen » Mon May 09, 2022 3:16 pm

I am sampling with 100MSPS so that should not be the problem. I have an STM32H743 with STM32_ENFORCE_H7_REV_XY. Will look into this problem more later, currently switched to V1 where the glitches only occur outside the SS.

Btw I'm not using polled mode at all.

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32H743 SPI  Topic is solved

Postby Giovanni » Mon May 09, 2022 3:23 pm

Hi,

I verified in DMA mode too (current trunk code), no glitch visible. Could it be a bug on that old H743 revision? Could you try on some other device?

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 8 guests