3 Replies Latest reply on Jul 16, 2015 8:36 AM by ruru.chen

    Unknown type name uint8

    ruru.chen

      Hi all,

         

      I am trying out the Day026_HRM_DataLogger project, PSoC Creator shows Build Succeeded, but when I look at header file fram_logging.h, I see 3 errors about unknown type name uint8. But, it desn't show any errors in the Notice List. And it doesn't show in the fram_logging.c file. Has anyone seen this problem? 

        • 1. Re: Unknown type name uint8
          user_360819514

          Hi, 

             

          add #include <project.h> and your problem is resolved.

             

          Greetings

          • 2. Re: Unknown type name uint8
            ruru.chen

            Thanks, Alexander.

               

            I know this is a classic type define problem in C. What I don't understand is why the compiler didn't throw out error message, and why the example project would have this kind of bug in it. 

               

            BTW, I did try to add the line #include <project.h> in the fram_logging.h, and then Creator 3.2 got stuck at linking stage. And then it threw out unknown error message while I tried to terminate it.

               

            I hope Cypress would take a close look of these example projects before they post them, at least keep the format consistent, i.e. what goes into header files and what goes into .c files. I am guessing this project was a migration from some other example project. 

            • 3. Re: Unknown type name uint8
              user_13524663

              This happens in the BLE_ Proximity example project in lls.h and tps.h for the function prototype and both external dat references. Yet, common.h #includes them!

                 

              It does build with no errors except for the error indications in the open lls.h and tps.h files.