eldarkg / emdr1986x-std-per-lib

Milandr MCU 1986x Standard Peripherals Library. Mirror:
https://code.launchpad.net/~eldar/emdr1986x-std-per-lib/+git/emdr1986x-std-per-lib
46 stars 29 forks source link

Function ETH_DMAPrepare is broken #42

Open Amomum opened 6 years ago

Amomum commented 6 years ago

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.

eldarkg commented 5 years ago

@Amomum Can you check the new commit https://github.com/eldarkg/emdr1986x-std-per-lib/commit/e5992182bbf28c9d1782f4aac6f74631b707c6f4 PS I reset your previous commits (use original library files). If you need to fix them add a new pull request. Thank you