- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Newbie here,
I'm going though the first example in "My First FIve PSoC 3 Designs" and I receive this error.
"'PWM_Timer_STATUS': undefined identifier"
I downloaded the associated source files and receive the same error.
Any help would be greatly appreciated.
Thanks in advance,
Bryan
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It would be best, if you upload your project here to have us a look at.
To do so:
Build -> Clean Project
File -> Create Workspace Bundle (minimal)
and then upload the residing zip-archive with your post.
Did you use in Creator 2.0 the "Build -> Buils Project" command? Changed any name??
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To add to Bobs comments,
Components have names, and the attached API generator uses those names as
the object name. So in this example, the PWM name being PWM_1, if you wanted
to call the start function you would write PWM_1_Start(). This is done so API generator
can handle multiple components, of same type, and generate APIs specific to each
component.
I compiled this project w/o error. There is a define in the project,
So did you change name of PWM_1 to PWM_......?
Regards, Dana.
#define PWM_1_STATUS (*(reg8 *) PWM_1_PWMHW__SR0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rename in the schematic PWM_1 to PWM_Timer, then it will compile.
Double-click on the component and change the name, cursor is already in the name-field.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By the way: Would you be so kind to post the address here from which you uploaded the project, I'd like to have an error like that correctes soon.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My bad, the source code from the website didn't have the schematic, I made schematic and the error.
Thank you all for the help.
Bryan