2025-01-22 10:17 AM
Hello,
I'm pretty new to this, but bear with me...
Generating configuration code for NUCLEO-H732FX which includes MEMS. In app_mems.c the generated code appears to attempt initializing the virtual COM out with an incorrectly formed call:
/* Initialize Virtual COM Port */
BSP_COM_Init(COM1);
returning:
the declaration in stm32h7xx_nucleo.c seems to confirm the incorrect call:
#if (USE_BSP_COM_FEATURE > 0)
/**
* @brief Configures COM port.
* @PAram COM COM port to be configured.
* This parameter can be COM1
* @PAram COM_Init Pointer to a UART_HandleTypeDef structure that contains the
* configuration information for the specified USART peripheral.
* @retval BSP error code
*/
int32_t BSP_COM_Init(COM_TypeDef COM, COM_InitTypeDef *COM_Init)
I suppose I could try editing the generated code, but any other workarounds that don't require editing would be greatly appreciated!
2025-01-23 12:40 AM - edited 2025-01-23 12:41 AM
Hello @TheMentat
First let me thank you for posting.
Are you sure about the board part number "NUCLEO-H732FX" ?
I would appreciate it if you could provide your IOC
I will be waiting for your feedback.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-01-28 6:55 AM
@TheMentat wrote:In app_mems.c the generated code appears to attempt initializing the virtual COM out with an incorrectly formed call:
How is COM1 defined?
It could be a macro, so it could define both parameters?