2020-04-18 05:56 PM
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