4 Replies Latest reply on Oct 22, 2019 11:12 PM by AnjanaM_61

    Bug Report: Wiced_006.002.001.0002 SuperMux / CYW20719/CYBT_413034_EVAL

    StN._1917156

      There are plenty of errors that current version of WICED generates because of SuperMux Tools.

      Attached are logs and generated code.

      The only places I manually changed in the generated bsc01_pin_config.c file was @ button declarations:

      .button_pressed_value = GPIO_PIN_OUTPUT_LOW, //was GPIO_PIN_OUTPUT_HIGH which doesnt make sense

      because default state of pulled up input (.default_state = GPIO_PIN_OUTPUT_HIGH,) doesn’t make any sense with pressed value to be the same.

       

      The I2C setting nothing touched from what was default proposed initially (WICED_I2C_2_*) and generated and still generates errors!

      SuperMuxGenerated_C.png

       

      .....

      ../apps/w191/bsc01/bsc01_pin_config.c:15:35: error: 'WICED_I2C_2_SDA' undeclared here (not in a function); did you mean 'WICED_I2C_1_SDA'?

         [PLATFORM_GPIO_3] = {WICED_P16, WICED_I2C_2_SDA},

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

                                         WICED_I2C_1_SDA

      ../apps/w191/bsc01/bsc01_pin_config.c:16:35: error: 'WICED_I2C_2_SCL' undeclared here (not in a function); did you mean 'WICED_I2C_1_SCL'?

         [PLATFORM_GPIO_4] = {WICED_P17, WICED_I2C_2_SCL},

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

                                         WICED_I2C_1_SCL

      ../apps/w191/bsc01/bsc01_pin_config.c:30:42: error: 'GPIO_EN_INT_FALING_EDGE' undeclared here (not in a function); did you mean 'GPIO_EN_INT_FALLING_EDGE'?

           .config   = (GPIO_INTERRUPT_ENABLE | GPIO_EN_INT_FALING_EDGE | GPIO_INPUT_ENABLE

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

                                                GPIO_EN_INT_FALLING_EDGE

      ../apps/w191/bsc01/bsc01_pin_config.c:30:40: error: invalid operands to binary | (have 'int' and 'wiced_platform_gpio_t * {aka struct <anonymous> *}')

           .config   = (GPIO_INTERRUPT_ENABLE | GPIO_EN_INT_FALING_EDGE | GPIO_INPUT_ENABLE

                                              ^

      ../apps/w191/bsc01/bsc01_pin_config.c:30:66: error: invalid operands to binary | (have 'wiced_platform_gpio_t * {aka struct <anonymous> *}' and 'int')

           .config   = (GPIO_INTERRUPT_ENABLE | GPIO_EN_INT_FALING_EDGE | GPIO_INPUT_ENABLE

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

      ../apps/w191/bsc01/bsc01_pin_config.c:31:6: error: invalid operands to binary | (have 'wiced_platform_gpio_t * {aka struct <anonymous> *}' and 'int')

           .config   = (GPIO_INTERRUPT_ENABLE | GPIO_EN_INT_FALING_EDGE | GPIO_INPUT_ENABLE

                        ~~~~~~~~~~~~~~~~~~~~~

            | GPIO_PULL_UP),

            ^

      ../apps/w191/bsc01/bsc01_pin_config.c:30:17: warning: initialization makes integer from pointer without a cast [-Wint-conversion]

           .config   = (GPIO_INTERRUPT_ENABLE | GPIO_EN_INT_FALING_EDGE | GPIO_INPUT_ENABLE

                       ^

      ../apps/w191/bsc01/bsc01_pin_config.c:30:17: note: (near initialization for 'platform_button[0].config')

      ../apps/w191/bsc01/bsc01_pin_config.c:30:17: error: initializer element is not constant

      ../apps/w191/bsc01/bsc01_pin_config.c:30:17: note: (near initialization for 'platform_button[0].config')

      ../apps/w191/bsc01/bsc01_pin_config.c:38:40: error: invalid operands to binary | (have 'int' and 'wiced_platform_gpio_t * {aka struct <anonymous> *}')

           .config   = (GPIO_INTERRUPT_ENABLE | GPIO_EN_INT_FALING_EDGE | GPIO_INPUT_ENABLE

                                              ^

      ../apps/w191/bsc01/bsc01_pin_config.c:38:66: error: invalid operands to binary | (have 'wiced_platform_gpio_t * {aka struct <anonymous> *}' and 'int')

           .config   = (GPIO_INTERRUPT_ENABLE | GPIO_EN_INT_FALING_EDGE | GPIO_INPUT_ENABLE

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

      ../apps/w191/bsc01/bsc01_pin_config.c:39:6: error: invalid operands to binary | (have 'wiced_platform_gpio_t * {aka struct <anonymous> *}' and 'int')

           .config   = (GPIO_INTERRUPT_ENABLE | GPIO_EN_INT_FALING_EDGE | GPIO_INPUT_ENABLE

                        ~~~~~~~~~~~~~~~~~~~~~

            | GPIO_PULL_UP),

      .....