cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone gotten ST32F4xx SDIO, 1 serial bit, block I/O, to work with DMA?

childresss
Associate II
Posted on April 16, 2015 at 08:33

Anyone gotten ST32F4xx SDIO, 1 serial bit, block I/O, to work with DMA?

Using HAL sd card driver.

Works fine in polled mode.

DMA mode - DMA complete doesn't happen. Driver hangs, times out.

I'm lacking documentation on how DMA should be configured in detail (lots of variables), using CubeMX.
4 REPLIES 4
Posted on April 17, 2015 at 11:59

I don't use SDIO, and, as you surely know, I wouldn't touch Cube with a stick, but do you account for that this is the exceptional case where the peripheral is the flow controller (see Flow controller subchapter of DMA chapter)?

> I'm lacking documentation on how DMA should be configured in detail (lots of variables), using CubeMX.

You do have documentation , though, how to configure it without Cube - the RM, of course.

JW

childresss
Associate II
Posted on May 18, 2015 at 18:21

If one doesn't use CubeMX, and given that the legacy peripheral lib from ST is depreciated, are you proposing to use HAL calls all hand-coded?

Posted on May 18, 2015 at 19:21

It's only deprecated in the sense that it's already pretty bug free, and doesn't need this constant baby siting and fixing. ST has some big customers for the F1/F2/F4/L1 parts who aren't migrating away from the SPL, and there's been some significant push back.

When you can build a system with Cube that is demonstrably more robust, and you aren't pulling your hair out to do simple stuff, be sure to let us all know. You keep coming here with problems, do you not see this as a red flag?

Embedded software is not built on things that need to be updated weekly/monthly. I've dealt with customers who've been selling the same hardware/software for multiple decades, and the only reason they have to change now is that the fab got demolished, the test systems are obsolete or that Verizon doesn't want to run copper to buildings any more. A lot of these companies are like dinosaurs, the only reason they are changing is that the comet changed the landscape they function in.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 19, 2015 at 15:19

There's a series of Cube-targeted seminars going on in North America, http://www.st.com/web/en./seminar/stm32-hands-on-seminar-stm32cube-frees-embedded-designers

It's 'F0 focused, but if you have chance to attend, it may be an opportunity to talk to insiders.

JW