Using "cyfx3gpio.h" in different project solutions

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
user_4790841
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

I have the CYUSB3KIT-003 EZ-USB FX3 SuperSpeed Explorer Kit, and have difficulty merging the different C project solution examples you provide in the SDK ZIP-folder.

I simply want to use the "BootLedBlink" project solution together with the "UsbSpiDmaMode" project solution. I've included the additional paths in Eclipse (compiler + assembler), such that I can use

#include "cyfx3gpio.h"

in my cyfxusbspidmamode.c script file.

When I try to use a function from the header file, ex. "CyFx3BootGpioInit ();", I get an "undefined reference to "CyFx3BootGpioInit" error:

pastedImage_2.png

I am completely new to all this setup, but I have had no luck trying to find a solution. Several Google results discuss the makefile, and incorrect referencing.

Below You can see I've used both path references:

pastedImage_3.png

Hope its an easy fix!

-Soren

0 Likes
1 Solution
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

The example project BootLedBlink makes use of APIs in the boot library whereas the example project UsbSpiDmaMode makes use of APIs in the firmware library. It is not recommended to use boot library and firmware library together in a project.

I understood that your intention is to use a GPIO in the project UsbSpiDmaMode . For this, you can refer to the SDK example cyfxgpioapp. This project makes use of firmware library and can be found in the following location of FX3 SDK:

C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples

Please merge this project with UsbSpiDmaMode to develop your end application.

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna

View solution in original post

1 Reply
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

The example project BootLedBlink makes use of APIs in the boot library whereas the example project UsbSpiDmaMode makes use of APIs in the firmware library. It is not recommended to use boot library and firmware library together in a project.

I understood that your intention is to use a GPIO in the project UsbSpiDmaMode . For this, you can refer to the SDK example cyfxgpioapp. This project makes use of firmware library and can be found in the following location of FX3 SDK:

C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples

Please merge this project with UsbSpiDmaMode to develop your end application.

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna