Re: STM32F4 SPI DMA buffer size issue

2020-11-25 Thread Oleg Evseev
ilto:ev.m...@gmail.com] > Sent: Wednesday, November 25, 2020 12:46 AM > To: dev@nuttx.apache.org > Subject: Re: STM32F4 SPI DMA buffer size issue > > Thanks for the enhanced feedback, David! > > When I reduced the slew rate control from 50MHz to 2MHz it fixes issues > with a SD

RE: STM32F4 SPI DMA buffer size issue

2020-11-25 Thread David Sidrane
: Wednesday, November 25, 2020 12:46 AM To: dev@nuttx.apache.org Subject: Re: STM32F4 SPI DMA buffer size issue 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

Re: STM32F4 SPI DMA buffer size issue

2020-11-25 Thread Oleg Evseev
> Hi Oleg, > > See inline [DBS] > > David > -Original Message- > From: Oleg Evseev [mailto:ev.m...@gmail.com] > Sent: Tuesday, November 24, 2020 9:46 AM > To: dev@nuttx.apache.org > Subject: Re: STM32F4 SPI DMA buffer size issue > > > Have you scoped the

RE: STM32F4 SPI DMA buffer size issue

2020-11-24 Thread David Sidrane
Hi Oleg, See inline [DBS] David -Original Message- From: Oleg Evseev [mailto:ev.m...@gmail.com] Sent: Tuesday, November 24, 2020 9:46 AM To: dev@nuttx.apache.org Subject: Re: STM32F4 SPI DMA buffer size issue > Have you scoped the interface? You mean a bus by analyzer? No, I don

Re: STM32F4 SPI DMA buffer size issue

2020-11-24 Thread Oleg Evseev
t; > Have you scoped the interface? > > For gins and giggles try reducing the SPI clock drive strength. Step it > down > and retest. > > David > > -Original Message- > From: Oleg Evseev [mailto:ev.m...@gmail.com] > Sent: Tuesday, November 24, 2020 4:57 AM >

RE: STM32F4 SPI DMA buffer size issue

2020-11-24 Thread David Sidrane
Oleg, Have you scoped the interface? For gins and giggles try reducing the SPI clock drive strength. Step it down and retest. David -Original Message- From: Oleg Evseev [mailto:ev.m...@gmail.com] Sent: Tuesday, November 24, 2020 4:57 AM To: dev@nuttx.apache.org Subject: STM32F4 SPI DMA

STM32F4 SPI DMA buffer size issue

2020-11-24 Thread Oleg Evseev
Hi all, STM32f405rg custom board - MTD on SPI1 and SD card on SPI2. MTD on SPI1 works without DMA and with if defined CONFIG_STM32_SPI1_DMA=y but if also CONFIG_STM32_SPI1_DMA_BUFFER=1024 is set, partitions get created, there are mtdblockX in /dev, geometry can be read correctly, but reading or