I cannot open properly KL43Z examples in KDS

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

I cannot open properly KL43Z examples in KDS

Jump to solution
1,047 Views
gihu
Contributor II

Hi all,

I am trying to setting up the envoirement to work with Kinetis design studio, what I do is:

- Install Kinetis design studio (in windows8)

- Install SDK (in windows8)

- Install SDK in Kinetis design studio (Install new software, searching the KSDK_1.0.0_KL43Z_1.0.2_Eclipse_Update.zip file...), as indicated in KDS user guide

The problem I have, is that every time I import an example (only tried usb examples), the linked resources does not point correctly and I have to change them manually. The adater file alo seems not to be well pointed because I chose bare metal and it was building like an OS was selected.

So, probably I am doing something wrong but I cannot guess what.

Anyone can help me? Does any guide or similar for using SDK examples in KDS?

I look forward your help.

Tags (2)
1 Solution
714 Views
gihu
Contributor II

Sorry Alice for my bad english :smileysad:

I want to build virtual com bare metal project.

Once in a blank workspace:

- Import driver library and build, it works.

- Import usbd_sdk_frdmkl43z48m_bm, as you told me :smileyhappy:, and build, it works

- Import the dev_cdc_virtual_com_frdmkl43z48m_bm, it builds

I can plug the board to the PC and communicate with no problem. So it seems to work perfectly.

But when I want to write my own code inside I realize that it is not working in bare metal, OS_ADAPTER_SDK is selected, and if I change the adapter_cfg.h file to bare metal it stops working.

If I should put pictures of any message or something please tell me.

Regards,

Miguel

View solution in original post

0 Kudos
7 Replies
714 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Miguel.

Have you build  the driver library ?  Please refer to

"...\KSDK_1.0.0-KL43Z\doc" -> "Kinetis SDK User's Guide for the FRDM-Kl43z" -> 4.4 Kinetis Design Studio IDE .

Hope it helps

Alice

0 Kudos
713 Views
gihu
Contributor II

Hi Alice,

Thanks for your prompt response.

First I import the driver library, and I can build it with no errors.

If I import a demo from the demos folder I can build them, just six warnings (because search for 6 files that not exist?)

Sin título.png

The problem is that if I import a project from C:\Freescale\KSDK1.0.0_KL43Z_1.0.1\usb\example\device, I get this

Sin título2.png

I hope you can help me.

Regards,

Miguel

0 Kudos
713 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Miguel,

About the USB demo , after the above operations, it need build the "usbh_sdk_frdmk43z48m_bm" lib .

it is here (...\KSDK_1.0.0-KL43Z\usb\usb_core\device\build\kds ).

Hope it helps

Alice

713 Views
gihu
Contributor II

Hello Alice,

Yeah!! That was it.

Now it builds, and I can debug. But...

I do not know why it does not work as I expected.

It is supposed to be a bare metal project, but adapter_cfg.h file looks like this:

/**HEADER********************************************************************

*

* Copyright (c) 2013 Freescale Semiconductor;

* All Rights Reserved

*

*

***************************************************************************

*

* THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR

* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES

* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 

* IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,

* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES

* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR

* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)

* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,

* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING

* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF

* THE POSSIBILITY OF SUCH DAMAGE.

*

**************************************************************************

*

* $FileName: osadapter_cfg.h$

* $Version :

* $Date    :

*

* Comments:

*

* @brief The file contains OS adapter configuration inf.

*

*****************************************************************************/

#ifndef _OSADAPTER_CFG_H

#define _OSADAPTER_CFG_H 1

#define OS_ADAPTER_MQX                       1

#define OS_ADAPTER_BM                        2

#define OS_ADAPTER_SDK                       3

#define OS_ADAPTER_UCOSIII                   4

/*#define OS_ADAPTER_ACTIVE_OS                 OS_ADAPTER_UCOSIII*/

#define OS_ADAPTER_ACTIVE_OS                 OS_ADAPTER_SDK

#endif

So, OS_ADPTER_SDK is selected, and if I change to

#define OS_ADAPTER_ACTIVE_OS                 OS_ADAPTER_SDK

it stops working, because compiler does not find adapter_bm.h

Sin título.png

I do not guess why I get working OS_adapter_sdk when all the open projects are bare metal :smileyconfused:

Any sugestion?

0 Kudos
713 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Migue,

Sorry for i'm not very clear your meaning . Could you tell me which example you want to run , and how should I do to recurrence your error step by step ?

And do you want  to run the demo with OS ? if yes , you  need related lib , for example , MQX, please build "...\KSDK_1.0.0-KL43Z\usb\usb_core\device\build\kds\usbd_sdk_frdmkl43z48m_mqx".

Hope it helps

Alice

0 Kudos
715 Views
gihu
Contributor II

Sorry Alice for my bad english :smileysad:

I want to build virtual com bare metal project.

Once in a blank workspace:

- Import driver library and build, it works.

- Import usbd_sdk_frdmkl43z48m_bm, as you told me :smileyhappy:, and build, it works

- Import the dev_cdc_virtual_com_frdmkl43z48m_bm, it builds

I can plug the board to the PC and communicate with no problem. So it seems to work perfectly.

But when I want to write my own code inside I realize that it is not working in bare metal, OS_ADAPTER_SDK is selected, and if I change the adapter_cfg.h file to bare metal it stops working.

If I should put pictures of any message or something please tell me.

Regards,

Miguel

0 Kudos
713 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Miguel,

Yes, I think is that : now on the KSDK_1.0.0-KL43Z, we only can use "OS_ADAPTER_SDK" .

the "OS_ADAPTER_MQX" and "OS_ADAPTER_BM" can not use now.

Because  we can not checked out "adapter_bm.h" and "adapter_mqx.h" file under the USB file .

Hope it helps

ALice

0 Kudos