Search found 1106 matches

by victor_pv
Sun Apr 30, 2017 11:25 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SDIO DMA
Replies: 0
Views: 8

[STM32GENERIC] SDIO DMA

Seems like adding DMA to the SDIO library should not be much harder than adding it to the SPI. Now, my F407 board doesn't have an SDcard slot so I haven't tested yet the current SDIO. Can someone confirm if everything is working fine with the current SDIO with an F4 and the SdFat library? If so, wha...
by victor_pv
Sun Apr 30, 2017 10:50 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 29
Views: 209

Re: [STM32GENERIC] SPI DMA

re: NULL send buffer in dmaTransfer(): wouldn't it basically be just receiving? As in (a currently nonexistent) `uint8_t SPIClass::dmaReceive(uint8_t *receiveBuf, uint16_t length)`?, and use HAL_SPI_Receive_DMA The problem is that in master mode the MCU needs to generate the master clock at all tim...
by victor_pv
Sun Apr 30, 2017 6:29 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 29
Views: 209

Re: [STM32GENERIC] SPI DMA

If your output driver is not using DMA too, you should look into it, specially is you use HAL drivers for it, they have a fair ammount of overhead. What fat library are you using with the f411? my output driver is interrupt based (but i rewrote the HAL handler to what i needed). it's for my lightsa...
by victor_pv
Sun Apr 30, 2017 6:28 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 29
Views: 209

Re: [STM32GENERIC] SPI DMA

Yeah it's in a F407VET board, not the black but blue, but I dont think its worth making a variant for it alone, and in mine perhaps the SPI flash is connected to those pins too.
I'll just work around it then.
by victor_pv
Sun Apr 30, 2017 4:53 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 29
Views: 209

Re: [STM32GENERIC] SPI DMA

My wav player only reads, I don't think there is much latency in reads, right? Write latencies with SDcards are huge, 5-250ms, typically 3-50ms all the time, random occurrence.. i'm wondering: would the interface you use also affect that? i'm currently testing streaming 48khz 16 bit stereo wav with...
by victor_pv
Sun Apr 30, 2017 3:56 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 136
Views: 1469

Re: STM32GENERIC, my arduino implementation

Is there some trick to get USB Serial working with Black407VE (2.0) variant. It seems my board does not even try to enumerat. It is F407VET6 Can you put any picture of your board? I have a blue f407 I bought last year in which usb is only for power and the data lines are not connected to the MCU. I...
by victor_pv
Sun Apr 30, 2017 2:54 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 29
Views: 209

Re: [STM32GENERIC] SPI DMA

@victor, OK, changed here, and it works. Updated above chart as the read speed is much higher now :) +20% BTW what is the MINC=1 in SPI.dmaSend(const_cast<uint8_t*>(buf), n, 1); Memory Increment?? Memory increment flag for the DMA. If 0, it sends the content of the same address n number of times wi...
by victor_pv
Sun Apr 30, 2017 1:32 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 29
Views: 209

Re: [STM32GENERIC] SPI DMA

Victor_pv: nice work, I can test when I got some more free time. I'll try to get spiffs working first with the on-board flash. Is there any sense in creating a small test set for SPI and SPI DMA between SPI1 and SPI2 to verify how it works ? Could be tested. I don't know if the SPI library already ...
by victor_pv
Sun Apr 30, 2017 1:29 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 29
Views: 209

Re: [STM32GENERIC] SPI DMA

SPI.dmaTransfer( buf, buf, n); // SPI.dmaTransfer( 0, buf, n); I forgot to add that option for a null send buffer. That's something I added in the libmaple version specifically for sdfat. When the send buffer is NULL, the spi library uses 1 byte buffer with FF with memory increase disabled. That wa...
by victor_pv
Sun Apr 30, 2017 7:04 am
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 29
Views: 209

Re: [STM32GENERIC] SPI DMA

I get a filling they pretty much copy/paste hardware blocks between series, so hopefully they are the same, but if not, I dont think is too much trouble adding them, since the reference manuals have a nice table for the dma channels. Glad to know if works on the F7. I have one I got last year for fr...

Go to advanced search