我使用STM32L476驱动SPI屏幕。
使用spi驱动时候感觉还是慢了点。所以开了最高优化和时间优化

开启优化后编译提示如下 Warning: L6989W警告。
Warning: L6989W: Could not apply patch sdcomp-29491-629360 to instruction
POP {r3-r11} at offset 0x120, instruction is within an IT block and
is not the last instruction for lv_hal_disp.o(i.set_px_true_color_alpha).
有此可见是优化等级原因,经过测试。
①、分别关闭时间优化和代码优化。
②、从提示看是文件lv_hal_disp.o文件,也就是对应的.c文件
发现是时间优化开启的原因。
故解决:
①、右击文件

单独关闭文件的时间优化

③、重新编译。警告解除
