Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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

0 Likes
1 Reply
Anonymous
Not applicable

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.