Starting a project from the scratch for custom hardware

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

Starting a project from the scratch for custom hardware

884 Views
joseasensio
Contributor I

Hi everyone.

 

I am trying to write a simple application without using code or demos for specific hardware platforms.

 

I think my includes are ok but I am getting "undefined reference to GPIO_DRV_Init" error.

If I remove the function call, it compiles properly.

The platform library is already built.

What I am doing wrong?

 

Please see attached image.

 

Many thanks.

Jose

Labels (1)
0 Kudos
3 Replies

710 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Jose Asensio:

Apart from building the KSDK platform library, have you linked it to the project?

(Project -> Properties -> C/C++ Build -> Settings -> Cross ARM C++ Linker -> Libraries)

The guide in below link is the process on how to create a new KSDK project in KDS from scratch, so you have all the required steps:

Writing my first KSDK1.2 Application in KDS3.0 - Hello World and Toggle LED with GPIO Interrupt


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

710 Views
joseasensio
Contributor I

Hi Jorge.

I tried to link the library but it didn't work.

Anyway, I will follow that guide and will see how it goes :smileyhappy:

Thanks!

0 Kudos

710 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Sure, please follow the guide, it should build with no issues.

If you still have problems just let us know.

Regards!

Jorge Gonzalez

0 Kudos