6 years, 9 months ago.

pyOCD add flash_algo for a new MCU

pyOCD supports accessing the flash by defining the flash_algo in the flash_xxx.py, take kl25z for example: [pyocd\flash\flash_klxx.py] flash_algo = { 'load_address' : 0x20000000, 'instructions' : [ 0xE00ABE00, 0x062D780D, ... ], 'pc_init' : 0x20000021, 'pc_eraseAll' : 0x20000049 ... };

How can we add new flash_algo to support new flash type? I found there is FlashAlgo in github, but do not whether it works because I don't know how to use it.

Be the first to answer this question.