Can I use KDS and the KSDK_1.0.0-K24FN256 with tower K24 as starting point for Pin Muxing

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

Can I use KDS and the KSDK_1.0.0-K24FN256 with tower K24 as starting point for Pin Muxing

970 Views
DaveTonyCook
Contributor IV

Hi,

 

I'm using IAR Workbench v7.30 for Kinetis K24FN256 development.

 

I have the K24 tower system as a starting point / reference design and intend to use the SDK for driver development.  I will soon be moving to a custom board that will be based on the K24 Tower system however I will be modifying the pin muxing / allocation for my custom board.  I would like to use, if possible, KDS to import the KSDK_1.0.0-K24FN256 reference project and use that as the starting point for modifying the pin mux / allocation.

 

Can this be done and if so how do go about it?

 

Thanks

Labels (1)
6 Replies

566 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Dave:

Just pasting here the response to your Service Request for others interested.

There are 3 main ways you can go about custom K24 board files:

  1. Manually modify the existing board files of TWR-K24 to match your custom K24 board.
  2. Create new board files for your custom board using Processor Expert.
  3. Modify known existing TWR-K24 Processor Expert components to match your board.

- In option (A) you need to inspect all the board files (board.h, gpio_pins.c/h, hardware_init.c, pin_mux.c/h) and make the proper changes.

- For option (B) these are the steps:

  1. Create a new project for MK24FN256 (select the processor, NOT the board) with Processor Expert support. This can be done with KDS or PEx Standalone version.
  2. Configure the “PinSettings” component according to your board requirements. You can go to the “Pins View Mode” and customize pin names if desired.
  3. Add a “fsl_gpio“ component and create the required Input/Output configurations.
  4. Generate code and you get the new board files. Just notice that the names may differ a little, for example instead of “pin_mux.c” you may have “pin_init.c”. Just use these board files for your custom board KSDK projects.

- As for option (C) follow these steps:

  1. Create project for MK24FN256 (again for processor, NOT the board) with PEx support.
  2. Go to File -> Import -> Processor Expert -> Apply Board Configuration -> Next -> Browse and search for the next file:

C:\Freescale\KSDK_1.1.0\boards\twrk24f120m\twrk24f120m.peb

Click on Finish.

You will have “PinSettings” and “fsl_gpio” components already configured for TWR-K24. Just make the changes you want, generate code and take the newly generated board files.

In my opinion the best approach is option (B), as you have full knowledge and control of your settings and do not rely on existing configurations.

Regards!

Jorge Gonzalez

566 Views
DaveTonyCook
Contributor IV

Hi Jorge,

Thanks for the pointers however two things are causing me a problem:

1.  If I go with option (B) I do not see any fsl_xxxx components in the component library?

2. If I go with option (C) when I import C:\Freescale\KSDK_1.1.0\boards\twrk24f120m\twrk24f120m.peb I get the following error:

"An internal error occurred during: "Importing components to project test2 - test2.".

java.lang.NullPointerException"

Also, my componant lib does not show “fsl_gpio”

Any Ideas?

Thanks

0 Kudos

566 Views
DaveTonyCook
Contributor IV

Hi,

From 1. above the reason I didn't have any sdk components in my component library and why the KSDK_PATH wasn't selectable is that having reinstalled PE and KDS I hadn't install the KSDK v1.1.0 Eclipse Update to Processor Expert.

a. In either KDS or PE use the menu Help > Install New Software

b. Select Add->archive and brows to C:\Freescale\KSDK_1.1.0\tools\eclipse_update\KSDK_1.1.0_Eclipse_Update.zip

c. Choose and install the updates  

From 2. above I think the reason why Im unable to import the .peb file to the MK24FN1M0 is that the TWR board config is for the MK24FN256  I tried the same procedure with the MK60 processor and TWR MK60 config and all was well.

Thanks all.

I've now opted for option (B) as advised :smileylaugh:

0 Kudos

566 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Dave:

I am sorry for the troubles you had so far. It should be working.

Seems that the KSDK v1.1.0 fixed some things. But the MK24FN256 should be selectable from the New Project Wizard.

As I mentioned in the support ticket, it may be that you installed previous versions of the Eclipse Update, e.g. for KSDK v1.0.0 or maybe you had the standalone version KSDK for TWR-K24?

I would try a complete reinstallation of PEx and only install Processor Expert Update 2, the K22F patch and the KSDK v1.1.0 Eclipse Update.

By the way, I was able to create a project for K24FN1M0 and import TWR-K24 .peb file even with the different processor. So this is not the cause.

Let us know if you see any improvement.

Regards!

Jorge Gonzalez

566 Views
DaveTonyCook
Contributor IV

Hi Jorge,

After complete removal of all SDK, PEx and KDS components from my system and then reinstallation as advised my issue has now been resolved.

Thanks for your effort and advice

Dave

0 Kudos

566 Views
mjbcswitzerland
Specialist V

Hi Dave

Although not using KSDK the following allows K24 operation with KDS and simple pin mux setup testing: http://www.utasker.com/kinetis/TWR-K24F120M.html

Using Visual Studio the port/mux operation can be verified on a simulated K24 (can be set up for custom boards).

Regards

Mark

Kinetis: µTasker Kinetis support

K24: µTasker Kinetis TWR-K24F120M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos