-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Phase current offset read at PWM off
- Loading branch information
1 parent
27bd5fa
commit 4b501a0
Showing
3 changed files
with
120 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,28 @@ | ||
# This is an LishuiFOC_01 board with a single STM32F103C6Tx chip | ||
# | ||
# Generated by System Workbench for STM32 | ||
# Take care that such file, as generated, may be overridden without any early notice. Please have a look to debug launch configuration setup(s) | ||
|
||
source [find interface/stlink.cfg] | ||
|
||
set WORKAREASIZE 0x2800 | ||
|
||
transport select "hla_swd" | ||
|
||
set CHIPNAME STM32F103C6Tx | ||
set BOARDNAME LishuiFOC_01 | ||
|
||
# CHIPNAMES state | ||
set CHIPNAME_CPU0_ACTIVATED 1 | ||
|
||
# Enable debug when in low power modes | ||
set ENABLE_LOW_POWER 1 | ||
|
||
# Stop Watchdog counters when halt | ||
set STOP_WATCHDOG 1 | ||
|
||
# STlink Debug clock frequency | ||
set CLOCK_FREQ 8000 | ||
|
||
# use software system reset | ||
reset_config none | ||
set CONNECT_UNDER_RESET 0 | ||
|
||
# BCTM CPU variables | ||
|
||
|
||
|
||
source [find target/stm32f1x.cfg] | ||
# This is an LishuiFOC_01 board with a single STM32F103C6Tx chip | ||
# | ||
# Generated by System Workbench for STM32 | ||
# Take care that such file, as generated, may be overridden without any early notice. Please have a look to debug launch configuration setup(s) | ||
|
||
source [find interface/stlink.cfg] | ||
|
||
set WORKAREASIZE 0x2800 | ||
|
||
transport select "hla_swd" | ||
|
||
set CHIPNAME STM32F103C6Tx | ||
set BOARDNAME LishuiFOC_01 | ||
|
||
# Enable debug when in low power modes | ||
set ENABLE_LOW_POWER 1 | ||
|
||
# Stop Watchdog counters when halt | ||
set STOP_WATCHDOG 1 | ||
|
||
# STlink Debug clock frequency | ||
set CLOCK_FREQ 8000 | ||
|
||
# use software system reset | ||
reset_config none | ||
set CONNECT_UNDER_RESET 0 | ||
|
||
source [find target/stm32f1x.cfg] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="fr.ac6.mcu.debug.config.launchConfigurationType"> | ||
<stringAttribute key="DEBBUGER_BOARD_NAME" value="LishuiFOC_01"/> | ||
<stringAttribute key="DEBBUGER_CORE_NAME" value="cortex-m3"/> | ||
<stringAttribute key="DEBBUGER_MCU_NAME" value="STM32F103C6Tx"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_DEVICE" value="ST-Link"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_DEVICE_SHAREABLE_ALLOWED" value="false"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_INTERFACE" value="SWD"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_INTERFACE_FREQUENCY" value="8000000.0"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_LOW_POWER_MODE_ALLOWED" value="true"/> | ||
<intAttribute key="fr.ac6.mcu.ide.DBG_NB_CORES" value="1"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_RESET_MODE" value="soft"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_STOP_WATCHDOG_THEN_HALTED_ALLOWED" value="true"/> | ||
<booleanAttribute key="fr.ac6.mcu.ide.OPENOCD_GENERATOR_OPTION" value="true"/> | ||
<booleanAttribute key="fr.ac6.mcu.ide.OPENOCD_LAUNCH" value="true"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.OPENOCD_NAME" value=""${openstm32_openocd_path}\openocd.exe""/> | ||
<stringAttribute key="fr.ac6.mcu.ide.OPENOCD_OTHER_OPTIONS" value=""/> | ||
<stringAttribute key="fr.ac6.mcu.ide.OPENOCD_SCRIPT" value="${ProjDirPath}\LishuiFOC_01 Debug.cfg"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.OPENOCD_SCRIPT_CHOICE" value="automated"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.OPENOCD_SCRIPT_IS_LEGACY" value="false"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doHalt" value="false"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doReset" value="false"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.initCommands" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.ipAddress" value="localhost"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="Generic TCP/IP"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/> | ||
<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.portNumber" value="3333"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.runCommands" value=""/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="true"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value=""/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForSymbols" value="false"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useRemoteTarget" value="true"/> | ||
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="${openstm32_compiler_path}\arm-none-eabi-gdb"/> | ||
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="Debug/LishuiFOC_01.elf"/> | ||
<booleanAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME_ACTIVATED" value="true"/> | ||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="LishuiFOC_01"/> | ||
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/> | ||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="fr.ac6.managedbuild.config.gnu.cross.exe.debug.167643868"/> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/LishuiFOC_01"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="4"/> | ||
</listAttribute> | ||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="reserved-for-future-use"> <gdbmemoryBlockExpression address="134248448" label="0x8007800"/> </memoryBlockExpressionList> "/> | ||
<stringAttribute key="process_factory_id" value="fr.ac6.mcu.debug.launching.MCUGdbProcessFactory"/> | ||
</launchConfiguration> | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="fr.ac6.mcu.debug.config.launchConfigurationType"> | ||
<stringAttribute key="DEBBUGER_BOARD_NAME" value="LishuiFOC_01"/> | ||
<stringAttribute key="DEBBUGER_CORE_NAME" value="cortex-m3"/> | ||
<stringAttribute key="DEBBUGER_MCU_NAME" value="STM32F103C6Tx"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_DEVICE" value="ST-Link"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_DEVICE_SHAREABLE_ALLOWED" value="false"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_INTERFACE" value="SWD"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_INTERFACE_FREQUENCY" value="8000000.0"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_LOW_POWER_MODE_ALLOWED" value="true"/> | ||
<intAttribute key="fr.ac6.mcu.ide.DBG_NB_CORES" value="1"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_RESET_MODE" value="soft"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.DBG_STOP_WATCHDOG_THEN_HALTED_ALLOWED" value="true"/> | ||
<booleanAttribute key="fr.ac6.mcu.ide.OPENOCD_GENERATOR_OPTION" value="true"/> | ||
<booleanAttribute key="fr.ac6.mcu.ide.OPENOCD_LAUNCH" value="true"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.OPENOCD_NAME" value=""${openstm32_openocd_path}\openocd.exe""/> | ||
<stringAttribute key="fr.ac6.mcu.ide.OPENOCD_OTHER_OPTIONS" value=""/> | ||
<stringAttribute key="fr.ac6.mcu.ide.OPENOCD_SCRIPT" value="${ProjDirPath}\LishuiFOC_01 Debug.cfg"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.OPENOCD_SCRIPT_CHOICE" value="automated"/> | ||
<stringAttribute key="fr.ac6.mcu.ide.OPENOCD_SCRIPT_IS_LEGACY" value="false"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doHalt" value="false"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doReset" value="false"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.initCommands" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.ipAddress" value="localhost"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="Generic TCP/IP"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/> | ||
<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.portNumber" value="3333"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.runCommands" value=""/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="true"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value=""/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForSymbols" value="false"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/> | ||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useRemoteTarget" value="true"/> | ||
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="${openstm32_compiler_path}\arm-none-eabi-gdb"/> | ||
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/> | ||
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="Debug/LishuiFOC_01.elf"/> | ||
<booleanAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME_ACTIVATED" value="true"/> | ||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="LishuiFOC_01"/> | ||
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/> | ||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="fr.ac6.managedbuild.config.gnu.cross.exe.debug.167643868"/> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/LishuiFOC_01"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="4"/> | ||
</listAttribute> | ||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="reserved-for-future-use"> <gdbmemoryBlockExpression address="134248448" label="0x8007800"/> </memoryBlockExpressionList> "/> | ||
<stringAttribute key="process_factory_id" value="fr.ac6.mcu.debug.launching.MCUGdbProcessFactory"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters