Development tools for Zephyr on STM32Workbench for Zephyr: VS Code extension to set up, build, flash and debug Zephyr applications on STM32.Devicetree manager: browse, edit and visualize Zephyr devicetree, STM32CubeMX-like for Zephyr.
I've restored the project from the beginning, I've applied your tips and the errors are solved.
The program is still not working, as you mentioned in your message.
I don't know how to solve this problem, the source code should be good.