mchck/programmer — pull request #2 by acornejo (2014-05-20 22:57:00+00:00)
Title: add support for K22 family

This adds support for multiple sector blocks, and phrase size different than 4 bytes. Tested succesfuly on K22DX chip.

Currently, to differentiate between K22 and K20 we check FAMID and DIEID.

The DIEID is a bit of a hack, but is reliable enough for the OpenOCD people. Also, FAMID+DIEID should be unique to chip. While its possible that future revisions of the K22 change the DIEID, at least this will work for "some" versions of the K22, other can be added in the future.