Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > USB MIDI

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



USB MIDI
Moderator:
RKRM

Post Reply
Follow this topic



USB MIDI

kineses posted on 17 Apr 2013 12:34 PM PST
Senior Member
11 Forum Posts

Dear all,

I'm very sad to say that I feel like Tom Hanks in Cast Away trying to make the usb component work. I have been trying for days and the only results that are comming out are red circles with white X inside them, errors.

The one I'm stuck with is " L127: UNRESOLVED EXTERNAL SYMBOL SYMBOL: USB_MIDI1_InqFlags " main.obj (MAIN) line 0, after building the project and this is what show in the .map file  " USB_MIDI1_InqFlags . . . . . . . . . . . . ---      ** UNRESOLVED **  MAIN "  .

I don't have a clue from where this error is originating. I tried to follow / understand the USB-MIDI example project but most of the code is new to me and I couldn't find any info, unforutnaly. Not even Google couldn't explain it. All I'm trying to do is interface the 001 kit to a music program via midi. So its only the USB component with midi settings and a couple of switches. I can't understand why it's this complicated. Please I'm really in need of some help and experience from you guys. PLEASE HELP.

Thanks a lot.




Re: USB MIDI

danaaknight posted on 17 Apr 2013 12:54 PM PST
Top Contributor
1773 Forum Posts

Best to post a bundle of the project so forum can look at.

 

In Creator, "File", "Create Workspace Bundle", and post it.

 

Regards, Dana.

 

 



Re: USB MIDI

kineses posted on 17 Apr 2013 01:02 PM PST
Senior Member
11 Forum Posts

The commented sections are parts which I guess I don't need. These are mainly the UART sections. Basically it's the code in the example project which I tried to modify for my use. Don't hesitate to comment cause I'm still green in coding. Thanks for the help.

Cheers.



Re: USB MIDI

danaaknight posted on 17 Apr 2013 02:25 PM PST
Top Contributor
1773 Forum Posts

You define the following to be external, but I see no definitions

made in rest of workspace.

 

extern volatile uint8 USB_MIDI1_InqFlags;
extern volatile uint8 USB_MIDI2_InqFlags;

 

So drop the extern part of the declaration, it compiles for me in 2.2 service pack 5

 

Regards, Dana.



Re: USB MIDI

Bob Marlowe posted on 17 Apr 2013 02:31 PM PST
Top Contributor
1768 Forum Posts

Find attached a Cypress example for MIDI

 

Bob



Re: USB MIDI

PSoC73 posted on 17 Apr 2013 04:31 PM PST
Top Contributor
176 Forum Posts
However I'm not sure about MIDI things but checked up your zip. When I put a new USB-MIDI module, UART-MIDI was automatically added with it. And Build it then successed. Would you have to remain UART-MIDI module even if you don't need it. OK?

Re: USB MIDI

kineses posted on 18 Apr 2013 12:58 AM PST
Senior Member
11 Forum Posts

Thanks guys I don't know what to do without you. I have deleted the extern and it worked just fine. What I did is I added a USBFS component and configured the MIDI part instead of adding a ready made USB-MIDI (with UART), just to save resources. I will continue to work on it today and will keep you posted.

One last thing. Can some one please explain what the exten meant in this code?

 

Thanks a lot.



Re: USB MIDI

PSoC73 posted on 18 Apr 2013 01:12 AM PST
Top Contributor
176 Forum Posts
"extern" mean there is the entity somewhere within the project. For example in this case, USB_MIDI1_InqFlags is there in usb_midi.c OK?

Re: USB MIDI

kineses posted on 18 Apr 2013 01:51 AM PST
Senior Member
11 Forum Posts

Oh ok I get it. Can some one please explain these instructions cause I'm still hovering in space:

USB_EP_MM

USB__EP_DMAAUTO

USB_MIDI1_InqFlags

USB_INQ_IDENTITY_REQ_FLAG

 

Please bear my ignorance but I couldn't find any meaning on the web.

 

Thanks a lot



Re: USB MIDI

PSoC73 posted on 18 Apr 2013 02:09 AM PST
Top Contributor
176 Forum Posts
These symbols are for particular of PSoC USB and MIDI. Can't be find in Web. When you read the source code around these, you might be realize these meanings. Cheer!

Re: USB MIDI

danaaknight posted on 18 Apr 2013 03:18 AM PST
Top Contributor
1773 Forum Posts

External variables, and difference between declaring and defining variables -

 

en.wikipedia.org/wiki/External_variable

 

Regards, Dana.



Re: USB MIDI

kineses posted on 18 Apr 2013 03:36 AM PST
Senior Member
11 Forum Posts

Thanks a lot every one. Your help is priceless. I'm still hoovering in space but little by little I'm getting closer to earth with your help.

 

Thanks.



Re: USB MIDI

PSoC73 posted on 18 Apr 2013 05:03 AM PST
Top Contributor
176 Forum Posts
Anyway, Usually we shouldn't know meaning of internal variables, we have to know usage of API method of user modules. When you do it and stack on it, come here and would be ask to someone, That's good, Thank you.




ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20