Solved
I am trying to run my project using X-CUBE-AI library and its throwing me this error. I am using B-U585I-IOT02A discovery kit. "/STM32CubeIDE_1.10.0/Major Project/Debug/../X-CUBE-AI/App/app_x-cube-ai.c:61: undefined reference to `MX_USART1_UART_Init
..
