5 Replies Latest reply on Apr 30, 2019 4:01 PM by alorc_1643676

    Build errors doing 2nd and third examples in WI-FI Tutorial 101

    alorc_4110946

      make.exe[1]: *** No rule to make target 'apps/ww101/02/02_blinkled/../../ARM_CM4/crt0_GCC.c', needed by 'build/ww101.02.02_blinkled-CYW94343WWCD1_EVB/Modules/apps/ww101/02/02_blinkled/../../ARM_CM4/crt0_GCC.o'.  Stop.

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

      Building Bootloader

      Finished Building Bootloader

       

      Makefile:351: recipe for target 'main_app' failed

      make: *** [main_app] Error 2

       

      MK file:

      Name := apps_ww101_02_04_button

       

      $(NAME)_SOURCES := 04_button.c

       

       

      c file

      #include "wiced.h"

       

      void application_start()

      {

          wiced_init();

       

              while(1)

              {

                  button1_pressed = wiced_gpio_input_get(WICED_BUTTON1) ? WICED_FALSE : WICED_TRUE;

                  if(button1_pressed == WICED_TRUE)

                  {

                      wiced_gpio_output_high (WICED_LED1);

                  }

                  else

                  {

                      wiced_gpio_output_low (WICED_LED1);

                  }

              }

       

       

       

       

      }

       

       

      File structure:

        • 1. Re: Build errors doing 2nd and third examples in WI-FI Tutorial 101
          RaktimR_11

          Which WICED Studio version are you using? Can you check in your system whether the ARM_CM4 directory exists in the following location 43xxx_Wi-Fi/WICED/platform/ARM_CM4?

           

          I ran the example from CypressAcademy_WW101_Files/04_button.mk at master · cypresssemiconductorco/CypressAcademy_WW101_Files · GitHub and was able to compile successfully.

          1 of 1 people found this helpful
          • 2. Re: Build errors doing 2nd and third examples in WI-FI Tutorial 101
            alorc_4110946

            Hello RaktimR-

            Thank you for the response.

            The following is answers

             

            Downloaded

            WICED Studio Wi-Fi/Combo v6.x SDKs

            * WICED Studio 6.2.1

            WICED-Studio 6.2.1 Installer (Windows)

             

            ARM_CM4 in this directory

            C:\Users\Al\Documents\WICED-

            Studio-6.2\temp\43xxx_Wi-Fi\WICED\platform\ARM_CM4
            CMSIS

                             3/21/2019       10:49:42 PM
              crt0_GCC.c

                     8 KB    3/21/2019       10:49:42 PM
              crt0_IAR.c

                     4 KB    3/21/2019       10:49:42 PM
              hardfault_handler.c

                     16 KB   3/21/2019       10:49:42 PM
              host_cm7.c

                     3 KB    3/21/2019       10:49:42 PM
              platform_assert.h

                     5 KB    3/21/2019       10:49:42 PM
              platform_checkpoint.h

                     5 KB    3/21/2019       10:49:42 PM
              platform_isr.h

                     7 KB    3/21/2019       10:49:42 PM

            --AAO

            • 4. Re: Build errors doing 2nd and third examples in WI-FI Tutorial 101
              alorc_4110946

              Still see errors

               

              If I copy a snip file from the make Target as follows using the platform CYW94343WWCD1

                   snip.scan-CYW94343WWCD1_EVB download all builds OK. blinkled worked. Button has issues as below.

               

              Complete files and output is as follows for button exercise in the tutorial. Same happens with blinkled exerise:

               

              ww101.02.04_button-CYW94343WWCD1_EVB download

               

              04_button.mk

              NAME := apps_ww101_02_04_button

              $(NAME)_SOURCES := 04_button.c

               

              04_button.c  -

              #include "wiced.h"

              void application_start( )

              {

              wiced_init( );

               

              while(1)

              {

                          button1_pressed = wiced_gpio_input_get(WICED_BUTTON1) ? WICED_FALSE : WICED_TRUE;

                          if(button1_pressed == WICED_TRUE)

                          {

                              wiced_gpio_output_high (WICED_LED1);

                          }

                          else

                          {

                              wiced_gpio_output_low (WICED_LED1);

                          }

              }

              }

               

              ERROR

              20:35:09 **** Build of configuration Default for project 43xxx_Wi-Fi ****

              "C:\\Users\\Al\\Documents\\WICED-Studio-6.2\\43xxx_Wi-Fi\\make.exe" ww101.02.04_button-CYW94343WWCD1_EVB download

              MAKEFILE MAKECMDGOALS=ww101.02.04_button-CYW94343WWCD1_EVB download OTA2_SUPPORT is disabled

              Building Bootloader

              Building Serial Flash Loader App

              MAKEFILE MAKECMDGOALS=waf.sflash_write-NoOS-CYW94343WWCD1_EVB-SDIO OTA2_SUPPORT is disabled

              1. waf.sflash_write-NoOS-CYW94343WWCD1_EVB-SDIO

              ----------------------------------|---------|

                                                |  Static |

                            Module              |   RAM |

              ----------------------------------+---------|

              App                               |   21130 |

              Host MCU-family library           | 11604 |

              Interrupt Vectors                 |     388 |

              libc                              |     556 |

              platform                          |    1104 |

              Ring_Buffer                       |      40 |

              SPI_Flash_Library_CYW94343WWCD1_EV|     936 |

              Startup Stack & Link Script fill  |     486 |

              WWD                               |     188 |

              ----------------------------------+---------|

              TOTAL (bytes)                     |   36432 |

              ----------------------------------|---------|

               

              Build complete

              Finished Building Bootloader

              Finished Building Serial Flash Loader App

               

               

              Compiling apps_ww101_02_04_button

              apps/ww101/02/04_button/04_button.c: In function 'application_start':

              apps/ww101/02/04_button/04_button.c:9:13: error: 'button1_pressed' undeclared (first use in this function)

                           button1_pressed = wiced_gpio_input_get(WICED_BUTTON1) ? WICED_FALSE : WICED_TRUE;

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

              apps/ww101/02/04_button/04_button.c:9:13: note: each undeclared identifier is reported only once for each function it appears in

              tools/makefiles/wiced_elf.mk:232: recipe for target 'build/ww101.02.04_button-CYW94343WWCD1_EVB/Modules/apps/ww101/02/04_button/04_button.o' failed

              1. make.exe[1]: *** [build/ww101.02.04_button-CYW94343WWCD1_EVB/Modules/apps/ww101/02/04_button/04_button.o] Error 1
              2. make.exe[1]: *** Waiting for unfinished jobs....

              make: *** [main_app] Error 2

              Makefile:351: recipe for target 'main_app' failed

               

              20:35:50 Build Finished (took 41s.215ms)

              2 of 2 people found this helpful
              • 5. Re: Build errors doing 2nd and third examples in WI-FI Tutorial 101
                alorc_1643676

                Was able to work through. Thank you for help. Can close "Case"

                1 of 1 people found this helpful