5 Replies Latest reply on Jan 16, 2015 7:40 AM by bshaya

    sflash write

    bshaya

      I am trying to test the sflash wiriting capabilities of wiced.  The tcl script gives an "example" usage:

       

      # source [find mfg_spi_flash/write_sflash.tcl]

      # sflash_init "BCMUSI11-SDIO-debug"

      # sflash_write_file "example.bin" 0x10 "BCMUSI11-SDIO-debug" 1

      # shutdown

       

      However, the first line causes TCL to retrun "FIND: Parameter format not correct"

       

      How do I adapt these scripts for my platform?

        • 1. Re: sflash write
          vikr

          Sorry for the delayed response, could you confirm what are the exact steps that you are trying to do to run the tcl script. I believe there is a typo in the comment section, instead of sflash_write, it is write_sflash.tcl

          source [find  sflash_write.tcl]

           

          Let us know if you were able to resolve this issue.

           

          thnx

          vik86

          • 2. Re: sflash write
            bshaya

            This gives me the error wrong # args: should be "source ?-encoding name? fileName"

             

            I am not particularly concerned about this at the moment, as I have a workaround, but it would be nice if posted instructions worked.

            • 3. Re: sflash write
              vikr

              i'm not sure what you are missing, did you run tclsh sflash_write.tcl , in the same directory where the tcl script is present and got the above error ?

              • 4. Re: sflash write
                bdawood

                Hi,

                The sflash_write.tcl requires that you have the waf.sflash_write application running on the MCU, because it issues commands to the application to write the flash and the application respond to the command by writing in to the flash. The sflash_write.tcl script is also meant to run through OpenOCD. for more details have a look at tools/makefiles/wiced_apps.mk to find how we issue the flash write commands.

                 

                Regards,

                Bassem

                • 5. Re: sflash write
                  bshaya

                  Thanks. I will look into that when I get a chance.