K66F: CMake build, cross-compile and debug on MCUXpresso

cancel
Showing results for 
Search instead for 
Did you mean: 

K66F: CMake build, cross-compile and debug on MCUXpresso

682 Views
alejandrosancho
Contributor I

I am currently trying to implement my first project using CMake to generate the makefiles so that I can import the project into MCUXpresso and debug on the target (K66F). Up to now, I have been able to build code for the host PC, but not been able to cross-compile for the K66F. I have been trying to include the toolchain file provided with the SDK. Doing this, the code builds but I cannot upload and debug. 

I attach the debug configuration i'm using in MCUXpresso as well as the two CMakeLists.txt files:

HelloWorldDirectory

   -CMakeLists.txt

   -Sourcecode

      ---> CMakeLists2.txt    

   -Build

 

(Im not focusing on "proper" CMake on this project, just looking to be able to build and debug the project)

Any help would be greatly appreciated. 

best,

A.

0 Kudos
1 Reply

514 Views
converse
Senior Contributor V

It would be really helpful if you could explain what you mean by "I cannot upload and debug." DO you get error messages? How did you create the debug configuration, What happens?

0 Kudos