1 2 Previous Next 23 Replies Latest reply on Nov 19, 2015 8:49 AM by rewec_285226

    Instability PSoC Creator 3.1

      Hi,

         

      Since having installed the new PSoC 3.1 (SP1) I'm having stability problems with PSoC Creator. The builds (if working) are taking ages and now and then a Visual C++ 'assertion failed' window pops up (see attachment).

         

      Does anyone else recognize this behavior? PSoC 3.0 worked like a charm.

         

      I have a PSoC 4 (CY8C4xxx family). I've updated the KitProg firmware to version 2.11 using the PSoC programmer. Can I go back to using PSoC Creator 3.0 or is this not possible with the new KitProg firmware? (I do have a backup of my project from PSoC Creator 3.0).

         

      I run Windows 7 and still have PSoC 3.0 installed. Any advice would be much appreciated, I have to finish my thesis using PSoC Creator! Thanks..

         

      Caspar

        • 1. Re: Instability PSoC Creator 3.1
          HeLi_263931

          I have not seen such sluggishness or assertion error messages so far. You might create a support case (top right menu, 'MyCases'), maybe Cypress can help you better.

             

          I also don't know whether the new KitProg firmware is compatible with Creator 3.0. It might be worth a try, since Creator 3.1 and 3.0 can co-exist. If it doesn't work, it should be possible to install the older firmware again.

          • 2. Re: Instability PSoC Creator 3.1
            JoMe_264151

            The assertion you posted has to do wth the on-line code checker named "Clang" which flags errors and helps code completion while you are typing. There is a known bug (NO JOKE!) that removes assertions when you add some empty lines to the end of your source.

               

             

               

            Bob

            • 3. Re: Instability PSoC Creator 3.1
              WaMa_286156

              Bob is right.  From the source code:

                 

              http://clang.llvm.org/doxygen/SourceManager_8cpp_source.html

                 

              00579   assert(NextLocalOffset + FileSize + 1 > NextLocalOffset &&
              00580          NextLocalOffset + FileSize + 1 <= CurrentLoadedOffset &&
              00581          "Ran out of source locations!");
              00582   // We do a +1 here because we want a SourceLocation that means "the end of the
              00583   // file", e.g. for the "no newline at the end of the file" diagnostic.
              00584   NextLocalOffset += FileSize + 1;

                 

               

                 

              so, add a couple of lines at the end of your c file.

              • 4. Re: Instability PSoC Creator 3.1

                Thanks! I have succeeded in reverting to PSoC Creator 3.0 (even with the updated KitProg), but I'll also try to make use of the hidden 'feature' in 3.1 and get rid of the assertions.

                • 5. Re: Instability PSoC Creator 3.1

                  Thanks Bob... I had the same problem and it is solved now

                     

                   It is really a strange solution, but it worked :-)

                  • 6. Re: Instability PSoC Creator 3.1
                            Wow! Very strange. Added a header file and got the assertion error after typing "#define". The extra lines solved it. Thanks for the tip.   
                    • 7. Re: Instability PSoC Creator 3.1
                      JoMe_264151

                      There is an explanation for that bug.

                         

                      Creator uses an on-line code checker named "Clang" (a name that could have been invented by Terry Pratchet ) which also provides information on variables, functions and all that which pops up for code completion) There was a bug in interfacing Clang when reading a comment just before end-of-file. This will probably be repaired with Creator 3.2.

                         

                       

                         

                      Bob

                      • 8. Re: Instability PSoC Creator 3.1

                        I am still running into this in 3.2, and was advised of the workaround discussed here.  I think it's amazing that this bug was not discovered before the product release, since eveb the auto-generated codes trip this problem 

                           

                        PSoC Creator  3.2 SP1 (3.2.0.6175)
                        Culture: English (United States)
                        OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
                        CLR Version: 2.0.50727.5485

                        • 9. Re: Instability PSoC Creator 3.1

                          Actually, Cypress support told me to remove the following strings from all files (including ALL auto-generated files):

                             

                          /* [] END OF FILE */ 

                             

                          I confirmed that the only way I could seem to avoid the Clang crash is to follow the Cypress support's recommendation.

                          • 10. Re: Instability PSoC Creator 3.1

                            Even after replacing all instances of * [] END OF FILE */ from the workspace (find and replace feature), I still get the clang crash.  Please see attached picture.

                               

                             

                               

                            • 11. Re: Instability PSoC Creator 3.1

                              Even after replacing all instances of * [] END OF FILE */ from the workspace (find and replace feature), I still get the clang crash.  Please see attached picture.

                                 

                               

                                 

                              • 12. Re: Instability PSoC Creator 3.1

                                I work with Parallels Desktop V11 on iMac. I have the same problem in a virtual XP or Win 10. 

                                   

                                The same project works well on a virtual XP in VMWare Fusion V8.0  without problems.

                                   

                                Any idea ?

                                • 13. Re: Instability PSoC Creator 3.1
                                  mattl_01

                                  Hey folks,

                                     

                                  I apologize for all the problems people have had with this. It is "Fixed" in PSoC Creator 3.3.  I put Fixed in quotes because what we have done is to workaround the CLANG defect.  You can download 3.3 now from cypress.com/creator.  As usual, you don't have to uninstall 3.2 if you are in the middle of something. It can co-exist with 3.2 or 3.1 or 2.X.

                                     
                                     

                                  There are a bunch of cool new features in 3.3 including a "New Project" wizard that allows you to start from a code example or target a specific kit you have installed. There is also guided pin selection for PSoC 4, an enhanced code example browser, and a resource meter (yay).  You can read more at the bottom of cypress.com/creator (the What's New tab).  I also attached a copy of the Release Notes.

                                     

                                  --Matt

                                  • 14. Re: Instability PSoC Creator 3.1

                                    Hi Matt,

                                       

                                    >> It is "Fixed" in PSoC Creator 3.3.  I put Fixed in quotes because what we have done is to workaround the CLANG defect. 

                                       

                                    Not really ;-(

                                       

                                    The problem exists only with Parallels Desktop. (in my case)

                                       

                                       

                                    --Reiner

                                       

                                     

                                       

                                    1 2 Previous Next