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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,429 次查看
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 项奖励
1 回复

1,261 次查看
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 项奖励