Another useful feature that helps with debugging. The key line from the movie:
cmake -G "Eclipse CDT4 - Unix Makefiles" -DBOARD=stm32f103_bluepill -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS_DEBUG="-O0 -g3" -DCMAKE_EXE_LINKER_FLAGS_DEBUG="-O0 -g3" ./
But there's one tinny little detail. I verified that all this worked perfectly, and then continued experimenting. Moreover, to ensure the virtual machine would change before your eyes, I experimented on the main machine. And that machine is a very old Eclipse. It's clearly less compatible with RISC-V, as you can see from the combo box elements in the settings. In short, I added it there, but it broke the project build.
Naturally, I freaked out and started working using the method from the previous video. And I'm already skilled at that kind of work. And to interrupt my hand... Ten minutes of screen time means an hour or more of filming and editing, plus rehearsal costs are separate. In short, there's simply no time. I need to make some guidelines!
So I told you... It works great for ARM, and probably for RISC-V on modern Eclipse computers too... But in the next few episodes (yes, they've been filmed, but if I publish them often, no one will have time to watch them – I've checked)... Anyway, I won't be using this mechanism in the next few episodes for the reasons described above. It's just a coincidence. Maybe I'll start in the next few episodes...