Skip to content

Flash tools for Nuvoton M0517LBN CPU for use with OpenOCD TCL scripts

Notifications You must be signed in to change notification settings

sasam/M0517_flash_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

M0517_flash_tools

Flash tools for Nuvoton M0517LBN CPU for use with OpenOCD TCL scripts

start OpenOCD:

win: openocd-0.8.0.exe -f interface/stlink-v2.cfg -f target_M0517_win.cfg
linux: openocd -f interface/stlink-v2.cfg -f target_M0517_linux.cfg

unlock:

source M0517_unlock.tcl
ReadConf
EraseChip
WriteConf

flash:

source M0517_flash.tcl
FlashAprom cheali-charger.[bin|hex]

SRAM alocation

+-SRAM--------------+
| flash_pgm:        |
|   FlashInit       |
|   EraseSectors    |
|   ProgramPage     |
|                   |
+-(SRAM + 0x120)----+
|                   |
|  flash_buffer     |
|  7*512b           |
|                   |
+-(SRAM + 0xF20)----+
|                   |
|     stack         |
+-------------------+

About

Flash tools for Nuvoton M0517LBN CPU for use with OpenOCD TCL scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published