Closed andresovela closed 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.
Sorry, never mind. I found it, just needed to add the root of the CMSIS fork to my CMAKE_MODULE_PATH
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#L82This 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:
What's the right way to build the examples using the SDK from Github?
To Reproduce
Environment (please complete the following information):
Steps to reproduce the behavior: Try to build the example.
Expected behavior The example should build.
Screenshots and console output
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.