Hi people,
I solve the first problem, error of undeclared identifier, and now I have another problem in keil compiller: Error L6218E: Undefined Symbol.
.
Thank you Ronan. Yes, I used the STM32CUBE, but actually I try change the code, originally, STM32F030R8 by STM32G071RB.