2016-08-23 12:38 AM
Hi,
I'm trying to use cubeMX to initiate DMA transfer using timer event.
On timer event I would like to copy GPIO port to memory.
I see a lot of examples how to do it without cubeMX, but it looks that they use other HAL functions (maybe from keil).
But I don't see any example of how to do it from cubeMX or using HAL functions. The only examples I can find are ADC reading.
I use System Workbench as IDE.
I would like for some directions before I start to implement it manually
Best regards,
Gregory
#hal #!stm32 #!cubemx #!dma #citation-required2016-08-23 04:51 AM
I see a lot of examples how to do it without cubeMX, but it looks that they use other HAL functions (maybe from keil).
Absent a cite of the specific for the code being referenced, I'd assume it is actually SPL (Standard Peripheral Library) code.2016-08-24 04:30 AM
Hi heifets.gregory,
There is a set of DMA example useful for your case in STM32cube packages that use HAL library. Try to pick the one suitable for the device and board you are using and start from it. For example, for STM32F4 device you find ''DMA_FLASHToRAM'' example in at this path: STM32Cube_FW_F4_V1.13.0\Projects\STM324xG_EVAL\Examples\DMA\DMA_FLASHToRAM Concerning CubeMx, there is no ready for use project or .ioc files. You ought to develop your own project using the tool and based on similar Hal example/project -Hannibal-