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't have

Re: STM32F4 SPI DMA buffer size issue

2020-11-24 Thread Oleg Evseev
> Have you scoped the interface? You mean a bus by analyzer? No, I don't have such ability for now. For SD card I tried to reduce the SPI frequency from 24MHz to 10MHz, but it didn't help when DMA is enabled. In fact it get failed to find a valid boot record, while fat_hwread of sector zero is re

GD32VF103

2020-11-24 Thread Matias N.
Hi, when I bought some stuff from Seeedstudio last time, I added a Longan Nano to the purchase since it was really cheap and wanted to give it a try. I played around with it for a few days and managed to get some basic support for NuttX, but it seems either the core has some issues during debug

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