- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Help! I've broken PSOC Creator! (PSoC Creator 4.2 (4.2.0.641)).
I've done something to break a couple of things....
first and most concerning is that I now get an error when using boolians...
Now I get the following error: Build error: '_Bool' does not name a type
I didn't used to get it, and I can't figure out what I've done to break it. So I made a "typedef CYBIT Bool;" and got past that.
Now, I get errors on 3 subroutines called in main() and defined in a sub-file ( and yeah I have function prototypes in an included header). "Build error: undefined reference to `ControlBd_ExecuteCommand'" I can't fingure it out!
I lost a file earlier in the day - so I thought perhaps... but I uninstalled PSOC creator and re-installed it fresh. Same deal.
And now I can't go back to ver 4.1 - it won't read the file
My project is attached. What have I done?
Thanks for your help!
- Labels:
-
PSoC Creator Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Scott,
You have commented out #include "project.h" in main.c file. Could you please un-comment it.
Best Regards,
VRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have project.h included in my file globals.h. But I uncommented it at
the top of main.c and am getting the same results.
Any other suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To solve the boolean problem, you can just do the following:
Add #include <stdbool.h> and use bool instead of Bool in all the places.
After this when I built the project, I get the undefined reference error as you mentioned for three subroutines. Aren't these subroutines event based? You should probably run it inside an ISR rather than in the main function. Please clarify.
Regards,
Dheeraj