9 years, 9 months ago.

How to use "flash_algo.txt"??

I succeed to gen "tools\tmp\flash_algo.txt". but I don't know where(or how) do i use this file at the cmsis-dap project? Please let me know~ Thanks.

Question relating to:

here is some thing wrong when I try to gen "tools\flash_algo.txt". Would you tell me how you succeed.

This is what I got when I run python >python flash_algo_gen.py

G:\Desktop\nothing\tools>python flash_algo_gen.py [WARNING] Using default settings. Define your settings in the file private_setti ngs.py Traceback (most recent call last): File "flash_algo_gen.py", line 159, in <module> gen_flash_algo() File "flash_algo_gen.py", line 111, in gen_flash_algo run_cmd([FROMELF, 'bin', ALGO_ELF_PATH, '-o', TMP_DIR_W_TERM]) File "G:\Desktop\nothing\tools\utils.py", line 25, in run_cmd p = Popen(command, stdout=PIPE, stderr=PIPE, cwd=wd) File "C:\Users\Administrator\AppData\Local\Enthought\Canopy\App\appdata\canopy -1.4.1.1975.win-x86_64\lib\subprocess.py", line 709, in init errread, errwrite) File "C:\Users\Administrator\AppData\Local\Enthought\Canopy\App\appdata\canopy -1.4.1.1975.win-x86_64\lib\subprocess.py", line 957, in _execute_child startupinfo) WindowsError: [Error 2]

posted by zhang shengping 12 Dec 2014

1 Answer

9 years, 9 months ago.

Copy that and paste it on /interface/target/hal/DBG_xxxx/DBG_xxxxxx/target_flash.h. Do not forget to edit RSP and RSB. You can see base address of PrgData on map file.

Accepted Answer

Arigato. Very Thx~. useful information for me. :)

posted by Bongjun Hur 01 Jul 2014