stm8l15xx8.cfg 543 B

1234567891011121314151617181920212223242526272829303132333435
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # Config script for STM8L151x8/STM8L152x8
  3. # Supported Devices:
  4. # STM8L151C8
  5. # STM8L151M8
  6. # STM8L151R8
  7. # STM8L152C8
  8. # STM8L152K8
  9. # STM8L152M8
  10. # STM8L152R8
  11. # 4kB RAM
  12. # Start 0x0000
  13. # End 0x0fff
  14. set WORKAREASIZE 4096
  15. # 64kB Flash
  16. set FLASHSTART 0x08000
  17. set FLASHEND 0x17fff
  18. # 2kB EEPROM
  19. set EEPROMSTART 0x1000
  20. set EEPROMEND 0x17ff
  21. set OPTIONSTART 0x4800
  22. set OPTIONEND 0x48ff
  23. proc stm8_reset_rop {} {
  24. mwb 0x4800 0xaa
  25. mwb 0x4800 0xaa
  26. reset halt
  27. }
  28. source [find target/stm8l.cfg]