User Activity

Hello, everyone. I'm using the STM32F407IGT6 MCU.In my hardware, there are two USB connectors: USB A, for transferring/receiving data from a mass storage device, and USB B, for virtual communication with a PC.I would like to know if there is any way ...
I'm using i2c interface to communicate with a eeprom memory, by dma. It's working, however, when I put a wrong address to write in the memory (to test the errors), I get as return HAL_ERROR, but the function HAL_I2C_ErrorCallback (that i implemented)...
When I use CubeMX, the default language of my genereted code is C. I would like to develop in C++, as I can do in STM32CubeIDE. (I want to use VSCode to program)Is there any option to do this? I've tried just change the main.c to main.cpp, but it did...