1 Reply Latest reply on Oct 14, 2017 8:18 PM by webmstreric

    Only partial file is saved with download_apps on BCM943907AEVAL1F

    webmstreric

      When building snip.stdio using WICED 5.2 download apps and a 909740 byte file on the BCM943907AEVAL1F only 24 sectors were allocated for the file. Also a resources file was saved when the only thing I specified was APP0.

       

      Here is the output from the make:

      Creating Filesystem BCM94390x_targets.mk ...

      Downloading DCT ... build/snip.stdio-BCM943907AEVAL1F/DCT.bin @ SFLASH_DCT_LOC=0x00008000

      ./tools/common/Win32/mk_wicedfs32 build/snip.stdio-BCM943907AEVAL1F/filesystem.bin build/snip.stdio-BCM943907AEVAL1F/resources/Staging/

      Creating Filesystem Done

      Building apps lookup table

      Downloading Bootloader ...

      Finished Downloading Bootloader

      Downloading resources filesystem ... build/snip.stdio-BCM943907AEVAL1F/filesystem.bin at sector 17  size 124...

      Downloading APP0 build/snip.stdio-BCM943907AEVAL1F/binary/snip.stdio-BCM943907AEVAL1F.stripped.elf @ sector 141 address 577536 size 24...

      Downloading apps lookup table in wiced_apps.mk ... build/snip.stdio-BCM943907AEVAL1F/APPS.bin @ 0x10000 size

      Resetting target

      Target running

      Build complete

      Making .gdbinit

       

      Here is the makefile I used:

      NAME := App_stdio

       

      $(NAME)_SOURCES := stdio.c

       

      APP0 := apps/snip/stdio/b445586f3985f4cab7f3bef20d74c549.elf

       

      I also tried the rebranded platform to see if that would work and got the same result:

      Creating Filesystem BCM94390x_targets.mk ...

      Downloading DCT ... build/snip.stdio-CYW943907AEVAL1F/DCT.bin @ SFLASH_DCT_LOC=0x00008000

      ./tools/common/Win32/mk_wicedfs32 build/snip.stdio-CYW943907AEVAL1F/filesystem.bin build/snip.stdio-CYW943907AEVAL1F/resources/Staging/

      Creating Filesystem Done

      Building apps lookup table

      Downloading Bootloader ...

      Finished Downloading Bootloader

      Downloading resources filesystem ... build/snip.stdio-CYW943907AEVAL1F/filesystem.bin at sector 17  size 124...

      Downloading APP0 build/snip.stdio-CYW943907AEVAL1F/binary/snip.stdio-CYW943907AEVAL1F.stripped.elf @ sector 141 address 577536 size 24...

      Downloading apps lookup table in wiced_apps.mk ... build/snip.stdio-CYW943907AEVAL1F/APPS.bin @ 0x10000 size

      Resetting target

      Target running

      Build complete

      Making .gdbinit

        • 1. Re: Only partial file is saved with download_apps on BCM943907AEVAL1F
          webmstreric

          Because the BCM943907AEVAL1F has no internal flash, the bootloader uses APP0 as the main system image that is initially loaded. Apparently APP0 is reserved for this, so I have to use some other image like APP1 if I want to save a file to external flash. This is what I got when I used APP1 instead:

           

          Creating Filesystem BCM94390x_targets.mk ...

          Downloading DCT ... build/snip.stdio-CYW943907AEVAL1F/DCT.bin @ SFLASH_DCT_LOC=0x00008000

          ./tools/common/Win32/mk_wicedfs32 build/snip.stdio-CYW943907AEVAL1F/filesystem.bin build/snip.stdio-CYW943907AEVAL1F/resources/Staging/

          Creating Filesystem Done

          Building apps lookup table

          Downloading Bootloader ...

          Finished Downloading Bootloader

          Downloading resources filesystem ... build/snip.stdio-CYW943907AEVAL1F/filesystem.bin at sector 17  size 124...

          Downloading APP0 build/snip.stdio-CYW943907AEVAL1F/binary/snip.stdio-CYW943907AEVAL1F.stripped.elf @ sector 141 address 577536 size 24...

          Downloading APP1 apps/snip/stdio/b445586f3985f4cab7f3bef20d74c549.elf  at sector 165 address 675840 size: 223...

          Downloading apps lookup table in wiced_apps.mk ... build/snip.stdio-CYW943907AEVAL1F/APPS.bin @ 0x10000 size

          Resetting target

           

          It works, it just doesn't work with APP0.