1 2 Previous Next 19 Replies Latest reply on Jun 1, 2016 9:43 AM by david_epperly_2098041

    OTA not working with SN8205

    prashantsinh

      Hello,

       

      We are using SN8205 custom module with SST25VF080B Serial flash and Wiced 3.1.2.

      When we are using snip.ota_fr-SN8205x JTAG=Olimex_ARM-USB-TINY-H download run

      then we can download OTA app to our module.

      After that over web page we are also able to download snip_scan-SN8205x.stripped.elf.

      After downloading the binary web page displays rebooting the module but module side not starting any application.

       

      Following steps we had seen and checked from other posts:

      /* in ota_fr.mk */

      DCT_IMAGE := $(OUTPUT_DIR)/DCT.stripped.elf           //It already had

       

      /*in sn8205x.mk     */

      /* it already ther in Makefile     */

      APPS_LUT_HEADER_LOC := 0x0000

      APPS_START_SECTOR := 1

       

      in sflash_write.c

      #define WRITE_CHUNK_SIZE        (4096)  /* Writing in chunks is only needed to prevent reset by watchdog */

      also tested with

      #define WRITE_CHUNK_SIZE        (8*1024)  /* Writing in chunks is only needed to prevent reset by watchdog */

       

      #define SECTOR_SIZE             (4096)

       

       

      If we try to use snip.ota_fr-SN8205x JTAG=Olimex_ARM-USB-TINY-H download download_apps run

       

      then it gives following error

       

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

                                        |         |  Static |

                    Module              |  Flash  |   RAM   |

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

      App                               |   11427 |    1406 |

      base64                            |     518 |       0 |

      DHCP_Server                       |    1510 |     132 |

      DNS                               |    1340 |      44 |

      Host MCU-family library           |   11428 |    2720 |

      HTTP_client                       |     195 |       0 |

      Interrupt Vectors                 |     424 |       0 |

      libc                              |   33035 |    3136 |

      Networking                        |    4400 |   14358 |

      NetX                              |   55570 |     536 |

      NetX-Duo - Interfaces & Stacks    |       0 |      12 |

      OTA_Server                        |    8235 |     676 |

      Packet Buffers                    |       0 |   23142 |

      platform                          |    1056 |     168 |

      RAM Initialisation                |    2432 |       0 |

      resources                         |      16 |       0 |

      Ring_Buffer                       |      92 |       0 |

      SPI_Flash_Library_SN8205x         |     636 |       0 |

      Startup Stack & Link Script fill  |      30 |      22 |

      Supplicant - BESL                 |   90140 |     516 |

      ThreadX                           |    9176 |     396 |

      Wi-Fi Firmware                    |  210412 |       0 |

      WICED                             |    3800 |     844 |

      WWD                               |   14684 |    1124 |

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

      TOTAL (bytes)                     |  458124 |   49232 |

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

       

       

      Downloading Bootloader ...

      Building apps lookup table

      No changes detected

       

       

      Downloading DCT ...

      No changes detected

       

       

      Downloading Application ...

      No changes detected

       

       

      Downloading FR_APP (build/mesh-SN8205x/binary/ota_fr-SN8205x.stripped.elf) at sector 1...

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

      Makefile:185: recipe for target 'main_app' failed

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

      make: *** [main_app] Error 2

       

      Please help us on same.

      Any help in this case highly appreciated.

       

      Thanks & Regards,

      Prashant

        1 2 Previous Next