Thanks for the code, and while we investigate the root cause further, a workaround is to remove the inline comments from the u8g2 instantiation:-
Was:
U8G2_PCD8544_84X48_F_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 7, /* data=*/ 6, /* cs=*/ 3, /* dc=*/ 5, /* reset=*/ 4); // Nokia 5110 Display
Try:
U8G2_PCD8544_84X48_F_4W_SW_SPI u8g2(U8G2_R0, 7, 6, 3, 5, 4); // Nokia 5110 Display
Again this is related to the prototype generation, and this can be disabled by:-
1) Right Click Project > Add > Local Board.txt
2) Add the below Line to the file, save and re-compile.
vm.ctags=false
We will update when there is a resolution to this, and let us know if you encounter any further issues.