eldarkg / emdr1986x-std-per-lib

Milandr MCU 1986x Standard Peripherals Library. Mirror:

Home Page:https://code.launchpad.net/~eldar/emdr1986x-std-per-lib/+git/emdr1986x-std-per-lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Function ETH_DMAPrepare is broken

Amomum opened this issue · comments

DMA_CtrlDataInitTypeDef DMA_PriCtrlStr;

this structure is created but is not initialized, so call to DMA_Init triggers assert_failed.

Unfortunately I have no idea how to use ETH_DMAPrepare and when to call it. ETH_DMAFrameRx doesn't work in FIFO-mode (i.e. with DMA) if I just call it, so DMA should be prepared.. at some point.. i guess. But when and how exactly? I could not find any example for Ethernet with DMA.

@Amomum Can you check the new commit e599218
PS I reset your previous commits (use original library files). If you need to fix them add a new pull request. Thank you