Re: STM32F4 SPI DMA buffer size issue

2020-11-25 Thread Oleg Evseev
David, I have BOARD_DMA_ALLOC_POOL_SIZE 5120 - as on other boards including STM32F405RG based omnibus f4sd. By the way f4sd doesn't set SPI2_DMA_BUFFER on SD card SPI2, but has CONFIG_STM32_SPI2_DMA=y https://github.com/PX4/PX4-Autopilot/blob/5e855c67477fe08517297a38e718ed1102536cf6/boards/omnibu

RE: STM32F4 SPI DMA buffer size issue

2020-11-25 Thread David Sidrane
Oleg, You are most welcome, Did you adjust the size of the board dma allocator? https://github.com/PX4/PX4-Autopilot/blob/1dd6b6a5058199ea6bbf1e2321010abe88a656ee/platforms/nuttx/src/px4/common/board_dma_alloc.c#L57? -Original Message- From: Oleg Evseev [mailto:ev.m...@gmail.com] Sent:

Re: STM32F4 SPI DMA buffer size issue

2020-11-25 Thread Oleg Evseev
Thanks for the enhanced feedback, David! When I reduced the slew rate control from 50MHz to 2MHz it fixes issues with a SD card when DMA is not enabled. But when DMA is enabled, MTD and SD still are attached and mounted, but are empty, as I see on block reads - px4 successfully reads mtd_params fi