You were correct, the white space around the = was no good. Strange that white space matters there. Whatever.You can't have spaces around your = sign in the line you have added to the CMakefile.
I would have done it differently (#define in a custom board file that replaces boards/pico.h, alongside defining the pinout etc), but your way should work if you get the syntax right.
I think we can call this issue solved. SPI_CLKDIV also fixes the issue, so all fingers point towards the flash max clock frequency spec violation.
Thanks everyone for the guidance and contributions. Just saved me quite a bit of $$ on new hardware haha.
Statistics: Posted by MMI_Modular — Thu Aug 01, 2024 6:00 pm