Associate II
February 21, 2017
Question
STMcubeMX don't generate code for DMA
- February 21, 2017
- 6 replies
- 1263 views
Posted on February 21, 2017 at 23:10
Hi.
I am trying to generate code via STMcubeMX for UART via DMA. I have configured the UART and DMA correctly to my liking, but when I press generate source code the only code for the DMA is:
/**
* Enable DMA controller clock */static void MX_DMA_Init(void) { /* DMA controller clock enable */ __HAL_RCC_DMA1_CLK_ENABLE();}
When I look into the logfile for
STMcubeMX I can see when it is trying to generate the code for the DMA it gives these errors:
[INFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (Channel) has Id (UART5_RX) currently not set
[INFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (PeriphDataAlignment) has Id (UART5_RX) currently not setINFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (MemDataAlignment) has Id (UART5_RX) currently not set[INFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (Mode) has Id (UART5_RX) currently not set[INFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (FIFOMode) has Id (UART5_RX) currently not set[INFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (FIFOThreshold) has Id (UART5_RX) currently not set[INFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (FIFOThreshold) has invalid value (null)[INFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (MemBurst) has Id (UART5_RX) currently not set[INFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (MemBurst) has invalid value (null)[INFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (PeriphBurst) has Id (UART5_RX) currently not set[INFO] ImportTextPane:147 - (OptionalMessage_ERROR) IP (DMA) : Parameter (PeriphBurst) has invalid value (null)When i look at the parameters it throws an error for I can see that it is set.
Do anyone have a solution so I can generate code for the DMA?
Attached is the log-file and the IOC-file
#dma #stmcubemx #optionalmessage_error