Skip to main content
Garnett.Robert
Senior III
April 19, 2020
Question

Adding Peripheral Comment Field to CubeMX:

  • April 19, 2020
  • 0 replies
  • 544 views

Could you consider adding the following feature to CubeMX:

Provide a free text comment field for each peripheral to be printed in the PDF and to appear as a C Language comment above the peripheral initialization code block and DMA code block.

This would make it easier to track what each peripheral has been used for i.e.

"USART 2 GPS Interface"

"USART 3 WiFi Modem Interface"

"ADC 1 Voltage Inputs."

/* USART2 init function */
/* Real Time Clock Sattelite Sync (UART 3) */ <<== Example of comment field output to code.
 
void MX_USART2_UART_Init(void)
{
 huart2.Instance = USART2; ...
 
...
}

Such a feature would enhance the value of CubeMX, particularly where the project uses a lot of the same type of peripherals for different functional interfaces.

Best regards

Rob

This topic has been closed for replies.