My Custom Board Error

“Why, after setting up the custom board and writing CONFIG_BOARD="my_custom_board" in prj.conf, do I encounter the errors: message(FATAL_ERROR "command failed with return code: ${ret}") and 4,"message": "Kconfig Language Server cannot start for build 'build/blinky_2'. Try rebuilding or do the pristine build to fix this issue."?”

Parents
  • I do not think you should assign CONFIG_BOARD in your prj.conf

    If you look at the board folder for thingy91_nrf9160 you can see that in Kconfig.board they have:

    if SOC_NRF9160_SICA
    
    config BOARD_THINGY91_NRF9160
    	bool "nRF9160 THINGY91"
    
    config BOARD_THINGY91_NRF9160_NS
    	bool "nRF9160 THINGY91 non-secure"


    and in Kconfig.defconfig they have:
    if BOARD_THINGY91_NRF9160 || BOARD_THINGY91_NRF9160_NS
    
    config BOARD
    	default "thingy91_nrf9160"


    try to do it like that instead. 

Reply
  • I do not think you should assign CONFIG_BOARD in your prj.conf

    If you look at the board folder for thingy91_nrf9160 you can see that in Kconfig.board they have:

    if SOC_NRF9160_SICA
    
    config BOARD_THINGY91_NRF9160
    	bool "nRF9160 THINGY91"
    
    config BOARD_THINGY91_NRF9160_NS
    	bool "nRF9160 THINGY91 non-secure"


    and in Kconfig.defconfig they have:
    if BOARD_THINGY91_NRF9160 || BOARD_THINGY91_NRF9160_NS
    
    config BOARD
    	default "thingy91_nrf9160"


    try to do it like that instead. 

Children
Related