1 Reply Latest reply on Jun 1, 2015 2:39 AM by sam.lin

    TFTP module for WICED with snip application to update any file in the MULTI_APP file system

    bdawood

      The attached is a preliminary verison of a WICED tftp module for WICED 3.3.0.

       

      Have a look at OTA Upgrade from the Application for extra details and comments.

       

      Regards,

      Bassem

        • 1. Re: TFTP module for WICED with snip application to update any file in the MULTI_APP file system
          sam.lin

          Hi Bassem,

           

          1)

          libraries/daemons/tftp/tftp.c:

          If the tftp server received unsupported options,

          tftp_request_parse_packet() will run into endless loop.

           

          I think this needs fix, please take a look at below while loop:

          while ( str < end ) {

          }

           

          2)

          apps/snip/tftp/tftp.c:

              if ( strcmp( filename, "app0.elf" ) == 0 )

              {

                  return DCT_APP0_INDEX;

              }

           

              if ( strcmp( filename, "app1.elf" ) == 0 )

              {

                  return DCT_APP0_INDEX;  //<- app0 or app1?

              }

          Unless I misunderstand the code, I think put app1.elf should write to DCT_APP1_INDEX.