Is there a way to dump external flash without altering external flash?

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

cross mob
NiMc_1688136
Level 5
Level 5
10 sign-ins 50 questions asked 10 solutions authored

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
Level 5
Level 5
10 sign-ins 50 questions asked 10 solutions authored

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
Level 5
Level 5
10 sign-ins 50 questions asked 10 solutions authored

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