- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. I will look into that when I get a chance.