參考資訊:
https://github.com/y5c4l3/rust-on-step-mxo2-lpc
解法如下:
--- a/machxo2/CMakeLists.txt +++ b/machxo2/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5) project(chipdb-machxo2 NONE) set(ALL_MACHXO2_DEVICES 256X 640X 1200X 2280X 256 640 1200 2000 4000 7000 1300 2100 4300 6900 9400 4300D 9400D) -set(MACHXO2_DEVICES 1200 6900 CACHE STRING +set(MACHXO2_DEVICES 1200 4000 6900 CACHE STRING "Include support for these MachXO2/XO3 devices (available: ${ALL_MACHXO2_DEVICES})") message(STATUS "Enabled MachXO2/XO3 devices: ${MACHXO2_DEVICES}")
P.S. MACHXO2_DEVICES預設沒有加入4000系列的裝置,需要手動加入