9 Replies Latest reply on Oct 21, 2019 11:43 PM by NaB_2049561

    Wiced platform Mesh Examples for CYBT-343026-01

    NaB_2049561

      What are the best suited Mesh example codes for CYBT-343026-01 module.

       

      I tried Compiling (make) mesh_onoff_server.c for CYBT-343026-01, I got below error. It looks like I am messing with the flash size.

       

       

      13:28:03 **** Build of configuration Release for project 20706-A2_Bluetooth ****

      "C:\\WICED\\WICED-Studio-6.4\\20706-A2_Bluetooth\\make.exe" snip.mesh.mesh_onoff_server-CYBT_343026_EVAL download UART=COM53

      Compiling platform.c

      Compiling (Lib) mesh_app_provision_server.c

      Compiling (Lib) mesh_application.c

      Compiling (Lib) mesh_app_hci.c

      Compiling (Lib) mesh_app_gatt.c

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_provision_server.c: In function 'wiced_bt_mesh_app_provision_server_configure':

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_provision_server.c:107:5: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]

           memcpy(&provisioning_config, p_config, sizeof(wiced_bt_mesh_provision_capabilities_data_t));

           ^~~~~~

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_provision_server.c: In function 'mesh_app_provision_get_capabilities':

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_provision_server.c:186:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]

           memset(&capabilities, 0, sizeof(capabilities));

           ^~~~~~

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_hci.c: In function 'mesh_app_hci_init':

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_hci.c:121:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]

           memset(&app_timer, 0, sizeof(wiced_timer_t));

           ^~~~~~

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_hci.c: In function 'mesh_application_send_hci_event':

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_hci.c:483:13: warning: implicit declaration of function 'memcpy'; did you mean 'remap'? [-Wimplicit-function-declaration]

                   memcpy(p_hci_event, p_data, data_len);

                   ^~~~~~

                   remap

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_application.c: In function 'mesh_generate_random':

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_application.c:353:9: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]

               memcpy(random, &r, l);

               ^~~~~~

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_application.c: In function 'wiced_bt_mesh_core_rtc_init':

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_application.c:791:5: warning: implicit declaration of function 'rtc_init'; did you mean 'gpio_init'? [-Wimplicit-function-declaration]

           rtc_init();

           ^~~~~~~~

           gpio_init

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_gatt.c: In function 'mesh_app_gatt_init':

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_gatt.c:418:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]

           memset(&mesh_gatt_cb, 0, sizeof(mesh_gatt_cb_t));

           ^~~~~~

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_gatt.c: In function 'read_handler_':

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_gatt.c:488:33: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]

               puAttribute->attr_len = strlen((char*)wiced_bt_cfg_settings.device_name);

                                       ^~~~~~

      ../../libraries/mesh_app_lib/../../../common/libraries/mesh_app_lib/mesh_app_gatt.c:521:9: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]

               memcpy(p_read_data->p_val, from, to_copy);

               ^~~~~~

      Compiling (Lib) wiced_bt_cfg.c

      Compiling (Lib) fw_upgrade.c

      Compiling (Lib) ota_fw_upgrade.c

      Compiling (Lib) ota_fw_upgrade_common.c

      Compiling (Lib) ecc_pp.c

      ../../libraries/fw_upgrade_lib/../../../common/libraries/fw_upgrade_lib/ota_fw_upgrade.c: In function 'wiced_ota_fw_upgrade_init':

      ../../libraries/fw_upgrade_lib/../../../common/libraries/fw_upgrade_lib/ota_fw_upgrade.c:909:61: error: 'FLASH_SIZE' undeclared (first use in this function); did you mean 'OTP_SIZE'?

           uint32_t                        fw_upgrade_flash_size = FLASH_SIZE;

                                                                   ^~~~~~~~~~

                                                                   OTP_SIZE

      ../../libraries/fw_upgrade_lib/../../../common/libraries/fw_upgrade_lib/ota_fw_upgrade.c:909:61: note: each undeclared identifier is reported only once for each function it appears in

      ../../libraries/fw_upgrade_lib/../../../common/libraries/fw_upgrade_lib/ota_fw_upgrade.c:76:24: error: 'FLASH_SECTOR_SIZE' undeclared (first use in this function); did you mean 'DS_SECTOR_SIZE'?

      #define DS_SECTOR_SIZE FLASH_SECTOR_SIZE

                              ^

      ../../libraries/fw_upgrade_lib/../../../common/libraries/fw_upgrade_lib/ota_fw_upgrade.c:921:85: note: in expansion of macro 'DS_SECTOR_SIZE'

           fw_upgrade_flash_size = (FLASH_SIZE - (APPLICATION_SPECIFIC_FLASH_RESERVATION * DS_SECTOR_SIZE));

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

      make.exe[1]: *** [../../build/mesh_onoff_server-CYBT_343026_EVAL-rom-ram-Wiced-release/libraries/fw_upgrade_lib/../../../common/libraries/fw_upgrade_lib/ota_fw_upgrade.o] Error 1

      makefile:291: recipe for target '../../build/mesh_onoff_server-CYBT_343026_EVAL-rom-ram-Wiced-release/libraries/fw_upgrade_lib/../../../common/libraries/fw_upgrade_lib/ota_fw_upgrade.o' failed

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

      Makefile:552: recipe for target 'snip.mesh.mesh_onoff_server-CYBT_343026_EVAL' failed

      make: *** [snip.mesh.mesh_onoff_server-CYBT_343026_EVAL] Error 2

       

      13:28:18 Build Finished (took 15s.369ms)

       

      Any Suggestions?

       

      Thanks,

      Naveen