9 Replies Latest reply on Sep 25, 2018 7:54 PM by ZhengbaoZ_96

    Downloading firmware issue on Sterling-LWB for WICED dev board (STM discovery)

    JiYa_3557771

      i am following the Sterling-LWB STM expansion board user guide to build and download the demo software: "snip.scan-LSRSTERLING_00950-ThreadX-NetX-SDIO download download_apps run"

       

      it failed:

       

      Downloading Application ...

      Downloading WIFI_FIRMWARE ... at sector 1  size 94...

      The process cannot access the file because it is being used by another process.

      make.exe[1]: *** [WIFI_FIRMWARE_DOWNLOAD] Error 1

      tools/makefiles/wiced_apps.mk:350: recipe for target 'WIFI_FIRMWARE_DOWNLOAD' failed

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

      No changes detected

       

       

      make: *** [main_app] Error 2

      Makefile:351: recipe for target 'main_app' failed

       

       

      09:58:05 Build Finished (took 6s.327ms)

       

      The SDK is 6.21.

       

      Any ideas can you give on what is done wrong?

       

      Thanks

       

      Jieqiu

        • 2. Re: Downloading firmware issue on Sterling-LWB for WICED dev board (STM discovery)
          GrGa_2135586

          Attached are modified demo and platform files, please utilize this to build the example. The code in the demo has been successfully built and tested in WICED 6.2 using the following

           

          1. snip.scan-LSRSTERLING_00950-ThreadX-NetX-SDIO download download_apps run
          2. demo.sterling_demo-LSRSTERLING_00950-ThreadX-NetX-SDIO download download_apps

           

          Best Regards,

          G. Gates - Laird FAE

          1 of 1 people found this helpful
          • 3. Re: Downloading firmware issue on Sterling-LWB for WICED dev board (STM discovery)
            JiYa_3557771

            Thanks GrGa_2135586

             

            Thank you for the modified demo and platform files.

             

            I have repeated the demos. The snip.scan is working without any problem. However, I can build and download the demo.syterling.demo. when it runs, it shows:

            ...

            Starting WICED vWiced_006.002.001.0002

            Platform LSRSTERLING_00950 initialised

            Started ThreadX v5.8

            Initialising NetX v5.10_sp3

            Creating Packet pools

            WLAN MAC Address : 00:25:CA:09:B5:3D

            WLAN Firmware    : wl0: Apr 30 2018 04:14:19 version 7.45.98.50 (r688715 CY) FWI                                                                                                                                                             D 01-283fcdb9

            WLAN CLM         : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Cr                                                                                                                                                             eation: 2018-04-11 22:31:21

            Application DCT

                hostname : sterling.tiwiconnect.com

            apiEndpoint : /lift

                 tcpPort : 80

              securePort : 443

               transport : HTTP

                clientId :

                apiKey   :

                userKey  :

                secretKey:

            Device Info

                 deviceName : Sterling WICED Carrier Board

            deviceTypeName : lrd_sterlingEvb_demoKit_0_1_0

              deviceTypeVer : 0.1.0

                   xfrmName : lrd_sterlingEvb_elv_0_1_0

                    xfrmVer : 0.1.0

               firmwareName : lrd_sterlingEvb_simpleDemo_1_0_0

                firmwareVer : 1.0.0

            Expected SPI chip ID:d5 Detected: d4

            00:00:02.834000 GKI_exception(): Task State Table

            00:00:02.839000 GKI_exception 65524 Unable to allocate buffer pools

            00:00:02.845000 GKI_create_task func=0x803cdbd  id=1  name=BTU  stack=0x0  stack                                                                                                                                                             Size=4096

            00:00:02.853000 GKI_create_task thread_id failed(8), BTU!

            00:00:02.858000 GKI_create_task func=0x803e585  id=0  name=HCISU  stack=0x0  sta                                                                                                                                                             ckSize=3072

            00:00:02.867000 GKI_create_task thread_id failed(8), HCISU!

            **** Waiting, No WiFi Network Configuration ****

             

            Because of the issues, I didn't see the BLE being turned on.

             

            Regards

             

            Jieqiu

            • 4. Re: Downloading firmware issue on Sterling-LWB for WICED dev board (STM discovery)
              GrGa_2135586

              Jieqiu,

               

              I just realized I sent you the wrong demo, my apologies.

               

              Laird will be working to get the demo provided on the Sterling-LWB WICED Expansion Board product web page fully functional with newer versions of WICED. For now WICED version 4.x is needed to correctly compile and implement on the Discovery/LWB.

               

              Best Regards,

              G. Gates - Laird/LSR

              • 5. Re: Downloading firmware issue on Sterling-LWB for WICED dev board (STM discovery)
                JiYa_3557771

                Hi GrGa_2135586

                 

                I have used the update you provided to build and download on SDK 6.0. It built and downloaded without any problem.

                 

                The mobile app can communicate to the device through BLE and control the LEDs. However, when i tried to connect the device to the remote server, it failed. It seems that it has joined the wireless network and failed to register onto the server.

                ...

                ...

                **** Waiting, No WiFi Network Configuration ****

                Saving Wi-Fi configuration...

                         SSID: Equivital

                Security Mode: WPA2 Mixed

                Saved WiFi Configuration

                 

                 

                WIFI_CONFIG: Connecting Wi-Fi...

                Joining : Equivital

                Successfully joined : Equivital

                Obtaining IPv4 address via DHCP

                DHCP CLIENT hostname WICED IP

                IPv4 network ready IP: 192.168.34.123

                WIFI_CONFIG: Wi-Fi Connected...

                free_heap_space: 20224

                 

                 

                accel: 256  256  17088

                mag: 617  -331  -397

                gyro: -145  68  14

                data send

                key not found

                Did not find x-lift-actionPend in http header

                 

                 

                HTTP Request:

                POST /lift/rpc HTTP/1.1

                Host: sterling.tiwiconnect.com:80

                x-lift-apikey:

                x-lift-xfrm: lrd_sterlingEvb_elv_0_1_0

                x-lift-xfrm-ver: 0.1.0

                Content-Type: application/json; charset=utf-8

                Content-Length: 612

                ...

                ...

                 

                On the mobile app, it shows "Error communicating with the server: Forbidden"

                 

                Regards

                 

                Jieqiu

                 

                Screenshot_2018-07-23-15-08-41.png

                • 6. Re: Downloading firmware issue on Sterling-LWB for WICED dev board (STM discovery)
                  GrGa_2135586

                  Jieqiu,

                   

                  The code that I sent you was for a different demo. You can use it to help modify the WICED demo for compatibility to the newer version of WICED. Server communication will not be allowed for your device.

                   

                  Best Regards,

                  Laird/LSR

                  1 of 1 people found this helpful
                  • 7. Re: Downloading firmware issue on Sterling-LWB for WICED dev board (STM discovery)
                    ZhengbaoZ_96

                    Hi:

                     

                    Do you still have problems according above steps?

                    • 8. Re: Downloading firmware issue on Sterling-LWB for WICED dev board (STM discovery)
                      JiYa_3557771

                      Hi ZhengbaoZ_96

                       

                      The firmware can be built on SDK 6.0 and it works. The device can join the local WiFi network, however, failed to register itself to the remote server to achieve the demo purpose. See the information above. I think the firmware has no problem.

                       

                      From above information Greg provided, Server communication is not allowed. i don't know what else I can do. It should be a very good demo and we really want to see it work.

                       

                      Do you have any other similar demo project to allow an IOT sensor to connect to a remote server ?

                       

                      Regards

                       

                      Jieqiu

                      • 9. Re: Downloading firmware issue on Sterling-LWB for WICED dev board (STM discovery)
                        ZhengbaoZ_96

                        Hi :

                         

                             we have some demos in apps/demo directory , but I am not sure if it can meet your requests for IOT sensor and remote server.   I see some are using aws, azure cloud  ..

                        1 of 1 people found this helpful