Search found 59 matches

by tridge
Wed Feb 20, 2019 9:26 am
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 109
Views: 8771

Re: Where to start STM32H7 support

I follow the quick pace of progress on the H7 side thanks to Tridge, and i wanted to know if the work that has been done for ardupilot is integrated in trunk, or if ardupilot maintains his own branch ? ArduPilot does have it's own branch: https://github.com/ArduPilot/ChibiOS/tree/pr-STM32H7-support...
by tridge
Tue Feb 19, 2019 12:27 pm
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 109
Views: 8771

Re: Where to start STM32H7 support

Giovanni wrote:I think the "HW reset" is what you do through RCC, there is an rccResetSPIx() macro for that in HAL.

I just tried that on SPI5. It didn't fix the issue :(
by tridge
Tue Feb 19, 2019 12:21 pm
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 109
Views: 8771

Re: Where to start STM32H7 support

I think the "HW reset" is what you do through RCC, there is an rccResetSPIx() macro for that in HAL thanks! I'll give that a go What is the meaning of "simplex TX" anyway? the HAL driver always performs both RX and TX transfers so there should never be unread RX frames in the RX...
by tridge
Tue Feb 19, 2019 11:47 am
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 109
Views: 8771

Re: Where to start STM32H7 support

The language in the RM is a little challenging to read WRT the FIFO packing in the SPI controller. I thought perhaps using DMA removes the requirement for setting TSIZE. However, the RM does say the following which seems to suggest that TSIZE must be set regardless of packing, etc. yes, it should w...
by tridge
Tue Feb 19, 2019 10:48 am
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 109
Views: 8771

Re: Where to start STM32H7 support

Could you test another board of the same kind? It happens on both boards that I have of the same type. Regarding SPIv3, why don't we set TSIZE? When I tried setting TSIZE I get all zero data, which really doesn't make sense. The sthal/h7 code does set TSIZE, and I presume that works. Maybe that is ...
by tridge
Tue Feb 19, 2019 6:01 am
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 109
Views: 8771

Re: Where to start STM32H7 support

Have you looked at the SPI bus on your saleae to confirm the extra byte being clocked? Is it real, or a software bug? I now have SPI5 hooked up to an external port, with a MPU9250 IMU attached, and I've got a Saleae trace http://uav.tridgell.net/ChibiOS/SPI5-transfer-bug.png The query I'm sending i...
by tridge
Tue Feb 19, 2019 2:36 am
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 109
Views: 8771

Re: Where to start STM32H7 support

Could this be related to the setting of SPI CR2:TSIZE? nice idea. I just tried setting TSIZE in spi_lld_exchange(), and strangely enough I always end up with zero bytes in the receive buffer (ie. all bytes are zero). I suspect the issue may be in the order of setting the various SPI and DMA config ...
by tridge
Tue Feb 19, 2019 1:50 am
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 109
Views: 8771

Re: Where to start STM32H7 support

It should be replicable on an H7 nucleo board right?. no, it isn't. I have 3 H743 boards: - one with HSE at 24MHz - one with HSE at 16MHz - one with HSE at 8MHz (the nucleo) The problem only happens on the board with a 16MHz HSE. It is bizarre, as I use the clock tree to keep the peripheral and cpu...
by tridge
Tue Feb 19, 2019 1:15 am
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 109
Views: 8771

Re: Where to start STM32H7 support

Have you looked at the SPI bus on your saleae to confirm the extra byte being clocked? Is it real, or a software bug? unfortunately the board is too tightly integrated to get at the pins (at least with my skills). There is an external SPI5 connector though, and I can put a sensor on that which I ca...
by tridge
Mon Feb 18, 2019 11:58 pm
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 109
Views: 8771

Re: Where to start STM32H7 support

I've tested DMA on other peripherals (UARTs, ADC and I2C) and it works fine for those. It is just SPI DMA that is broken.
Very weird!

Go to advanced search