1 Reply Latest reply on Oct 31, 2018 9:03 AM by NiMc_1688136

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

    NiMc_1688136

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

       

      Any other ways?

        • 1. Re: Is there a way to dump external flash without altering external flash?
          NiMc_1688136

          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

          1 of 1 people found this helpful