]> git.sur5r.net Git - openocd/commit
mini51: support for Nuvoton NuMicro M051 series flash memory
authorPawel Si <stawel+openocd@gmail.com>
Sat, 6 Dec 2014 16:31:18 +0000 (17:31 +0100)
committerPaul Fertser <fercerpav@gmail.com>
Wed, 11 Feb 2015 15:23:09 +0000 (15:23 +0000)
commitb01952d78cc82b192c66664b7c59df728c4f22fe
treea3ba37d34983b58cd20514a55d4af11ddcd8a613
parent45a86f8e2a58c7c0acb6328a660846946e81ed1c
mini51: support for Nuvoton NuMicro M051 series flash memory

adds flash support for Nuvoton M052, M054, M058, M0516 microcontrollers
into the mini51 driver, patch also adds support for programing LDROM,
flash data and flash config.

I've tested it on a M0516LBN microcontroller using an ST-LINK/V2:
1. removing security lock:
   openocd -f interface/stlink-v2.cfg  -f target/m051.cfg -c "init ; halt ; mini51 chip_erase; exit"
2. flashing:
   openocd -f interface/stlink-v2.cfg  -f target/m051.cfg -c "program file.hex"

Change-Id: I918bfbb42461279c216fb9c22272d77501a2f202
Signed-off-by: Pawel Si <stawel+openocd@gmail.com>
Reviewed-on: http://openocd.zylin.com/2426
Tested-by: jenkins
Reviewed-by: Nemui Trinomius <nemuisan_kawausogasuki@live.jp>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/flash/nor/mini51.c
tcl/target/m051.cfg [new file with mode: 0644]