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
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:
- 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:
- As for option (C) follow these steps:
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
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
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:
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
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
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