cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Generated Code from MEMS

TheMentat
Visitor

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:

Description Resource Path Location Type
too few arguments to function 'BSP_COM_Init' app_mems.c /first_test/MEMS/App line 168 C/C++ Problem

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!

 

 

0 REPLIES 0