Porting K64 USB CDC VCOM example to custom project

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

Porting K64 USB CDC VCOM example to custom project

790 Views
inorman
Contributor III

Is there some further guidance on how to achieve this, as I'm struggling to get everything linked together. I've tried to follow the guidance in the document 

SDK_2.3.0_FRDM-K66F_doc\docs\usb\MCUXpresso SDK USB Stack User's Guide.pdf

I've moved the calls to AppInit() and APPTask() into my main function but the compiler is giving the errors 


undefined reference to `APPInit' 
undefined reference to `APPTask'

I've added the function declarations to virtual_com.h and then added #include "virtual_com.h" to my main source file so it should be able to see it.

In the project settings I've ensured all the paths are included that were in the example project 

eyebuildsettings.jpg

Are there some other steps I need to do?

kind regards

Ian

Tags (3)
0 Kudos
1 Reply

575 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi lan:

The only document we have is the MCUXpresso SDK USB Stack User's Guide, chapter 3 Porting to a new platform.

For your case, it is hard to guess what is the cause from your description.

If you copy the implementation of APPInit into your application, still get the undefined reference error, I would suggest you check the conditional compilation. Whether it is really included into your application.

Regards

Daniel

0 Kudos