Skip to content

Commit

Permalink
flash Kinetis: split kinetis_chip from kinetis_flash_bank
Browse files Browse the repository at this point in the history
Kinetis flash driver probed and decoded chip repeatedly for each flash
bank. Bank ordering used global bank number so multi-target
configuration was broken.

The change introduces kinetis_probe_chip() which reads SIM SDID
and SIM FCFG registers, decodes Kinetis series and family
and fills struct kinetis_chip. This probe runs once for all banks.

struct kinetis_chip contains pointers to all flash banks embeded
in the MCU. It simplifies iteration over all or specific MCU banks.

kinetis_probe_chip() generates MCU name and some informational messages
are improved.

Change-Id: I990db5c63ba490667eec0e5459086d83936662fb
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: http://openocd.zylin.com/3924
Tested-by: jenkins
Reviewed-by: Joakim Nohlgård <[email protected]>
Reviewed-by: Freddie Chopin <[email protected]>
  • Loading branch information
tom-van authored and FreddieChopin committed Jun 17, 2017
1 parent 16f364a commit 1fdc62e
Showing 1 changed file with 480 additions and 260 deletions.
Loading

0 comments on commit 1fdc62e

Please sign in to comment.