SDK 2.5 compilation error

  • Loaded runtime config … OK
  • Loaded profile lock ‘default’ … OK
    ┌─────────────────────────────┐
    │ Activating SiFli-SDK v2.5.1 │
    │ profile=default │
    └─────────────────────────────┘
  • Resolved tool plan … OK
  • Checking environment compatibility … OK
    [ OK ] Updated state file C:\Users\EDY.sifli\sifli-sdk-env.json
  • Identified shell … powershell
  • Generating shell export script … OK
  • Export script … C:\Users\EDY\AppData\Local\Temp\sifli-sdk-export\sdk-env-0fga1x5u.ps1

Done! SiFli-SDK profile default is active.
You can now run sdk.py from your project directory.
PS D:\SiFi_Watch\V9_DEMO> cd .\sf32\qz_watch\project
PS D:\SiFi_Watch\V9_DEMO\sf32\qz_watch\project> scons --board=sf32lb52-lchspi-ulp -j8
scons: Reading SConscript files …
Board: sf32lb52-lchspi-ulp_hcpu

warning: the default selection ROTATE_MEM_IN_SRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:24, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:23) of (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:18) is not contained in the choice

warning: the choice symbol ROTATE_MEM_IN_PSRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:21, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:20) is defined with a prompt outside the choice

warning: the choice symbol ROTATE_MEM_IN_SRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:24, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:23) is defined with a prompt outside the choice

warning: the default selection FREETYPE_CACHE_IN_SRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:38, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:36) of (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:30) is not contained in the choice

warning: the choice symbol FREETYPE_CACHE_IN_PSRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:33, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:31) is defined with a prompt outside the choice

warning: the choice symbol FREETYPE_CACHE_IN_SRAM_STANDALONE (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:36, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:34) is defined with a prompt outside the choice

warning: the choice symbol FREETYPE_CACHE_IN_SRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:38, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:36) is defined with a prompt outside the choice

warning: the default selection MESSAGE_CACHE_IN_SRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:58, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:49) of (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:50) is not contained in the choice

warning: the choice symbol MESSAGE_CACHE_IN_PSRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:53, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:44) is defined with a prompt outside the choice

warning: the choice symbol MESSAGE_CACHE_IN_SRAM_STANDALONE (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:56, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:47) is defined with a prompt outside the choice

warning: the choice symbol MESSAGE_CACHE_IN_SRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:58, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:49) is defined with a prompt outside the choice

warning: the choice symbol ROTATE_MEM_IN_PSRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:21, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:20) is defined with a prompt outside the choice

warning: the choice symbol ROTATE_MEM_IN_SRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:24, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:23) is defined with a prompt outside the choice

warning: the choice symbol FREETYPE_CACHE_IN_PSRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:33, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:31) is defined with a prompt outside the choice

warning: the choice symbol FREETYPE_CACHE_IN_SRAM_STANDALONE (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:36, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:34) is defined with a prompt outside the choice

warning: the choice symbol FREETYPE_CACHE_IN_SRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:38, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:36) is defined with a prompt outside the choice

warning: the choice symbol MESSAGE_CACHE_IN_PSRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:53, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:44) is defined with a prompt outside the choice

warning: the choice symbol MESSAGE_CACHE_IN_SRAM_STANDALONE (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:56, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:47) is defined with a prompt outside the choice

warning: the choice symbol MESSAGE_CACHE_IN_SRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:58, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:49) is defined with a prompt outside the choice

error: Aborting due to Kconfig warnings

AssertionError: Fail to generate .config and rtconfig.h:
File “D:\SiFi_Watch\V9_DEMO\sf32\qz_watch\project\SConstruct”, line 12:
PrepareEnv()
File “D:\SiFli-sdk\sifli-sdk\tools\build\building.py”, line 4616:
InitBuild(None, rtconfig.OUTPUT_DIR, board)
File “D:\SiFli-sdk\sifli-sdk\tools\build\building.py”, line 3199:
ResolveBoardConfig(bsp_root, build_dir, board)
File “D:\SiFli-sdk\sifli-sdk\tools\build\building.py”, line 3190:
assert retcode == 0, “Fail to generate .config and rtconfig.h”
PS D:\SiFi_Watch\V9_DEMO\sf32\qz_watch\project>

Activating SIFLI_SDK 2.4
Setting SIFLI_SDK_PATH to ‘D:\OpenSiFli\sifli-sdk’.

  • Checking python version … 3.10.4
  • Checking python dependencies … OK
  • Deactivating the current SiFli-SDK environment (if any) … OK
  • Establishing a new SiFli-SDK environment … OK
  • Identifying shell … powershell.exe
  • Detecting outdated tools in system … Found tools that are not used by active SiFli-SDK version.
    For removing old versions of ninja, sftool use command ‘python.exe D:\OpenSiFli\sifli-sdk\tools\sifli_sdk_tools.py uninstall’
    To free up even more space, remove installation packages of those tools.
    Use option python.exe D:\OpenSiFli\sifli-sdk\tools\sifli_sdk_tools.py uninstall --remove-archives.

Done! You can now compile SiFli-SDK projects.
Go to the project directory and run:

两个编译相同的工程, 2.5的sdk 就直接报错。 能否给于帮助

Warning: The option symbol MESSAGE_CACHE_IN_SRAM (defined at D:\SiFli-sdk\sifli-sdk/middleware/lvgl/Kconfig_mem:58, D:/SiFi_Watch/V9_DEMO/sf32/qz_watch/project/Kconfig.proj:49) has a prompt defined outside the option group.

Error: Aborted due to Kconfig warning

Assertion error: Unable to generate .config and rtconfig.h:
File "D:\SiFi_Watch\V9_DEMO\sf32\qz_watch\project\SConstruct", line 12:
PrepareEnv()
File "D:\SiFli-sdk\sifli-sdk\tools\build\building.py", line 4616:
InitBuild(None, rtconfig.OUTPUT_DIR, board)
File "D:\SiFli-sdk\sifli-sdk\tools\build\building.py", line 3199:
ResolveBoardConfig(bsp_root, build_dir, board)
File "D:\SiFli-sdk\sifli-sdk\tools\build\building.py", line 3190:
assert retcode == 0, "Unable to generate .config and rtconfig.h"
PS D:\SiFi_Watch\V9_DEMO\sf32\qz_watch\project>

Let me reply to this issue first. In the 2.5 branch, the Kconfig options have been modified. The project being compiled may still be based on the older version. You need to refer to the changes in the Kconfig.proj from the SDK’s watch_v9 and modify accordingly. In watch_v9’s Kconfig.proj, configurations like MESSAGE_CACHE_IN_SRAM have already been removed and moved to sdk/middleware/lvgl/Kconfig_mem.