Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 5 months ago.
How to add flash algo for a new Chip into pyOCD?
I want to support a new chip in pyOCD, so I need to add the flash algo for this new chip. In the pyOCD, the flash algo for a certain chip is defined in pyOCD/flash/flash_xxx.py, such as: [flash_k20d50m.py] flash_algo = { 'load_address' : 0x20000000, 'instructions' : [ 0xE00ABE00, 0x062D780D, ... ], 'pc_init' : 0x20000021, 'pc_eraseAll' : 0x20000059, ... }; How can I generate my own flash_algo in such format?