When compiling with platformio with stm32duino, I got the following error:
.pio\libdeps\genericSTM32F103CB\Ucglib\src\Ucglib.cpp:834:3: error: '__NOP' was not declared in this scope
834 | __NOP;
| ^~~~~
Compiling .pio\build\genericSTM32F103CB\libdb5\Ucglib\clib\ucg_dev_ic_ili9325.c.o
*** [.pio\build\genericSTM32F103CB\libdb5\Ucglib\Ucglib.cpp.o] Error 1
One wokaround will be copy the defination from cmsis_gcc.h with a little modification(NOP() -> NOP): #define __NOP __ASM volatile ("nop")
It would be nice if this problem can be addressed from upstream(here) rather than do that modify manualy whenever I compile the project on a new envirounment. (That makes pio download a fresh ucglib).
When compiling with platformio with stm32duino, I got the following error:
One wokaround will be copy the defination from
cmsis_gcc.h
with a little modification(NOP() -> NOP):#define __NOP __ASM volatile ("nop")
It would be nice if this problem can be addressed from upstream(here) rather than do that modify manualy whenever I compile the project on a new envirounment. (That makes pio download a fresh ucglib).