Porting Code from Keil to MCUXpresso for MKL16Z32VLH4

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Porting Code from Keil to MCUXpresso for MKL16Z32VLH4

369 Views
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 Kudos
1 Reply

362 Views
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