I’m facing a weird problem when, using vscode and pio, I try to debug Marlin firmware.
Firmware is compiling correctly when clicking on build task, so platformio.ini is correct (or so I think)
but when I click for “start debugging” i get a linker error. This let me think that standard link options are different from debug ones…where do I find them?
Linker doesn’t find:
static constexpr uint8_t fan_speed_scaler[FAN_COUNT] = ARRAY_N(FAN_COUNT, 128, 128, 128, 128, 128, 128);
but changing source with:
static uint8_t fan_speed_scaler[FAN_COUNT];
works fine even in debug. I think it’s a optimization option but, again, where do are stored passed options? only in platformio.ini? There is nothing there that specialized for debug
Any help is appreciated, thanks