3 Replies Latest reply on Aug 21, 2019 11:01 PM by KotnaniK_71

    WICED stalls and need restart

    StN._1917156

      WICED 6.2.1 stalls after certain errors and the only way found so far to pass by is to restart it

       

      At the bottom right corner shows Building Targets: (0%) and the green indicator rolls forever

      ...

      Compiling btn12w.c

      ../apps/w191/bsc01/bcsc_main.c:31:1: error: unknown type name 'modes_t'; use 'enum' keyword to refer to the type

      modes_t mode = MODE_NOTINIT;  // global var

      ^~~~~~~

      enum

      make.exe[1]: *** [../build/bsc01-CYBT_413034_EVAL-rom-ram-Wiced-release/bcsc_main.o] Error 1

      makefile:432: recipe for target '../build/bsc01-CYBT_413034_EVAL-rom-ram-Wiced-release/bcsc_main.o' failed

      make.exe[1]: *** Waiting for unfinished jobs....

        • 1. Re: WICED stalls and need restart
          KotnaniK_71

          Hi,

           

          Can you please share your code and project files to debug the issue.

           

          Thanks

          • 2. Re: WICED stalls and need restart
            StN._1917156

            Ok, so I  prepared very simple example with the snip>hal>gpio example with added just couple lines code under the mark  /* *** Error simulation ****

            starting from line 79 in order to trigger / simulate an error after which the WICED IDE stalls and the only solution for this kind of problems  I found so far is to restart it.

             

            My WICED is

            WICED-SDK Version: Wiced_006.002.001.0002

            b94b1cc047c6cbaa4d2aa50bd36d6af921998270

             

            And are added/ replaced Platform files for CYBT_413034_EVAL

             

            The make record for this example is:

            w191.testwerr1-CYBT_413034_EVAL download

             

            The output on the console is:

            ...

            Compiling wiced_platform_pin_config.c

            ../apps/w191/testwerr1/hal_gpio.c:86:1: error: unknown type name 'modes_t'; did you mean '__mode_t'?

            modes_t mode = MODE_NOTINIT;  // global var

            ^~~~~~~

            __mode_t

            ../apps/w191/testwerr1/hal_gpio.c:86:16: error: 'MODE_NOTINIT' undeclared here (not in a function); did you mean '_REENT_INIT'?

            modes_t mode = MODE_NOTINIT;  // global var

                            ^~~~~~~~~~~~

                            _REENT_INIT

            make.exe[1]: *** [../build/testwerr1-CYBT_413034_EVAL-rom-ram-Wiced-release/hal_gpio.o] Error 1

            makefile:432: recipe for target '../build/testwerr1-CYBT_413034_EVAL-rom-ram-Wiced-release/hal_gpio.o' failed

            make.exe[1]: *** Waiting for unfinished jobs....

             

            At this point WICED stalls and have to  restart the WICED IDE. After restart if uncomment the typedef at lines 105-108, 'clean' and make the target again, the code will be compiled without WICED to stalls.

            Doesn't hang on all errors, but on most  do

            • 3. Re: WICED stalls and need restart
              KotnaniK_71

              Hi,

               

              Thank you for reporting this error. I will forward to our software team to fix this.

               

              Instead of restarting the WICED, you can stop the building targets from Progress tab at the bottom right corner as highlighted in the attached screenshot.

               

              Regards,

              Pavan