- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been reading the application note AN56377. On page 46 it starts out an USB communications example. I built the design in Creator and updated the code in main.c . Basically the code does not build because its looking for an include file that it can't file (device.h). My assumption is that there is a problem with the build environment. SO it can't find the file. The messeges that I get are:
1. prj.M0121: can't open file 'device.h' main.c line 1 Project 1 USB...
2. prj.M0121: can't open file 'device.h' main.c line 2 Project 1 USB...
3. prj.M0120:Build error: missing ';' before 'USBFS_deviceAnddress' main.c line 17 Project 1 USB...
The file main.c is attached.
Any ideas about what is going on ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum.
Can you please post your complete project so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have attached the archive zip file for the project. My latest errors relate to 'USBFS_Start': missing function-prototype
and the error: Build error: 'USBFS_DWR_VDDD_OPERATION': undefined identifier .
Both seem to relate to missing header information.
Randy
- 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
Your example program is from an old versions of PSoc Creator #include <device.h> and
#include <device.h> at the top of your main.c have been moved to #include<project.h> it contains all the .h files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have attached the archive zip file for the project. My latest errors relate to 'USBFS_Start': missing function-prototype
and the error: Build error: 'USBFS_DWR_VDDD_OPERATION': undefined identifier .
Both seem to relate to missing header information.
Randy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The name of your component is USBFS_1 (you left out the "_1").
Bob