;; Architecture extensions
#include weak "..\..\..\..\..\ARM\ARMv7-M-ETM.ddf"
#include weak "..\..\..\..\..\ARM\ARMv7-M-TPIU.ddf"
#include weak "..\..\..\..\..\ARM\ARMv7-M-MPU.ddf"

;; Memory information ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Used to define address zones within the ARM address space (Memory).
;;
;;   Name      may be almost anything
;;   AdrSpace  must be Memory
;;   StartAdr  start of memory block
;;   EndAdr    end of memory block
;;   AccType   type of access, read-only (R), read-write (RW) or SFR (W)

[Memory]
;;         Name             AdrSpace    StartAdr    EndAdr      AccType   Width
Memory =  SystemSFR         Memory      0xE0000000  0xE00FFFFF  W
Memory =  Periph_BitBand    Memory      0x42000000  0x43FFFFFF  W
Memory =  Periph            Memory      0x40008C00  0x4007383F  W
Memory =  SRAM_BitBand      Memory      0x22000000  0x23FFFFFF  RW
Memory =  SRAMB             Memory      0x200F0000  0x200F0FFF  RW
Memory =  SRAM0             Memory      0x20000000  0x20003FFF  RW
Memory =  SRAMH             Memory      0x1FFFC000  0x1FFFFFFF  RW
Memory =  RemapMem1         Memory      0x02080000  0x0209FFFF  R
Memory =  RemapMem0         Memory      0x02000000  0x0201FFFF  R
Memory =  OTP               Memory      0x03000A00  0x03000FFF  R
Memory =  Flash             Memory      0x00000000  0x0001FFFF  R

TrustedRanges = true
UseSfrFilter = true

[SfrInclude]
File = HC32F334.svd
