cancel
Showing results for 
Search instead for 
Did you mean: 

Wi-Fi Combo

NiMc_1688136
Contributor II

sflash_write.tcl has a sflash_read_file function but it is not implemented anywhere as a build target.

Any other ways?

0 Likes
1 Solution
NiMc_1688136
Contributor II

Never mind, i figured it out

Build and program in verbose and find the line where it calls openOCD. Copy the command and replace sflash_write_file with sflash_read_file. Follow the comments in the sflash tcl file.

.\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts -f ./tools/OpenOCD/CYW9WCD1EVAL1.cfg -f ./tools/OpenOCD/BCM4390x.cfg -f apps/waf/sflash_write/sflash_write.tcl -c "sflash_read_file dump.bin 0x00000000 Proj_Test-P103-SoC.43909 8388608 43909" -c shutdown

View solution in original post

1 Reply
NiMc_1688136
Contributor II

Never mind, i figured it out

Build and program in verbose and find the line where it calls openOCD. Copy the command and replace sflash_write_file with sflash_read_file. Follow the comments in the sflash tcl file.

.\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts -f ./tools/OpenOCD/CYW9WCD1EVAL1.cfg -f ./tools/OpenOCD/BCM4390x.cfg -f apps/waf/sflash_write/sflash_write.tcl -c "sflash_read_file dump.bin 0x00000000 Proj_Test-P103-SoC.43909 8388608 43909" -c shutdown

View solution in original post