他的回复:
【日志信息 - 7】Hardware/Src/hal_spi_flash.c: In function 'prv_spi_flash_write_enable':Hardware/Src/hal_spi_flash.c:160:5: error: implicit declaration of function 'SPI_FLASH_CS_ENABLE'; did you mean 'SPI_FLASH_ENABLE'? [-Werror=implicit-function-declaration]160 | SPI_FLASH_CS_ENABLE();| ^~~~~~~~~~~~~~~~~~~| SPI_FLASH_ENABLEHardware/Src/hal_spi_flash.c:162:5: error: implicit declaration of function 'SPI_FLASH_CS_DISABLE'; did you mean 'SPI_FLASH_DISABLE'? [-Werror=implicit-function-declaration]162 | SPI_FLASH_CS_DISABLE();| ^~~~~~~~~~~~~~~~~~~~| SPI_FLASH_DISABLEcc1: all warnings being treated as errorsmake[1]: *** [/home/workspaceLiteOS/build/mk/module.mk:60: /home/workspaceLiteOS/out/STM32F407_ATK_Explorer/obj/targets/STM32F407_ATK_Explorer/Hardware/Src/hal_spi_flash.o] Error 1解决方法:按照自己调试的开发板子,配置SPI接口,STM32F407_ATK没有SPI_CS脚,把开关宏特殊处理下;