So since these are the exact flags used in the complation command, it seems to be an error in PlatformI Othat it doesn’t use the PIODEBUGFLAGS
correctly. When replacing these debug_flags
with the corrent ones (["-O0", “-g3”, “-ggdb”, “-gdwarf-2”]
), do you get further in the debugging process?
So this is actually looking good as you said. Just for completenes’ sake, can you show the exact code you’re running? Maybe change the pin number so that it mapts to a different GPIO and test it with a multimeter or LED?
I think either the microcontroller isn’t starting up correctly (clock source wrong or whatever) or it toggles the wrong pin.