Porting Code from Keil to MCUXpresso for MKL16Z32VLH4

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

Porting Code from Keil to MCUXpresso for MKL16Z32VLH4

381 次查看
BPR
Contributor I

Hi,

I have a code written in Keil for the MKL16Z32VLH4 microcontroller, and now I need to port it to MCUXpresso IDE. Can anyone provide me with a step-by-step guide or best practices for effectively porting the code to MCUXpresso? Any tips or specific considerations please.

0 项奖励
1 回复

374 次查看
ErichStyger
Senior Contributor V

Hi @BPR ,

this is how I did such things several times:

  1. create a new project with MCUXpresso IDE and the SDK for your device
  2. build, download and debug that 'empty' project
  3. then add the application code from your Keil project to that new project.
  4. If possible, do this in chunks: add source and header files, but comment out everything not needed initially, e.g. with #if 0 ... #endif
  5. Compile your project, and fix any build issues
  6. Watch out for Keil compiler or assembler specific things. Usually they have a GNU gcc/as counterpart
  7. If something is blocking you, disable it with #if 0 ... #endif and address it later.

Good luck!

Erich