M
M
Mars362020-08-31 11:31:27
STM
Mars36, 2020-08-31 11:31:27

Why does VS Code underline working code in red?

Recently started using VS Code to write code for STM32. I put together a project for the STM32F407VG controller and everything works fine. After changing the project under STM32f103C8, all elements work the same way, compilation, uploading the firmware to the controller, debugging. The light flashes after uploading the firmware, but VSCode underlines some elements in red, as if it cannot find them, but as I understand it, the compiler is fine, because the code works, do I need to change some VS Code settings or set the paths?5f4cb53e9d807170292485.png5f4cb5478cb3c198391702.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lonelymyp, 2020-09-01
@lonelymyp

Well, it says why it marks in red, the identifier is not defined.
But it's possible that it's actually defined, it's just that VS Code isn't smart enough to keep track of exactly where it's defined.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question