Sergey
5 years ago
3 changed files with 6 additions and 268 deletions
@ -1,240 +0,0 @@ |
|||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* OnProjectLoad |
|
||||
* |
|
||||
* Function description |
|
||||
* Project load routine. Required. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
void OnProjectLoad (void) { |
|
||||
// |
|
||||
// Dialog-generated settings |
|
||||
// |
|
||||
Project.SetDevice ("STM32F103VE"); |
|
||||
Project.SetHostIF ("USB", ""); |
|
||||
Project.SetTargetIF ("SWD"); |
|
||||
Project.SetTIFSpeed ("4 MHz"); |
|
||||
Project.AddSvdFile ("$(InstallDir)/Config/CPU/Cortex-M3.svd"); |
|
||||
Project.AddSvdFile ("/home/sergey/Projects/STM32/F103/BluePill-F103/PWM/STM32F103.svd"); |
|
||||
Project.AddPathSubstitute ("/home/sergey/Projects/3D_Printer/FirmWare/Marlin/Marlin2.0", "$(ProjectDir)"); |
|
||||
///home/sergey/Projects/3D_Printer/FirmWare/Marlin/Marlin2.0/ozone.jdebug |
|
||||
// User settings |
|
||||
// |
|
||||
|
|
||||
File.Open ("$(ProjectDir)/.pio/build/mks_robin_nano/firmware.elf"); |
|
||||
} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* TargetReset |
|
||||
* |
|
||||
* Function description |
|
||||
* Replaces the default target device reset routine. Optional. |
|
||||
* |
|
||||
* Notes |
|
||||
* This example demonstrates the usage when |
|
||||
* debugging a RAM program on a Cortex-M target device |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void TargetReset (void) { |
|
||||
// |
|
||||
// unsigned int SP; |
|
||||
// unsigned int PC; |
|
||||
// unsigned int VectorTableAddr; |
|
||||
// |
|
||||
// Exec.Reset(); |
|
||||
// |
|
||||
// VectorTableAddr = Elf.GetBaseAddr(); |
|
||||
// |
|
||||
// if (VectorTableAddr != 0xFFFFFFFF) { |
|
||||
// |
|
||||
// Util.Log("Resetting Program."); |
|
||||
// |
|
||||
// SP = Target.ReadU32(VectorTableAddr); |
|
||||
// Target.SetReg("SP", SP); |
|
||||
// |
|
||||
// PC = Target.ReadU32(VectorTableAddr + 4); |
|
||||
// Target.SetReg("PC", PC); |
|
||||
// } |
|
||||
//} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* BeforeTargetReset |
|
||||
* |
|
||||
* Function description |
|
||||
* Event handler routine. Optional. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void BeforeTargetReset (void) { |
|
||||
//} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* AfterTargetReset |
|
||||
* |
|
||||
* Function description |
|
||||
* Event handler routine. |
|
||||
* - Sets the PC register to program reset value. |
|
||||
* - Sets the SP register to program reset value on Cortex-M. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
void AfterTargetReset (void) { |
|
||||
unsigned int SP; |
|
||||
unsigned int PC; |
|
||||
unsigned int VectorTableAddr; |
|
||||
|
|
||||
VectorTableAddr = Elf.GetBaseAddr(); |
|
||||
|
|
||||
if (VectorTableAddr == 0xFFFFFFFF) { |
|
||||
Util.Log("Project file error: failed to get program base"); |
|
||||
} else { |
|
||||
SP = Target.ReadU32(VectorTableAddr); |
|
||||
Target.SetReg("SP", SP); |
|
||||
|
|
||||
PC = Target.ReadU32(VectorTableAddr + 4); |
|
||||
Target.SetReg("PC", PC); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* DebugStart |
|
||||
* |
|
||||
* Function description |
|
||||
* Replaces the default debug session startup routine. Optional. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void DebugStart (void) { |
|
||||
//} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* TargetConnect |
|
||||
* |
|
||||
* Function description |
|
||||
* Replaces the default target IF connection routine. Optional. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void TargetConnect (void) { |
|
||||
//} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* BeforeTargetConnect |
|
||||
* |
|
||||
* Function description |
|
||||
* Event handler routine. Optional. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void BeforeTargetConnect (void) { |
|
||||
//} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* AfterTargetConnect |
|
||||
* |
|
||||
* Function description |
|
||||
* Event handler routine. Optional. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void AfterTargetConnect (void) { |
|
||||
//} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* TargetDownload |
|
||||
* |
|
||||
* Function description |
|
||||
* Replaces the default program download routine. Optional. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void TargetDownload (void) { |
|
||||
//} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* BeforeTargetDownload |
|
||||
* |
|
||||
* Function description |
|
||||
* Event handler routine. Optional. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void BeforeTargetDownload (void) { |
|
||||
//} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* AfterTargetDownload |
|
||||
* |
|
||||
* Function description |
|
||||
* Event handler routine. |
|
||||
* - Sets the PC register to program reset value. |
|
||||
* - Sets the SP register to program reset value on Cortex-M. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
void AfterTargetDownload (void) { |
|
||||
unsigned int SP; |
|
||||
unsigned int PC; |
|
||||
unsigned int VectorTableAddr; |
|
||||
|
|
||||
VectorTableAddr = Elf.GetBaseAddr(); |
|
||||
|
|
||||
if (VectorTableAddr == 0xFFFFFFFF) { |
|
||||
Util.Log("Project file error: failed to get program base"); |
|
||||
} else { |
|
||||
SP = Target.ReadU32(VectorTableAddr); |
|
||||
Target.SetReg("SP", SP); |
|
||||
|
|
||||
PC = Target.ReadU32(VectorTableAddr + 4); |
|
||||
Target.SetReg("PC", PC); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* BeforeTargetDisconnect |
|
||||
* |
|
||||
* Function description |
|
||||
* Event handler routine. Optional. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void BeforeTargetDisconnect (void) { |
|
||||
//} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* AfterTargetDisconnect |
|
||||
* |
|
||||
* Function description |
|
||||
* Event handler routine. Optional. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void AfterTargetDisconnect (void) { |
|
||||
//} |
|
||||
|
|
||||
/********************************************************************* |
|
||||
* |
|
||||
* AfterTargetHalt |
|
||||
* |
|
||||
* Function description |
|
||||
* Event handler routine. Optional. |
|
||||
* |
|
||||
********************************************************************** |
|
||||
*/ |
|
||||
//void AfterTargetHalt (void) { |
|
||||
//} |
|
@ -1,28 +0,0 @@ |
|||||
|
|
||||
Breakpoint=3119860543: 43: 0, State=BP_STATE_DISABLED |
|
||||
OpenDocument="main.cpp", FilePath="/home/sergey/.platformio/packages/framework-arduinoststm32-maple/STM32F1/cores/maple/main.cpp", Line=13 |
|
||||
OpenDocument="ultralcd.cpp", FilePath="/home/sergey/Projects/3D_Printer/FirmWare/Marlin/Marlin2.0/Marlin/src/lcd/ultralcd.cpp", Line=745 |
|
||||
OpenDocument="wirish_time.h", FilePath="/home/sergey/.platformio/packages/framework-arduinoststm32-maple/STM32F1/cores/maple/wirish_time.h", Line=62 |
|
||||
OpenDocument="start.S", FilePath="/home/sergey/.platformio/packages/framework-arduinoststm32-maple/STM32F1/variants/generic_stm32f103v/wirish/start.S", Line=26 |
|
||||
OpenDocument="gpio.h", FilePath="/home/sergey/.platformio/packages/framework-arduinoststm32-maple/STM32F1/system/libmaple/stm32f1/include/series/gpio.h", Line=401 |
|
||||
OpenDocument="MarlinCore.cpp", FilePath="/home/sergey/Projects/3D_Printer/FirmWare/Marlin/Marlin2.0/Marlin/src/MarlinCore.cpp", Line=1086 |
|
||||
OpenToolbar="Debug", Floating=0, x=0, y=0 |
|
||||
OpenWindow="Call Stack", DockArea=RIGHT, x=0, y=0, w=427, h=523, FilterBarShown=0, ToolBarShown=0 |
|
||||
OpenWindow="Registers 1", DockArea=RIGHT, x=0, y=0, w=427, h=523, FilterBarShown=0, ToolBarShown=0, FilteredItems=[], RefreshRate=1 |
|
||||
OpenWindow="Source Files", DockArea=LEFT, x=0, y=0, w=301, h=523, FilterBarShown=1, ToolBarShown=0 |
|
||||
OpenWindow="Disassembly", DockArea=LEFT, x=0, y=0, w=301, h=523, FilterBarShown=0, ToolBarShown=0, ExecCountersShown=0, InstEncodingsShown=0 |
|
||||
OpenWindow="Source", x=0, y=0, w=0, h=0, FilterBarShown=0, ToolBarShown=0, ExecCountersShown=0 |
|
||||
OpenWindow="Break & Tracepoints", DockArea=LEFT, x=0, y=0, w=301, h=523, FilterBarShown=0, ToolBarShown=0, VectorCatchIndexMask=254 |
|
||||
OpenWindow="Memory 1", DockArea=BOTTOM, x=1, y=0, w=524, h=220, FilterBarShown=0, ToolBarShown=0, EditorAddress=0x30000000 |
|
||||
OpenWindow="Watched Data", DockArea=BOTTOM, x=2, y=0, w=424, h=220, FilterBarShown=0, ToolBarShown=0 |
|
||||
OpenWindow="Terminal", DockArea=BOTTOM, x=0, y=0, w=580, h=220, FilterBarShown=0, ToolBarShown=0 |
|
||||
OpenWindow="RTOS", DockArea=RIGHT, x=0, y=0, w=427, h=523, FilterBarShown=0, ToolBarShown=0, Showing="" |
|
||||
TableHeader="Registers 1", SortCol="Name", SortOrder="ASCENDING", VisibleCols=["Name";"Value";"Description"], ColWidths=[232;195;259] |
|
||||
TableHeader="Vector Catches", SortCol="None", SortOrder="ASCENDING", VisibleCols=["";"Vector Catch";"Description"], ColWidths=[50;300;500] |
|
||||
TableHeader="Break & Tracepoints", SortCol="None", SortOrder="ASCENDING", VisibleCols=["";"Type";"Location";"Extras"], ColWidths=[55;102;112;123] |
|
||||
TableHeader="Source Files", SortCol="Path", SortOrder="ASCENDING", VisibleCols=["File";"Status";"Size";"#Insts";"Path"], ColWidths=[147;59;48;57;1015] |
|
||||
TableHeader="Watched Data", SortCol="Expression", SortOrder="ASCENDING", VisibleCols=["Expression";"Value";"Location";"Refresh";"Access"], ColWidths=[125;172;117;54;51] |
|
||||
TableHeader="Call Stack", SortCol="Function", SortOrder="ASCENDING", VisibleCols=["Function";"Stack Frame";"Source";"PC";"Return Address";"Stack Used"], ColWidths=[201;96;88;82;156;73] |
|
||||
TableHeader="Power Sampling", SortCol="Index", SortOrder="ASCENDING", VisibleCols=["Index";"Time";"Ch 0"], ColWidths=[100;100;100] |
|
||||
TableHeader="RegisterSelectionDialog", SortCol="Name", SortOrder="ASCENDING", VisibleCols=["Auto";"Name";"Address";"Description"], ColWidths=[27;27;27;27] |
|
||||
WatchedExpression="case_light_arg_flag" |
|
Loading…
Reference in new issue