Esempio n. 1
0
 public Target(IDapAccessLink link, MemoryMap memoryMap = null)
 {
     this.link            = link;
     this.flash           = null;
     this.part_number     = "";
     this.memory_map      = memoryMap ?? new MemoryMap();
     this.halt_on_connect = true;
     this.has_fpu         = false;
     this._svd_location   = null;
     this._svd_device     = null;
 }
Esempio n. 2
0
 public DebugAccessPort(IDapAccessLink link)
 {
     this.link = link;
     this._csw = new Dictionary <UInt32, UInt32>
     {
     };
     this._dp_select     = -1;
     this._access_number = 0;
     if (LOG_DAP)
     {
         _setup_logging();
     }
 }
Esempio n. 3
0
 public AccessPort(DebugAccessPort dp, UInt32 ap_num)
 {
     this.dp               = dp;
     this.ap_num           = ap_num;
     this.link             = dp.link;
     this.idr              = 0;
     this.rom_addr         = 0;
     this.has_rom_table    = false;
     this.rom_table        = null;
     this.inited_primary   = false;
     this.inited_secondary = false;
     if (DebugAccessPort.LOG_DAP)
     {
         //this.logger = this.dp.logger.getChild(String.Format("ap%d", ap_num));
     }
 }
Esempio n. 4
0
        //internal svd.SVDLoader _svd_load_thread;
        //internal string _svd_location;
        //internal cmsis_svd.device _svd_device;
        //internal Memory.MemoryMap memory_map;
        //internal Flash.Flash flash;

        public CoreSightTarget(IDapAccessLink link, Memory.MemoryMap memoryMap = null) : base(link, memoryMap)
        {
            this.part_number = this.GetType().Name;
            this.cores       = new Dictionary <byte, CortexM>()
            {
            };
            this.aps = new Dictionary <UInt32, MEM_AP>()
            {
            };
            this.link           = link;
            this.dp             = new DebugAccessPort(link);
            this._selected_core = 0;
            //this._svd_load_thread = null;
            this._root_contexts = new Dictionary <object, object>()
            {
            };
        }
Esempio n. 5
0
 public CortexM(IDapAccessLink link,
                DebugAccessPort dp,
                MEM_AP ap,
                Memory.MemoryMap memoryMap = null,
                byte core_num = 0) : base(link, memoryMap)
 {
     this.arch            = 0;
     this.core_type       = 0;
     this.has_fpu         = false;
     this.dp              = dp;
     this.ap              = ap;
     this.core_number     = core_num;
     this._run_token      = 0;
     this._target_context = null;
     // Set up breakpoints manager.
     this.fpb        = new FPB(this.ap);
     this.dwt        = new DWT(this.ap);
     this.sw_bp      = new SoftwareBreakpointProvider(this);
     this.bp_manager = new BreakpointManager(this);
     this.bp_manager.add_provider(this.fpb, EBreakpointType.BREAKPOINT_HW);
     this.bp_manager.add_provider(this.sw_bp, EBreakpointType.BREAKPOINT_SW);
 }
Esempio n. 6
0
 public STM32F7x_1024(IDapAccessLink link) : base(link, memoryMap)
 {
 }
 public W7500(IDapAccessLink link) : base(link, memoryMap)
 {
 }