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.
STM32H743 SPI Topic is solved
-
- Posts: 20
- Joined: Thu Nov 08, 2018 11:56 am
- Has thanked: 1 time
- Been thanked: 2 times
- 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
Hi,
Update, I am testing on a H755, fixed the problem with polled exchange:
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
Update, I am testing on a H755, fixed the problem with polled exchange:
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
-
- Posts: 20
- Joined: Thu Nov 08, 2018 11:56 am
- Has thanked: 1 time
- Been thanked: 2 times
Re: STM32H743 SPI
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.
Btw I'm not using polled mode at all.
- 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
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
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
Who is online
Users browsing this forum: No registered users and 19 guests