AnsweredAssumed Answered

STMcubeMX don't generate code for DMA

Question asked by Vegard Havellen on Feb 21, 2017
Latest reply on Feb 22, 2017 by Vegard Havellen

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 set
INFO] 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

Outcomes