6 Replies Latest reply on Jul 6, 2015 7:14 PM by jone_yi_1844281

    Error in flashing ota_fr

    dhruvbaldawa

      I am trying to flash snip/ota_fr on BCM943362WCD4 but I am getting the following error, what could be the problem?

       

      snip.ota_fr-BCM943362WCD4-FreeRTOS-LwIP download download_apps run WIPE=1

      Making .gdbinit

      Building Bootloader

      Building Serial Flash Loader App

      Compiling App_SFlash_write

      Compiling Platform_BCM943362WCD4

      Compiling WWD_NoNS_Interface

      Compiling Lib_SPI_Flash_Library_BCM943362WCD4

      Compiling WWD_for_SDIO_NoOS

      Compiling common_GCC

      Compiling STM32F2xx_Peripheral_Drivers

      Compiling Lib_Ring_Buffer

      Making waf_sflash_write-NoOS-NoNS-BCM943362WCD4-SDIO.elf

       

       

      waf_sflash_write-NoOS-NoNS-BCM943362WCD4-SDIO

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

                                        |         |  Static |

                    Module              |  Flash  |   RAM   |

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

      App                               |       0 |   21134 |

      Host MCU-family library           |       0 |   12468 |

      Interrupt Vectors                 |       0 |     424 |

      libc                              |       0 |     548 |

      platform                          |       0 |     956 |

      Ring_Buffer                       |       0 |      36 |

      SPI_Flash_Library_BCM943362WCD4   |       0 |     748 |

      Startup Stack & Link Script fill  |       0 |     486 |

      WWD                               |       0 |     144 |

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

      TOTAL (bytes)                     |       0 |   36944 |

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

       

       

      Making waf_sflash_write-NoOS-NoNS-BCM943362WCD4-SDIO.bin

      Finished Building Bootloader

      Build complete

       

       

      Finished Building Serial Flash Loader App

      Compiling App_OTA_fr_run

       

       

      Compiling Platform_BCM943362WCD4

      Compiling FreeRTOS

      Compiling LwIP

      Compiling WICED

      Compiling Lib_OTA_Server

      Compiling Lib_SPI_Flash_Library_BCM943362WCD4

      Compiling WWD_FreeRTOS_Interface_BCM943362WCD4

      Compiling WICED_FreeRTOS_Interface

      Compiling WWD_LwIP_Interface_FreeRTOS

      Compiling WICED_LwIP_Interface

      Compiling Supplicant_BESL

      Compiling Lib_HTTP_Server

      Compiling Lib_DNS_Redirect_Daemon

      Compiling Lib_DNS

      Compiling WWD_for_SDIO_FreeRTOS

      Compiling Wiced_Network_LwIP_FreeRTOS

      Compiling Lib_DHCP_Server

      Compiling Lib_base64

      Compiling common_GCC

      Compiling STM32F2xx_Peripheral_Drivers

      Compiling Lib_Ring_Buffer

      Making snip_ota_fr-BCM943362WCD4-FreeRTOS-LwIP.elf

       

       

      Making snip_ota_fr-BCM943362WCD4-FreeRTOS-LwIP.bin

      snip_ota_fr-BCM943362WCD4-FreeRTOS-LwIP

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

                                        |         |  Static |

                    Module              |  Flash  |   RAM   |

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

      App                               |     293 |       0 |

      base64                            |     520 |       0 |

      DHCP_Server                       |    1520 |     132 |

      DNS                               |      64 |      44 |

      FreeRTOS                          |    4719 |     416 |

      Host MCU-family library           |   14980 |    2732 |

      Interrupt Vectors                 |     424 |       0 |

      libc                              |   33975 |    3136 |

      LwIP                              |   27958 |    2107 |

      Networking                        |    3295 |     327 |

      OTA_Server                        |    8203 |     200 |

      Packet Buffers                    |       0 |   26244 |

      platform                          |    1004 |      56 |

      RAM Initialisation                |    2472 |       0 |

      resources                         |      16 |       0 |

      Ring_Buffer                       |      92 |       0 |

      SPI_Flash_Library_BCM943362WCD4   |     636 |       0 |

      Startup Stack & Link Script fill  |      59 |      26 |

      Supplicant - BESL                 |   89984 |     516 |

      Wi-Fi Firmware                    |  210412 |       0 |

      WICED                             |    3329 |      92 |

      Wiced_RO_FS                       |     566 |       0 |

      WWD                               |   11251 |     168 |

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

      TOTAL (bytes)                     |  413300 |   36196 |

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

       

       

      Creating Filesystem

      Downloading Bootloader ...

      Building apps lookup table

      No changes detected

       

       

      Downloading DCT ...

      No changes detected

       

       

      Downloading Application ...

      Download complete

       

       

      Downloading FR_APP build/snip_ota_fr-BCM943362WCD4-FreeRTOS-LwIP/binary/snip_ota_fr-BCM943362WCD4-FreeRTOS-LwIP.stripped.elf at sector 1...

      tools/makefiles/wiced_apps.mk:89: recipe for target 'FR_APP_DOWNLOAD' failed

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

      Makefile:185: recipe for target 'main_app' failed

      make: *** [main_app] Error 2

        • 1. Re: Error in flashing ota_fr
          bdawood

          What is your WICED version?

           

          Also remove WIPE=1 and see if it works

          • 2. Re: Error in flashing ota_fr
            dhruvbaldawa

            bdawood I am using WICED SDK 3.1.2. I tried by removing WIPE=1 but I am still getting the same error.

            • 4. Re: Error in flashing ota_fr
              dhruvbaldawa

              jone_yi_1844281 That didn't solve the issue for me. Here is my OpenOCD log

               

              Open On-Chip Debugger 0.8.0-dev-00139-g4dfe8d5-dirty (2013-08-22-12:22)

              Licensed under GNU GPL v2

              For bug reports, read

              http://openocd.sourceforge.net/doc/doxygen/bugs.html

              Info : only one transport option; autoselect 'jtag'

              trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

              adapter speed: 1000 kHz

              adapter_nsrst_delay: 100

              jtag_ntrst_delay: 100

              Warn : target name is deprecated use: 'cortex_m'

              jtag_init

              Info : max TCK change to: 30000 kHz

              Info : clock speed 1000 kHz

              Polling target stm32f2xxx.cpu failed, GDB will be halted. Polling again in 100ms

              Info : JTAG tap: stm32f2xxx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)

              Info : JTAG tap: stm32f2xxx.bs tap/device found: 0x06411041 (mfg: 0x020, part: 0x6411, ver: 0x0)

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              Info : stm32f2xxx.cpu: hardware has 6 breakpoints, 4 watchpoints

              Polling target stm32f2xxx.cpu succeeded again

              Info : JTAG tap: stm32f2xxx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)

              Info : JTAG tap: stm32f2xxx.bs tap/device found: 0x06411041 (mfg: 0x020, part: 0x6411, ver: 0x0)

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              verified 9012 bytes in 0.381022s (23.098 KiB/s)

              shutdown command invoked

              Open On-Chip Debugger 0.8.0-dev-00139-g4dfe8d5-dirty (2013-08-22-12:22)

              Licensed under GNU GPL v2

              For bug reports, read

              http://openocd.sourceforge.net/doc/doxygen/bugs.html

              Info : only one transport option; autoselect 'jtag'

              trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

              adapter speed: 1000 kHz

              adapter_nsrst_delay: 100

              jtag_ntrst_delay: 100

              Warn : target name is deprecated use: 'cortex_m'

              jtag_init

              Info : max TCK change to: 30000 kHz

              Info : clock speed 1000 kHz

              Polling target stm32f2xxx.cpu failed, GDB will be halted. Polling again in 100ms

              Info : JTAG tap: stm32f2xxx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)

              Info : JTAG tap: stm32f2xxx.bs tap/device found: 0x06411041 (mfg: 0x020, part: 0x6411, ver: 0x0)

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              Info : stm32f2xxx.cpu: hardware has 6 breakpoints, 4 watchpoints

              Polling target stm32f2xxx.cpu succeeded again

              Info : JTAG tap: stm32f2xxx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)

              Info : JTAG tap: stm32f2xxx.bs tap/device found: 0x06411041 (mfg: 0x020, part: 0x6411, ver: 0x0)

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              verified 7548 bytes in 0.189011s (38.998 KiB/s)

              shutdown command invoked

              Open On-Chip Debugger 0.8.0-dev-00139-g4dfe8d5-dirty (2013-08-22-12:22)

              Licensed under GNU GPL v2

              For bug reports, read

              http://openocd.sourceforge.net/doc/doxygen/bugs.html

              Info : only one transport option; autoselect 'jtag'

              trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

              adapter speed: 1000 kHz

              adapter_nsrst_delay: 100

              jtag_ntrst_delay: 100

              Warn : target name is deprecated use: 'cortex_m'

              jtag_init

              Info : max TCK change to: 30000 kHz

              Info : clock speed 1000 kHz

              Polling target stm32f2xxx.cpu failed, GDB will be halted. Polling again in 100ms

              Info : JTAG tap: stm32f2xxx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)

              Info : JTAG tap: stm32f2xxx.bs tap/device found: 0x06411041 (mfg: 0x020, part: 0x6411, ver: 0x0)

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              Info : stm32f2xxx.cpu: hardware has 6 breakpoints, 4 watchpoints

              Polling target stm32f2xxx.cpu succeeded again

              Info : JTAG tap: stm32f2xxx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)

              Info : JTAG tap: stm32f2xxx.bs tap/device found: 0x06411041 (mfg: 0x020, part: 0x6411, ver: 0x0)

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              verified 414576 bytes in 3.262187s (124.107 KiB/s)

              shutdown command invoked

              Open On-Chip Debugger 0.8.0-dev-00139-g4dfe8d5-dirty (2013-08-22-12:22)

              Licensed under GNU GPL v2

              For bug reports, read

              http://openocd.sourceforge.net/doc/doxygen/bugs.html

              Info : only one transport option; autoselect 'jtag'

              trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

              adapter speed: 1000 kHz

              adapter_nsrst_delay: 100

              jtag_ntrst_delay: 100

              Warn : target name is deprecated use: 'cortex_m'

              jtag_init

              post_init_setup

              Info : max TCK change to: 30000 kHz

              Info : clock speed 1000 kHz

              Polling target stm32f2xxx.cpu failed, GDB will be halted. Polling again in 100ms

              Info : JTAG tap: stm32f2xxx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)

              Info : JTAG tap: stm32f2xxx.bs tap/device found: 0x06411041 (mfg: 0x020, part: 0x6411, ver: 0x0)

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              Info : stm32f2xxx.cpu: hardware has 6 breakpoints, 4 watchpoints

              Polling target stm32f2xxx.cpu succeeded again

              Info : JTAG tap: stm32f2xxx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)

              Info : JTAG tap: stm32f2xxx.bs tap/device found: 0x06411041 (mfg: 0x020, part: 0x6411, ver: 0x0)

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              Info : Selecting JTAG transport command set.

              Info : AP INIT COMPLETE

              27472 bytes written at address 0x20000000

              downloaded 27472 bytes in 0.389022s (68.963 KiB/s)

              entry_address= 536888681

              stack_address= 536907856

              buffer_size= 16384

              pc (/32): 0x20004569

              Total write size is 461600

              writing 16384 bytes at 4096

              loadimage address 536870940 foffset 0 16384

              16384 bytes written at address 0x2000001c

              downloaded 16384 bytes in 0.236013s (67.793 KiB/s)

              ****************** Result: Verify after write failed

              Runtime Error: apps/waf/sflash_write/sflash_write.tcl:202:

              in procedure 'sflash_write_file'

              in procedure 'program_sflash' called at file "apps/waf/sflash_write/sflash_write.tcl", line 245

              in procedure 'exit' called at file "apps/waf/sflash_write/sflash_write.tcl", line 202

              • 5. Re: Error in flashing ota_fr
                bdawood

                Hi,

                your log looks normal up to the point where the verification failed. I have tested BCM943362WCD4 with FreeRTOS and LwIP and downloaded fine with me. Seems there is a problem with your serial flash. Can you test on a different hardware?

                 

                Just checking, Did you make any changes to the board or the SDK files before testing this? (Other than fixing wiced_network.c for FreeRTOS to compile.)

                 

                Regards,

                Bassem

                • 6. Re: Error in flashing ota_fr
                  jone_yi_1844281

                  Did you still got the same error as first post?

                  Which H/W platform you used ?

                  And why your build log show 'Creating Filesystem' and Wiced_RO_FS that is not show on my build ?

                  How about the build snip.ota_fr with ThreadX and NetX_Duo ?

                   

                  Try to make clean and re-build snip.ota_fr again!

                   

                  My build and download on BCM943362WCD4 with FreeRTOS/LwIP is work fine too!