18:16:12 **** Build of configuration Nios II for project helloworld **** make all Info: Building ../helloworld_bsp/ D:/intelFPGA_lite/17.1/nios2eds/bin/gnu/H-x86_64-mingw32/bin/make --no-print-directory -C ../helloworld_bsp/ Makefile not up to date. ../../DE1_SOC_qsys.sopcinfo has been modified since the BSP was generated. Generate the BSP to update the Makefile, and then build again. To generate from Eclipse: 1. Right-click the BSP project. 2. In the Nios II Menu, click Generate BSP. To generate from the command line: nios2-bsp-generate-files --settings=<settings file> --bsp-dir=<target bsp files directory> make[1]: *** [public.mk] Error 1 make: *** [../helloworld_bsp/-recurs-make-lib] Error 2 18:16:14 Build Finished (took 2s.487ms)

 

image

 .sopcinfo 文件是 Quartus 中 Qsys / Platform Designer 生成的硬件系统描述文件,它包含了处理器、外设、内存映射等信息。BSP(Board Support Package,板级支持包)就是根据这个文件生成的,它包含了硬件抽象层(HAL)驱动、链接脚本等。

当你修改了硬件系统(例如在 Platform Designer 中添加/删除外设、修改地址等),并重新生成了 .sopcinfo 文件后,原来的 BSP 就过时了。编译器在构建时会检查 BSP 是否与最新的 .sopcinfo 匹配,如果不匹配就会报错,提示你需要重新生成 BSP。