nxp-mcuxpresso / mcux-sdk

MCUXpresso SDK
BSD 3-Clause "New" or "Revised" License
339 stars 148 forks source link

[BUG] Can't build example using SDK from Github, but works with SDK builder #212

Closed andresovela closed 1 month ago

andresovela commented 1 month ago

Describe the bug I've been trying to build an example project using the SDK directly from Github. After failing to figure out what is wrong, I decided to try to build a project using an SDK downloaded using the SDK builder. The example from the SDK builder builds.

Specifically, I'm trying to build the example dsp_examples/naturedsp for the RT685 EVK.

After comparing the two SDKs, I found that there are differences in the all_lib_device.cmake. This is the only include() statement in the CMakeLists.txt of the example that references the SDK. See https://github.com/nxp-mcuxpresso/mcux-sdk-examples/blob/8ebfdb8c37c30b3c8e312d32ba7b0967f01c0bec/evkmimxrt685/dsp_examples/naturedsp/cm33/armgcc/CMakeLists.txt#L82

This is what the includes look like in the SDK in Github for SDK 2.16 (https://github.com/nxp-mcuxpresso/mcux-sdk/blob/6f3fd257cdcf978a4d26e7d6e9eed9240037422b/devices/MIMXRT685S/all_lib_device.cmake#L1374-L1396)

This is what they look like in the SDK from SDK builder:

include_if_use(BOARD_Project_Template_evkmimxrt685)
include_if_use(BOARD_Project_Template_evkmimxrt685_om13790host)
include_if_use(BOARD_Project_Template_mimxrt685audevk)
include_if_use(BOARD_Project_Template_mimxrt685audevk_om13790host)
include_if_use(CMSIS_DSP_Include)
include_if_use(CMSIS_DSP_Source)
include_if_use(CMSIS_Device_API_OSTick)
include_if_use(CMSIS_Device_API_RTOS2)
include_if_use(CMSIS_Driver_Include_CAN)
include_if_use(CMSIS_Driver_Include_Ethernet)
include_if_use(CMSIS_Driver_Include_Ethernet_MAC)
include_if_use(CMSIS_Driver_Include_Ethernet_PHY)
include_if_use(CMSIS_Driver_Include_Flash)
include_if_use(CMSIS_Driver_Include_I2C)
include_if_use(CMSIS_Driver_Include_MCI)
include_if_use(CMSIS_Driver_Include_NAND)
include_if_use(CMSIS_Driver_Include_SAI)
include_if_use(CMSIS_Driver_Include_SPI)
include_if_use(CMSIS_Driver_Include_USART)
include_if_use(CMSIS_Driver_Include_USB_Device)
include_if_use(CMSIS_Driver_Include_USB_Host)
include_if_use(CMSIS_Driver_Include_WiFi)
include_if_use(CMSIS_Include_core_cm)
include_if_use(CMSIS_NN_Source)
include_if_use(CMSIS_RTOS2_NonSecure)
include_if_use(CMSIS_RTOS2_Secure)
include_if_use(DEVICES_Project_Template_MIMXRT685S.MIMXRT685S)
include_if_use(RTE_Device.MIMXRT685S)
include_if_use(component_audio_flexcomm_i2s_dma_adapter.MIMXRT685S)
include_if_use(component_button.MIMXRT685S)
include_if_use(component_codec_adapters.MIMXRT685S)
include_if_use(component_codec_i2c.MIMXRT685S)
include_if_use(component_common_task)
include_if_use(component_cs42448_adapter.MIMXRT685S)
include_if_use(component_cs42888_adapter.MIMXRT685S)
include_if_use(component_ctimer_adapter.MIMXRT685S)
include_if_use(component_flexcomm_i2c_adapter.MIMXRT685S)
include_if_use(component_flexcomm_spi_adapter.MIMXRT685S)
include_if_use(component_flexspi_nor_flash_adapter_rt685evk.MIMXRT685S)
include_if_use(component_i3c_adapter.MIMXRT685S)
include_if_use(component_i3c_bus.MIMXRT685S)
include_if_use(component_i3c_bus_adapter.MIMXRT685S)
include_if_use(component_led.MIMXRT685S)
include_if_use(component_lists.MIMXRT685S)
include_if_use(component_log.MIMXRT685S)
include_if_use(component_log_backend_debugconsole.MIMXRT685S)
include_if_use(component_log_backend_debugconsole_lite.MIMXRT685S)
include_if_use(component_log_backend_ringbuffer.MIMXRT685S)
include_if_use(component_lpc_crc_adapter.MIMXRT685S)
include_if_use(component_lpc_gpio_adapter.MIMXRT685S)
include_if_use(component_lpcrtc.MIMXRT685S)
include_if_use(component_mem_manager.MIMXRT685S)
include_if_use(component_mem_manager_freertos.MIMXRT685S)
include_if_use(component_mem_manager_light.MIMXRT685S)
include_if_use(component_messaging.MIMXRT685S)
include_if_use(component_mflash_common.MIMXRT685S)
include_if_use(component_mflash_dummy.MIMXRT685S)
include_if_use(component_mflash_file.MIMXRT685S)
include_if_use(component_mflash_mimxrt685audevk.MIMXRT685S)
include_if_use(component_mflash_rt685.MIMXRT685S)
include_if_use(component_mrt_adapter.MIMXRT685S)
include_if_use(component_osa)
include_if_use(component_osa_bm)
include_if_use(component_osa_free_rtos)
include_if_use(component_osa_interface)
include_if_use(component_osa_zephyr)
include_if_use(component_ostimer_adapter.MIMXRT685S)
include_if_use(component_panic.MIMXRT685S)
include_if_use(component_power_manager_MIMXRT685S.MIMXRT685S)
include_if_use(component_power_manager_core.MIMXRT685S)
include_if_use(component_pwm_ctimer_adapter.MIMXRT685S)
include_if_use(component_reset_adapter.MIMXRT685S)
include_if_use(component_rt_gpio_adapter.MIMXRT685S)
include_if_use(component_serial_manager.MIMXRT685S)
include_if_use(component_serial_manager_spi.MIMXRT685S)
include_if_use(component_serial_manager_swo.MIMXRT685S)
include_if_use(component_serial_manager_uart.MIMXRT685S)
include_if_use(component_serial_manager_usb_cdc.MIMXRT685S)
include_if_use(component_serial_manager_virtual.MIMXRT685S)
include_if_use(component_software_crc_adapter.MIMXRT685S)
include_if_use(component_software_rng_adapter.MIMXRT685S)
include_if_use(component_tfa9xxx_adapter.MIMXRT685S)
include_if_use(component_timer_manager.MIMXRT685S)
include_if_use(component_trng_adapter.MIMXRT685S)
include_if_use(component_usart_adapter.MIMXRT685S)
include_if_use(component_usart_dma_adapter.MIMXRT685S)
include_if_use(component_wifi_bt_module_config.MIMXRT685S)
include_if_use(component_wifi_bt_module_tx_pwr_limits.MIMXRT685S)
include_if_use(component_wm8904_adapter.MIMXRT685S)
include_if_use(device_MIMXRT685S_CMSIS.MIMXRT685S)
include_if_use(device_MIMXRT685S_startup.MIMXRT685S)
include_if_use(driver_acmp.MIMXRT685S)
include_if_use(driver_cache_cache64.MIMXRT685S)
include_if_use(driver_casper.MIMXRT685S)
include_if_use(driver_clock.MIMXRT685S)
include_if_use(driver_cmsis_flexcomm_i2c.MIMXRT685S)
include_if_use(driver_cmsis_flexcomm_spi.MIMXRT685S)
include_if_use(driver_cmsis_flexcomm_usart.MIMXRT685S)
include_if_use(driver_codec.MIMXRT685S)
include_if_use(driver_common.MIMXRT685S)
include_if_use(driver_cs42448.MIMXRT685S)
include_if_use(driver_cs42888.MIMXRT685S)
include_if_use(driver_ctimer.MIMXRT685S)
include_if_use(driver_dmic.MIMXRT685S)
include_if_use(driver_dmic_dma.MIMXRT685S)
include_if_use(driver_dsp.MIMXRT685S)
include_if_use(driver_flash_config_evkmimxrt685.MIMXRT685S)
include_if_use(driver_flash_config_mimxrt685audevk.MIMXRT685S)
include_if_use(driver_flexcomm.MIMXRT685S)
include_if_use(driver_flexcomm_i2c.MIMXRT685S)
include_if_use(driver_flexcomm_i2c_dma.MIMXRT685S)
include_if_use(driver_flexcomm_i2c_freertos.MIMXRT685S)
include_if_use(driver_flexcomm_i2s.MIMXRT685S)
include_if_use(driver_flexcomm_i2s_dma.MIMXRT685S)
include_if_use(driver_flexcomm_spi.MIMXRT685S)
include_if_use(driver_flexcomm_spi_dma.MIMXRT685S)
include_if_use(driver_flexcomm_spi_freertos.MIMXRT685S)
include_if_use(driver_flexcomm_usart.MIMXRT685S)
include_if_use(driver_flexcomm_usart_dma.MIMXRT685S)
include_if_use(driver_flexcomm_usart_freertos.MIMXRT685S)
include_if_use(driver_flexspi.MIMXRT685S)
include_if_use(driver_flexspi_dma.MIMXRT685S)
include_if_use(driver_fmeas.MIMXRT685S)
include_if_use(driver_ft6x06.MIMXRT685S)
include_if_use(driver_fxos8700cq.MIMXRT685S)
include_if_use(driver_hashcrypt.MIMXRT685S)
include_if_use(driver_i2s_bridge.MIMXRT685S)
include_if_use(driver_i3c.MIMXRT685S)
include_if_use(driver_i3c_dma.MIMXRT685S)
include_if_use(driver_iap.MIMXRT685S)
include_if_use(driver_icm42688p.MIMXRT685S)
include_if_use(driver_ili9341.MIMXRT685S)
include_if_use(driver_inputmux.MIMXRT685S)
include_if_use(driver_inputmux_connections.MIMXRT685S)
include_if_use(driver_lpadc.MIMXRT685S)
include_if_use(driver_lpc_crc.MIMXRT685S)
include_if_use(driver_lpc_dma.MIMXRT685S)
include_if_use(driver_lpc_gpio.MIMXRT685S)
include_if_use(driver_lpc_iopctl.MIMXRT685S)
include_if_use(driver_lpc_rtc.MIMXRT685S)
include_if_use(driver_mma8652fc.MIMXRT685S)
include_if_use(driver_mpi_loader.MIMXRT685S)
include_if_use(driver_mrt.MIMXRT685S)
include_if_use(driver_mu.MIMXRT685S)
include_if_use(driver_ostimer.MIMXRT685S)
include_if_use(driver_otfad.MIMXRT685S)
include_if_use(driver_pca9420.MIMXRT685S)
include_if_use(driver_pint.MIMXRT685S)
include_if_use(driver_power.MIMXRT685S)
include_if_use(driver_powerquad.MIMXRT685S)
include_if_use(driver_powerquad_cmsis.MIMXRT685S)
include_if_use(driver_puf.MIMXRT685S)
include_if_use(driver_reset.MIMXRT685S)
include_if_use(driver_sctimer.MIMXRT685S)
include_if_use(driver_sema42.MIMXRT685S)
include_if_use(driver_sx1502.MIMXRT685S)
include_if_use(driver_tfa9xxx.MIMXRT685S)
include_if_use(driver_tfa9xxx_hal.MIMXRT685S)
include_if_use(driver_trng.MIMXRT685S)
include_if_use(driver_usdhc.MIMXRT685S)
include_if_use(driver_utick.MIMXRT685S)
include_if_use(driver_wm8904.MIMXRT685S)
include_if_use(driver_wwdt.MIMXRT685S)
include_if_use(middleware_aws_iot_device_defender)
include_if_use(middleware_aws_iot_device_shadow)
include_if_use(middleware_aws_iot_device_shadow_template)
include_if_use(middleware_aws_iot_jobs)
include_if_use(middleware_aws_iot_ota)
include_if_use(middleware_aws_iot_ota_freertos)
include_if_use(middleware_baremetal.MIMXRT685S)
include_if_use(middleware_cjson)
include_if_use(middleware_dsp_audio_streamer_hifi4_dec)
include_if_use(middleware_dsp_audio_streamer_libxa_af_hostless)
include_if_use(middleware_dsp_audio_streamer_testxa_af_hostless)
include_if_use(middleware_dsp_nn_fusionf1_nn_dsp)
include_if_use(middleware_dsp_nn_hifi4_nn_dsp)
include_if_use(middleware_edgefast_bluetooth_asrc_sw)
include_if_use(middleware_edgefast_bluetooth_ble_ethermind_cm33)
include_if_use(middleware_edgefast_bluetooth_ble_ethermind_lib_cm33)
include_if_use(middleware_edgefast_bluetooth_ble_ethermind_lib_lc3_cm33)
include_if_use(middleware_edgefast_bluetooth_br_ethermind_cm33)
include_if_use(middleware_edgefast_bluetooth_br_ethermind_lib_cm33)
include_if_use(middleware_edgefast_bluetooth_br_ethermind_lib_lc3_cm33)
include_if_use(middleware_edgefast_bluetooth_btble_ethermind_cm33)
include_if_use(middleware_edgefast_bluetooth_btble_ethermind_lib_cm33)
include_if_use(middleware_edgefast_bluetooth_btble_ethermind_lib_lc3_cm33)
include_if_use(middleware_edgefast_bluetooth_common_ethermind)
include_if_use(middleware_edgefast_bluetooth_common_ethermind_hci)
include_if_use(middleware_edgefast_bluetooth_common_ethermind_hci_uart)
include_if_use(middleware_edgefast_bluetooth_common_ethermind_lc3)
include_if_use(middleware_edgefast_bluetooth_config_ethermind)
include_if_use(middleware_edgefast_bluetooth_config_template)
include_if_use(middleware_edgefast_bluetooth_controller_ind_reset)
include_if_use(middleware_edgefast_bluetooth_extension_common_ethermind)
include_if_use(middleware_edgefast_bluetooth_k32w061_controller)
include_if_use(middleware_edgefast_bluetooth_le_audio_aics)
include_if_use(middleware_edgefast_bluetooth_le_audio_bap)
include_if_use(middleware_edgefast_bluetooth_le_audio_bass)
include_if_use(middleware_edgefast_bluetooth_le_audio_cap)
include_if_use(middleware_edgefast_bluetooth_le_audio_ccid)
include_if_use(middleware_edgefast_bluetooth_le_audio_config_template)
include_if_use(middleware_edgefast_bluetooth_le_audio_csip)
include_if_use(middleware_edgefast_bluetooth_le_audio_gmap)
include_if_use(middleware_edgefast_bluetooth_le_audio_has)
include_if_use(middleware_edgefast_bluetooth_le_audio_mcc)
include_if_use(middleware_edgefast_bluetooth_le_audio_mcs)
include_if_use(middleware_edgefast_bluetooth_le_audio_micp)
include_if_use(middleware_edgefast_bluetooth_le_audio_mpl)
include_if_use(middleware_edgefast_bluetooth_le_audio_pbp)
include_if_use(middleware_edgefast_bluetooth_le_audio_tbs)
include_if_use(middleware_edgefast_bluetooth_le_audio_tmap)
include_if_use(middleware_edgefast_bluetooth_le_audio_vcp)
include_if_use(middleware_edgefast_bluetooth_le_audio_vocs)
include_if_use(middleware_edgefast_bluetooth_liblc3codec)
include_if_use(middleware_edgefast_bluetooth_mcux_linker_template_evkmimxrt685)
include_if_use(middleware_edgefast_bluetooth_mcux_linker_template_mimxrt685audevk)
include_if_use(middleware_edgefast_bluetooth_pal)
include_if_use(middleware_edgefast_bluetooth_pal_crypto_ethermind)
include_if_use(middleware_edgefast_bluetooth_pal_db_gen_ethermind)
include_if_use(middleware_edgefast_bluetooth_pal_host_msd_fatfs_ethermind)
include_if_use(middleware_edgefast_bluetooth_pal_platform_ethermind)
include_if_use(middleware_edgefast_bluetooth_porting)
include_if_use(middleware_edgefast_bluetooth_porting_atomic)
include_if_use(middleware_edgefast_bluetooth_porting_list)
include_if_use(middleware_edgefast_bluetooth_porting_net)
include_if_use(middleware_edgefast_bluetooth_porting_toolchain)
include_if_use(middleware_edgefast_bluetooth_porting_work_queue)
include_if_use(middleware_edgefast_bluetooth_profile_bas)
include_if_use(middleware_edgefast_bluetooth_profile_dis)
include_if_use(middleware_edgefast_bluetooth_profile_fmp)
include_if_use(middleware_edgefast_bluetooth_profile_hps)
include_if_use(middleware_edgefast_bluetooth_profile_hrs)
include_if_use(middleware_edgefast_bluetooth_profile_hts)
include_if_use(middleware_edgefast_bluetooth_profile_ias)
include_if_use(middleware_edgefast_bluetooth_profile_ipsp)
include_if_use(middleware_edgefast_bluetooth_profile_ots)
include_if_use(middleware_edgefast_bluetooth_profile_pxr)
include_if_use(middleware_edgefast_bluetooth_profile_tip)
include_if_use(middleware_edgefast_bluetooth_profile_wu)
include_if_use(middleware_edgefast_bluetooth_sdio_template_evkmimxrt685)
include_if_use(middleware_edgefast_bluetooth_sdio_template_mimxrt685audevk)
include_if_use(middleware_edgefast_bluetooth_shell)
include_if_use(middleware_edgefast_bluetooth_shell_ble)
include_if_use(middleware_edgefast_bluetooth_shell_le_audio)
include_if_use(middleware_edgefast_bluetooth_template)
include_if_use(middleware_edgefast_bluetooth_wifi_nxp_controller_base)
include_if_use(middleware_edgefast_wifi_nxp)
include_if_use(middleware_eiq_tensorflow_lite_micro)
include_if_use(middleware_eiq_tensorflow_lite_micro_binary)
include_if_use(middleware_eiq_tensorflow_lite_micro_cmsis_nn)
include_if_use(middleware_eiq_tensorflow_lite_micro_examples_microspeech)
include_if_use(middleware_eiq_tensorflow_lite_micro_headers)
include_if_use(middleware_eiq_tensorflow_lite_micro_reference)
include_if_use(middleware_eiq_tensorflow_lite_micro_third_party_cmsis_nn)
include_if_use(middleware_eiq_tensorflow_lite_micro_third_party_fft2d)
include_if_use(middleware_eiq_tensorflow_lite_micro_third_party_flatbuffers)
include_if_use(middleware_eiq_tensorflow_lite_micro_third_party_gemmlowp)
include_if_use(middleware_eiq_tensorflow_lite_micro_third_party_kissfft)
include_if_use(middleware_eiq_tensorflow_lite_micro_third_party_ruy)
include_if_use(middleware_eiq_tensorflow_lite_micro_third_party_xa_nnlib_hifi4)
include_if_use(middleware_eiq_tensorflow_lite_micro_third_party_xa_nnlib_hifi4_binary)
include_if_use(middleware_eiq_tensorflow_lite_micro_xtensa)
include_if_use(middleware_emwin)
include_if_use(middleware_emwin_template)
include_if_use(middleware_fatfs)
include_if_use(middleware_fatfs_mmc)
include_if_use(middleware_fatfs_ram)
include_if_use(middleware_fatfs_sd)
include_if_use(middleware_fatfs_template_mmc)
include_if_use(middleware_fatfs_template_ram)
include_if_use(middleware_fatfs_template_sd)
include_if_use(middleware_fatfs_template_usb)
include_if_use(middleware_fatfs_usb)
include_if_use(middleware_fmstr)
include_if_use(middleware_fmstr_platform_gen32le)
include_if_use(middleware_freertos-kernel)
include_if_use(middleware_freertos-kernel_cm33_non_trustzone)
include_if_use(middleware_freertos-kernel_cm33_trustzone_non_secure)
include_if_use(middleware_freertos-kernel_cm33_trustzone_secure)
include_if_use(middleware_freertos-kernel_cm33_trustzone_secure_context)
include_if_use(middleware_freertos-kernel_extension)
include_if_use(middleware_freertos-kernel_heap_1)
include_if_use(middleware_freertos-kernel_heap_2)
include_if_use(middleware_freertos-kernel_heap_3)
include_if_use(middleware_freertos-kernel_heap_4)
include_if_use(middleware_freertos-kernel_heap_5)
include_if_use(middleware_freertos-kernel_mpu_wrappers)
include_if_use(middleware_freertos-kernel_mpu_wrappers_v2)
include_if_use(middleware_freertos-kernel_template)
include_if_use(middleware_freertos_backoffalgorithm)
include_if_use(middleware_freertos_corehttp)
include_if_use(middleware_freertos_corejson)
include_if_use(middleware_freertos_coremqtt)
include_if_use(middleware_freertos_coremqtt-agent)
include_if_use(middleware_freertos_coremqtt_template)
include_if_use(middleware_freertos_corepkcs11)
include_if_use(middleware_freertos_corepkcs11_mbedtls)
include_if_use(middleware_freertos_corepkcs11_mbedtls_utils)
include_if_use(middleware_freertos_corepkcs11_template)
include_if_use(middleware_freertos_freertos-plus-tcp)
include_if_use(middleware_iot_reference_cli)
include_if_use(middleware_iot_reference_kvstore)
include_if_use(middleware_iot_reference_logging)
include_if_use(middleware_iot_reference_mqtt_agent)
include_if_use(middleware_iot_reference_mqtt_agent_interface)
include_if_use(middleware_iot_reference_nxp_pkcs11)
include_if_use(middleware_iot_reference_ota)
include_if_use(middleware_iot_reference_shadow)
include_if_use(middleware_iot_reference_shadow_tasks)
include_if_use(middleware_iot_reference_template)
include_if_use(middleware_iot_reference_transport_mbedtls)
include_if_use(middleware_issdk_drivers_gpio_imx)
include_if_use(middleware_issdk_drivers_gpio_imx8)
include_if_use(middleware_issdk_drivers_gpio_imxrt)
include_if_use(middleware_issdk_drivers_gpio_imxrt1180)
include_if_use(middleware_issdk_drivers_gpio_imxrt600)
include_if_use(middleware_issdk_drivers_gpio_imxrt700)
include_if_use(middleware_issdk_drivers_host)
include_if_use(middleware_issdk_drivers_systick_utils)
include_if_use(middleware_issdk_sensor_allregdefs)
include_if_use(middleware_issdk_sensor_fxas21002)
include_if_use(middleware_issdk_sensor_fxlc95000)
include_if_use(middleware_issdk_sensor_fxls8471q)
include_if_use(middleware_issdk_sensor_fxls8961af)
include_if_use(middleware_issdk_sensor_fxls8962)
include_if_use(middleware_issdk_sensor_fxls896xaf)
include_if_use(middleware_issdk_sensor_fxls8971cf)
include_if_use(middleware_issdk_sensor_fxls8974cf)
include_if_use(middleware_issdk_sensor_fxos8700)
include_if_use(middleware_issdk_sensor_fxpq3115)
include_if_use(middleware_issdk_sensor_fxps7250d4)
include_if_use(middleware_issdk_sensor_interface_common)
include_if_use(middleware_issdk_sensor_isl29023)
include_if_use(middleware_issdk_sensor_mag3110)
include_if_use(middleware_issdk_sensor_mma845x)
include_if_use(middleware_issdk_sensor_mma8491q)
include_if_use(middleware_issdk_sensor_mma865x)
include_if_use(middleware_issdk_sensor_mma9553)
include_if_use(middleware_issdk_sensor_mpl3115)
include_if_use(middleware_issdk_sensor_nmh1000)
include_if_use(middleware_issdk_sensor_nps300x)
include_if_use(middleware_issdk_sensor_tools)
include_if_use(middleware_littlefs)
include_if_use(middleware_llhttp)
include_if_use(middleware_lvgl)
include_if_use(middleware_lvgl_demo_benchmark)
include_if_use(middleware_lvgl_demo_stress)
include_if_use(middleware_lvgl_demo_widgets)
include_if_use(middleware_lvgl_template)
include_if_use(middleware_lvgl_unused_files)
include_if_use(middleware_lwip)
include_if_use(middleware_lwip_apps_httpd)
include_if_use(middleware_lwip_apps_httpd_support)
include_if_use(middleware_lwip_apps_httpsrv)
include_if_use(middleware_lwip_apps_httpssrv)
include_if_use(middleware_lwip_apps_lwiperf)
include_if_use(middleware_lwip_apps_mdns)
include_if_use(middleware_lwip_apps_mqtt)
include_if_use(middleware_lwip_apps_sntp)
include_if_use(middleware_lwip_contrib_ping)
include_if_use(middleware_lwip_contrib_tcpecho)
include_if_use(middleware_lwip_contrib_tcpecho_raw)
include_if_use(middleware_lwip_contrib_udpecho)
include_if_use(middleware_lwip_contrib_udpecho_raw)
include_if_use(middleware_lwip_empty_ethernetif)
include_if_use(middleware_lwip_eoe_ethernetif)
include_if_use(middleware_lwip_template)
include_if_use(middleware_maestro_framework)
include_if_use(middleware_maestro_framework_asrc)
include_if_use(middleware_maestro_framework_codecs)
include_if_use(middleware_maestro_framework_doc)
include_if_use(middleware_maestro_framework_ogg)
include_if_use(middleware_maestro_framework_opus)
include_if_use(middleware_maestro_framework_opusfile)
include_if_use(middleware_maestro_framework_template)
include_if_use(middleware_mbedcrypto)
include_if_use(middleware_mbedcrypto_port)
include_if_use(middleware_mbedcrypto_port_config)
include_if_use(middleware_mbedcrypto_port_rng)
include_if_use(middleware_mbedcrypto_unused_files)
include_if_use(middleware_mbedtls)
include_if_use(middleware_mbedtls3x)
include_if_use(middleware_mbedtls3x_crypto)
include_if_use(middleware_mbedtls3x_crypto_no_psa)
include_if_use(middleware_mbedtls3x_crypto_storage_default)
include_if_use(middleware_mbedtls3x_crypto_storage_ram)
include_if_use(middleware_mbedtls3x_no_psa)
include_if_use(middleware_mbedtls3x_port_config)
include_if_use(middleware_mbedtls3x_port_psa_crypto_config)
include_if_use(middleware_mbedtls3x_port_rng)
include_if_use(middleware_mbedtls3x_ssl)
include_if_use(middleware_mbedtls3x_ssl_no_psa)
include_if_use(middleware_mbedtls3x_template)
include_if_use(middleware_mbedtls3x_tests)
include_if_use(middleware_mbedtls3x_x509)
include_if_use(middleware_mbedtls_3rdparty)
include_if_use(middleware_mbedtls_els_pkc_config)
include_if_use(middleware_mbedtls_port_ksdk)
include_if_use(middleware_mbedtls_template)
include_if_use(middleware_mbedtls_tests)
include_if_use(middleware_mcuboot)
include_if_use(middleware_mcuboot_bootutil)
include_if_use(middleware_mcuboot_encrypted_xip)
include_if_use(middleware_mcuboot_mbedtls-asn1)
include_if_use(middleware_mcuboot_tinycrypt)
include_if_use(middleware_multicore)
include_if_use(middleware_multicore_erpc)
include_if_use(middleware_multicore_erpc_common)
include_if_use(middleware_multicore_erpc_common_multiprocessor)
include_if_use(middleware_multicore_erpc_common_multiprocessor_matrix_multiply_client)
include_if_use(middleware_multicore_erpc_common_multiprocessor_matrix_multiply_server)
include_if_use(middleware_multicore_erpc_doc)
include_if_use(middleware_multicore_erpc_eRPC_arbitrator)
include_if_use(middleware_multicore_erpc_eRPC_client)
include_if_use(middleware_multicore_erpc_eRPC_dspi_master_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_dspi_master_transport)
include_if_use(middleware_multicore_erpc_eRPC_dspi_slave_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_dspi_slave_transport)
include_if_use(middleware_multicore_erpc_eRPC_i2c_slave_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_i2c_slave_transport)
include_if_use(middleware_multicore_erpc_eRPC_lpi2c_slave_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_lpi2c_slave_transport)
include_if_use(middleware_multicore_erpc_eRPC_lpspi_slave_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_lpspi_slave_transport)
include_if_use(middleware_multicore_erpc_eRPC_mu_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_mu_rtos_transport)
include_if_use(middleware_multicore_erpc_eRPC_mu_transport)
include_if_use(middleware_multicore_erpc_eRPC_port_freertos)
include_if_use(middleware_multicore_erpc_eRPC_port_stdlib)
include_if_use(middleware_multicore_erpc_eRPC_rpmsg_lite_master_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_rpmsg_lite_remote_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_rpmsg_lite_rtos_master_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_rpmsg_lite_rtos_remote_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_rpmsg_lite_rtos_transport)
include_if_use(middleware_multicore_erpc_eRPC_rpmsg_lite_transport)
include_if_use(middleware_multicore_erpc_eRPC_rpmsg_tty_rtos_remote_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_rpmsg_tty_rtos_transport)
include_if_use(middleware_multicore_erpc_eRPC_server)
include_if_use(middleware_multicore_erpc_eRPC_spi_master_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_spi_master_transport)
include_if_use(middleware_multicore_erpc_eRPC_spi_slave_c_wrapper)
include_if_use(middleware_multicore_erpc_eRPC_spi_slave_transport)
include_if_use(middleware_multicore_erpc_eRPC_uart_cmsis_transport)
include_if_use(middleware_multicore_erpc_examples)
include_if_use(middleware_multicore_erpc_java)
include_if_use(middleware_multicore_erpc_zephyr)
include_if_use(middleware_multicore_rpmsg_lite)
include_if_use(middleware_multicore_rpmsg_lite_azurertos)
include_if_use(middleware_multicore_rpmsg_lite_bm)
include_if_use(middleware_multicore_rpmsg_lite_evkmimxrt685_bm)
include_if_use(middleware_multicore_rpmsg_lite_evkmimxrt685_freertos)
include_if_use(middleware_multicore_rpmsg_lite_evkmimxrt685_hifi4_bm)
include_if_use(middleware_multicore_rpmsg_lite_freertos)
include_if_use(middleware_multicore_rpmsg_lite_mimxrt685audevk_bm)
include_if_use(middleware_multicore_rpmsg_lite_mimxrt685audevk_freertos)
include_if_use(middleware_multicore_rpmsg_lite_mimxrt685audevk_hifi4_bm)
include_if_use(middleware_multicore_rpmsg_lite_xos)
include_if_use(middleware_multicore_rpmsg_lite_zephyr)
include_if_use(middleware_naturedsp_naturedsp_hifi4)
include_if_use(middleware_pkcs11)
include_if_use(middleware_psatest_ns)
include_if_use(middleware_psatest_ns_crypto)
include_if_use(middleware_psatest_ns_crypto_profile_large)
include_if_use(middleware_psatest_ns_crypto_profile_medium)
include_if_use(middleware_psatest_ns_crypto_profile_small)
include_if_use(middleware_psatest_ns_disable_weak_ecc_r1_curve_tests)
include_if_use(middleware_psatest_ns_initial_attestation)
include_if_use(middleware_psatest_ns_internal_trusted_storage)
include_if_use(middleware_psatest_ns_protected_storage)
include_if_use(middleware_psatest_ns_t_cose)
include_if_use(middleware_psatest_ns_tgt_dev_apis_nxp)
include_if_use(middleware_psatest_unused_files)
include_if_use(middleware_qcbor_unused_files)
include_if_use(middleware_sdmmc_common)
include_if_use(middleware_sdmmc_host_usdhc)
include_if_use(middleware_sdmmc_host_usdhc_cache)
include_if_use(middleware_sdmmc_host_usdhc_freertos)
include_if_use(middleware_sdmmc_host_usdhc_interrupt)
include_if_use(middleware_sdmmc_host_usdhc_polling)
include_if_use(middleware_sdmmc_mmc)
include_if_use(middleware_sdmmc_osa_bm)
include_if_use(middleware_sdmmc_osa_freertos)
include_if_use(middleware_sdmmc_sd)
include_if_use(middleware_sdmmc_sdhc_template)
include_if_use(middleware_sdmmc_sdif_template)
include_if_use(middleware_sdmmc_sdio)
include_if_use(middleware_sdmmc_usdhc_template)
include_if_use(middleware_tfm_flash_iap)
include_if_use(middleware_tfm_ns)
include_if_use(middleware_tfm_ns_evkmimxrt685)
include_if_use(middleware_tfm_ns_mimxrt685audevk)
include_if_use(middleware_tfm_ns_os_wrapper_baremetal)
include_if_use(middleware_tfm_ns_os_wrapper_common)
include_if_use(middleware_tfm_ns_os_wrapper_rtos)
include_if_use(middleware_tfm_ns_profile_large)
include_if_use(middleware_tfm_ns_profile_medium)
include_if_use(middleware_tfm_ns_profile_small)
include_if_use(middleware_tfm_ns_test)
include_if_use(middleware_tfm_ns_test_attestation)
include_if_use(middleware_tfm_ns_test_attestation_asymmetric)
include_if_use(middleware_tfm_ns_test_attestation_symmetric)
include_if_use(middleware_tfm_ns_test_crypto)
include_if_use(middleware_tfm_ns_test_ipc)
include_if_use(middleware_tfm_ns_test_irq_flih)
include_if_use(middleware_tfm_ns_test_irq_slih)
include_if_use(middleware_tfm_ns_test_its)
include_if_use(middleware_tfm_ns_test_platform)
include_if_use(middleware_tfm_ns_test_profile_large)
include_if_use(middleware_tfm_ns_test_profile_medium)
include_if_use(middleware_tfm_ns_test_profile_small)
include_if_use(middleware_tfm_ns_test_ps)
include_if_use(middleware_tfm_ns_test_qcbor)
include_if_use(middleware_tfm_ns_test_s)
include_if_use(middleware_tfm_ns_test_tcose)
include_if_use(middleware_tfm_platform_test)
include_if_use(middleware_tfm_qcbor)
include_if_use(middleware_tfm_qcbor_test)
include_if_use(middleware_tfm_s)
include_if_use(middleware_tfm_s_crypto)
include_if_use(middleware_tfm_s_evkmimxrt685)
include_if_use(middleware_tfm_s_initial_attestation)
include_if_use(middleware_tfm_s_initial_attestation_asymmetric)
include_if_use(middleware_tfm_s_initial_attestation_symmetric)
include_if_use(middleware_tfm_s_its)
include_if_use(middleware_tfm_s_its_load_info_common)
include_if_use(middleware_tfm_s_mimxrt685audevk)
include_if_use(middleware_tfm_s_platform)
include_if_use(middleware_tfm_s_platform_common)
include_if_use(middleware_tfm_s_platform_sp_common)
include_if_use(middleware_tfm_s_profile_large)
include_if_use(middleware_tfm_s_profile_medium)
include_if_use(middleware_tfm_s_profile_small)
include_if_use(middleware_tfm_s_ps)
include_if_use(middleware_tfm_s_test)
include_if_use(middleware_tfm_s_test_attestation)
include_if_use(middleware_tfm_s_test_attestation_asymmetric)
include_if_use(middleware_tfm_s_test_attestation_symmetric)
include_if_use(middleware_tfm_s_test_crypto)
include_if_use(middleware_tfm_s_test_ipc)
include_if_use(middleware_tfm_s_test_irq_flih)
include_if_use(middleware_tfm_s_test_irq_slih)
include_if_use(middleware_tfm_s_test_its)
include_if_use(middleware_tfm_s_test_platform)
include_if_use(middleware_tfm_s_test_profile_large)
include_if_use(middleware_tfm_s_test_profile_medium)
include_if_use(middleware_tfm_s_test_profile_small)
include_if_use(middleware_tfm_s_test_ps)
include_if_use(middleware_tfm_t_cose_mac0_verify)
include_if_use(middleware_tfm_t_cose_sign1_verify)
include_if_use(middleware_tfm_unused_files)
include_if_use(middleware_tfm_usart)
include_if_use(middleware_tfmtests_ns)
include_if_use(middleware_tfmtests_ns_test_attestation)
include_if_use(middleware_tfmtests_ns_test_attestation_asymmetric)
include_if_use(middleware_tfmtests_ns_test_attestation_symmetric)
include_if_use(middleware_tfmtests_ns_test_tcose)
include_if_use(middleware_tfmtests_unused_files)
include_if_use(middleware_tinycbor)
include_if_use(middleware_usb_common_header)
include_if_use(middleware_usb_device_audio_external)
include_if_use(middleware_usb_device_ccid_external)
include_if_use(middleware_usb_device_cdc_external)
include_if_use(middleware_usb_device_cdc_rndis_external)
include_if_use(middleware_usb_device_common_header)
include_if_use(middleware_usb_device_controller_driver)
include_if_use(middleware_usb_device_dfu_external)
include_if_use(middleware_usb_device_hid_external)
include_if_use(middleware_usb_device_ip3511hs)
include_if_use(middleware_usb_device_ip3511hs_config_header)
include_if_use(middleware_usb_device_msd_external)
include_if_use(middleware_usb_device_phdc_external)
include_if_use(middleware_usb_device_printer_external)
include_if_use(middleware_usb_device_stack_external)
include_if_use(middleware_usb_device_video_external)
include_if_use(middleware_usb_host_audio)
include_if_use(middleware_usb_host_cdc)
include_if_use(middleware_usb_host_cdc_ecm)
include_if_use(middleware_usb_host_cdc_rndis)
include_if_use(middleware_usb_host_common_header)
include_if_use(middleware_usb_host_hid)
include_if_use(middleware_usb_host_ip3516hs)
include_if_use(middleware_usb_host_ip3516hs_config_header)
include_if_use(middleware_usb_host_msd)
include_if_use(middleware_usb_host_phdc)
include_if_use(middleware_usb_host_printer)
include_if_use(middleware_usb_host_stack)
include_if_use(middleware_usb_host_video)
include_if_use(middleware_usb_hsdcd)
include_if_use(middleware_usb_hsdcd_config_header)
include_if_use(middleware_usb_pd)
include_if_use(middleware_usb_pd_altmode)
include_if_use(middleware_usb_pd_common_header)
include_if_use(middleware_usb_pd_compliance_test_report)
include_if_use(middleware_usb_pd_config_header)
include_if_use(middleware_usb_pd_phy_ptn5110)
include_if_use(middleware_usb_phy)
include_if_use(middleware_usb_phydcd_config_header)
include_if_use(middleware_vit_hifi4-rt685)
include_if_use(middleware_vit_hifi4-rt685_models)
include_if_use(middleware_voice_seeker_hifi4)
include_if_use(middleware_voice_seeker_rdsp_utilities_public_hifi4)
include_if_use(middleware_wifi)
include_if_use(middleware_wifi_cli)
include_if_use(middleware_wifi_common_files)
include_if_use(middleware_wifi_fwdnld)
include_if_use(middleware_wifi_fwdnld_intf_abs)
include_if_use(middleware_wifi_mlan_sdio)
include_if_use(middleware_wifi_ncp_supp_wmcrypto)
include_if_use(middleware_wifi_net)
include_if_use(middleware_wifi_net_free_rtos)
include_if_use(middleware_wifi_osa)
include_if_use(middleware_wifi_osa_free_rtos)
include_if_use(middleware_wifi_sdio)
include_if_use(middleware_wifi_template)
include_if_use(middleware_wifi_wifi_bt_config_template)
include_if_use(middleware_wifi_wifidriver)
include_if_use(middleware_wifi_wls)
include_if_use(middleware_wifi_wmcrypto)
include_if_use(middleware_wifi_wmtime)
include_if_use(middleware_wifi_wps)
include_if_use(middleware_wireless_wpa_supplicant_rtos)
include_if_use(utilities_misc_utilities.MIMXRT685S)
include_if_use(utility_assert.MIMXRT685S)
include_if_use(utility_assert_lite.MIMXRT685S)
include_if_use(utility_debug_console.MIMXRT685S)
include_if_use(utility_debug_console_lite.MIMXRT685S)
include_if_use(utility_shell.MIMXRT685S)
include_if_use(utility_str.MIMXRT685S)

What's the right way to build the examples using the SDK from Github?

To Reproduce

Expected behavior The example should build.

Screenshots and console output

[  3%] Building C object CMakeFiles/dsp_naturedsp_cm33.elf.dir/src/main_cm33.c.obj
...
/path/to/project/external/mcux-sdk/devices/MIMXRT685S/././MIMXRT685S_cm33.h:166:10: fatal error: core_cm33.h: No such file or directory
  166 | #include "core_cm33.h"                 /* Core Peripheral Access Layer */
      |          ^~~~~~~~~~~~~
compilation terminated.

Additional context The problem is the includes in the all_lib_device.cmake do not include CMSIS, and possibly other dependencies are missing as well, considering how large the include list is in the SDK builder version of the SDK.

My setup is currently a bit custom, but I have set everything up so that CMake can find CMSIS and all that, assuming that the rest of the cmake files do their job.

andresovela commented 1 month ago

Considering that there is a include(set_CMSIS OPTIONAL) in all_lib_decide.cmake, I assume there must be a set_CMSIS.cmake file somewhere, but it isn't either in this repo nor in the CMSIS_5 fork.

andresovela commented 1 month ago

Sorry, never mind. I found it, just needed to add the root of the CMSIS fork to my CMAKE_MODULE_PATH