link.ids 中文注释
This commit is contained in:
parent
0c5cbd9f28
commit
9a72e83593
64
.settings/RT-GasFlowMeter.DAPLink.Debug.rttlaunch
Normal file
64
.settings/RT-GasFlowMeter.DAPLink.Debug.rttlaunch
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="ilg.gnumcueclipse.debug.gdbjtag.pyocd.launchConfigurationType">
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.adapterName" value="DAP-LINK"/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.binFlashStartAddress" value="0x08000000"/>
|
||||||
|
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.doContinue" value="true"/>
|
||||||
|
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.doDebugInRam" value="false"/>
|
||||||
|
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.doFirstReset" value="true"/>
|
||||||
|
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.doGdbServerAllocateConsole" value="true"/>
|
||||||
|
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.doSecondReset" value="true"/>
|
||||||
|
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.doStartGdbServer" value="true"/>
|
||||||
|
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.enableSemihosting" value="true"/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.firstResetType" value="init"/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbClientOtherCommands" value="set mem inaccessible-by-default off"/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbClientOtherOptions" value=""/>
|
||||||
|
<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbServerBusSpeed" value="1000000"/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbServerConnectionAddress" value=""/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbServerDeviceName" value="STM32H750XBHx"/>
|
||||||
|
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbServerEnableSemihosting" value="false"/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbServerExecutable" value="${debugger_install_path}/${daplink_debugger_relative_path}\pyocd.exe"/>
|
||||||
|
<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbServerFlashMode" value="0"/>
|
||||||
|
<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbServerGdbPortNumber" value="3333"/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbServerOther" value=""/>
|
||||||
|
<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.gdbServerTelnetPortNumber" value="4444"/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.otherInitCommands" value=""/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.otherRunCommands" value=""/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.programMode" value="BIN"/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.pyocd.secondResetType" value="halt"/>
|
||||||
|
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.svdPath" value=""/>
|
||||||
|
<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.ipAddress" value="localhost"/>
|
||||||
|
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="GNU MCU PyOCD"/>
|
||||||
|
<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"/>
|
||||||
|
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/>
|
||||||
|
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="false"/>
|
||||||
|
<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="${rtt_gnu_gcc}/arm-none-eabi-gdb.exe"/>
|
||||||
|
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.UPDATE_THREADLIST_ON_SUSPEND" value="false"/>
|
||||||
|
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="0"/>
|
||||||
|
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="Debug/rtthread.elf"/>
|
||||||
|
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="RT-GasFlowMeter"/>
|
||||||
|
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="false"/>
|
||||||
|
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value=""/>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||||
|
<listEntry value="/RT-GasFlowMeter"/>
|
||||||
|
</listAttribute>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
|
<listEntry value="4"/>
|
||||||
|
</listAttribute>
|
||||||
|
<stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
|
||||||
|
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="Context string"/> "/>
|
||||||
|
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
|
||||||
|
</launchConfiguration>
|
@ -5,7 +5,7 @@
|
|||||||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||||
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="1351442960345975074" id="ilg.gnuarmeclipse.managedbuild.cross.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT ARM Cross GCC Built-in Compiler Settings " parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="1314440512856976770" id="ilg.gnuarmeclipse.managedbuild.cross.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT ARM Cross GCC Built-in Compiler Settings " parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||||
</provider>
|
</provider>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#RT-Thread Studio Project Configuration
|
#RT-Thread Studio Project Configuration
|
||||||
#Mon Jul 14 08:03:29 CST 2025
|
#Tue Jul 15 21:24:37 CST 2025
|
||||||
project_type=rtt
|
project_type=rtt
|
||||||
chip_name=STM32H750XBHx
|
chip_name=STM32H750XBHx
|
||||||
cpu_name=None
|
cpu_name=None
|
||||||
@ -17,6 +17,6 @@ tool_chain=gcc
|
|||||||
uart_name=uart3
|
uart_name=uart3
|
||||||
tx_pin_name=PD8
|
tx_pin_name=PD8
|
||||||
rtt_nano_path=
|
rtt_nano_path=
|
||||||
output_project_path=D\:/RT-ThreadStudio/workspace
|
output_project_path=D\:\\RT-ThreadStudio\\workspace
|
||||||
hardware_adapter=DAP-LINK
|
hardware_adapter=DAP-LINK
|
||||||
project_name=RTGasFlowMeter
|
project_name=RTGasFlowMeter
|
||||||
|
@ -43,7 +43,7 @@ static void led_thread_entry(void *parameter)
|
|||||||
{
|
{
|
||||||
/* 切换 LED 状态 */
|
/* 切换 LED 状态 */
|
||||||
led_state = !led_state;
|
led_state = !led_state;
|
||||||
rt_pin_write(LED_PIN, led_state);
|
rt_pin_write(LED_PIN, !led_state);
|
||||||
rt_pin_write(LED_PIN1, led_state);
|
rt_pin_write(LED_PIN1, led_state);
|
||||||
rt_pin_write(LED_PIN2, led_state);
|
rt_pin_write(LED_PIN2, led_state);
|
||||||
rt_thread_mdelay(200);
|
rt_thread_mdelay(200);
|
||||||
@ -57,6 +57,8 @@ static void led_thread_entry(void *parameter)
|
|||||||
rt_pin_write(LED_PIN1, !led_state);
|
rt_pin_write(LED_PIN1, !led_state);
|
||||||
rt_pin_write(LED_PIN2, !led_state);
|
rt_pin_write(LED_PIN2, !led_state);
|
||||||
rt_thread_mdelay(200);
|
rt_thread_mdelay(200);
|
||||||
|
|
||||||
|
rt_kprintf("Numb \n",led_state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ rt_weak void rt_hw_board_init()
|
|||||||
|
|
||||||
/* Set the shell console output device */
|
/* Set the shell console output device */
|
||||||
#if defined(RT_USING_DEVICE) && defined(RT_USING_CONSOLE)
|
#if defined(RT_USING_DEVICE) && defined(RT_USING_CONSOLE)
|
||||||
|
/* 初始化串口驱动 */
|
||||||
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,140 +1,138 @@
|
|||||||
/*
|
/*
|
||||||
* linker script for STM32H750XBHx with GNU ld
|
* STM32H750XBHx 的 GNU ld 链接脚本
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Program Entry, set to mark it as "used" and avoid gc */
|
/* 程序入口点,设置为"used"避免被GC */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
ROM (rx) : ORIGIN = 0x08000000, LENGTH = 128k /* 128K flash */
|
ROM (rx) : ORIGIN = 0x08000000, LENGTH = 128k /* 128K 内部Flash */
|
||||||
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */
|
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K SRAM */
|
||||||
}
|
}
|
||||||
ENTRY(Reset_Handler)
|
ENTRY(Reset_Handler) /* 入口点为复位处理函数 */
|
||||||
_system_stack_size = 0x400;
|
_system_stack_size = 0x400; /* 系统栈大小=1KB */
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.text :
|
.text : /* 代码段 */
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4); /* 4字节对齐 */
|
||||||
_stext = .;
|
_stext = .; /* 代码段起始地址 */
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
KEEP(*(.isr_vector)) /* 保留中断向量表(必须放在开头) */
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.text) /* remaining code */
|
*(.text) /* 程序代码 */
|
||||||
*(.text.*) /* remaining code */
|
*(.text.*) /* 程序子代码段 */
|
||||||
*(.rodata) /* read-only data (constants) */
|
*(.rodata) /* 只读数据(常量) */
|
||||||
*(.rodata*)
|
*(.rodata*)
|
||||||
*(.glue_7)
|
*(.glue_7) /* ARM/Thumb胶合代码 */
|
||||||
*(.glue_7t)
|
*(.glue_7t) /* Thumb/ARM胶合代码 */
|
||||||
*(.gnu.linkonce.t*)
|
*(.gnu.linkonce.t*)
|
||||||
|
|
||||||
/* section information for finsh shell */
|
/* Finsh shell的符号表信息 */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__fsymtab_start = .;
|
__fsymtab_start = .; /* Finsh符号表起始 */
|
||||||
KEEP(*(FSymTab))
|
KEEP(*(FSymTab)) /* 保留Finsh符号表 */
|
||||||
__fsymtab_end = .;
|
__fsymtab_end = .; /* Finsh符号表结束 */
|
||||||
|
|
||||||
|
/* 系统组件的符号表 */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__vsymtab_start = .;
|
__vsymtab_start = .; /* 组件符号表起始 */
|
||||||
KEEP(*(VSymTab))
|
KEEP(*(VSymTab)) /* 保留组件符号表 */
|
||||||
__vsymtab_end = .;
|
__vsymtab_end = .; /* 组件符号表结束 */
|
||||||
|
|
||||||
/* section information for utest */
|
/* utest测试框架的段信息 */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__rt_utest_tc_tab_start = .;
|
__rt_utest_tc_tab_start = .; /* utest测试用例表起始 */
|
||||||
KEEP(*(UtestTcTab))
|
KEEP(*(UtestTcTab)) /* 保留测试用例表 */
|
||||||
__rt_utest_tc_tab_end = .;
|
__rt_utest_tc_tab_end = .; /* utest测试用例表结束 */
|
||||||
|
|
||||||
/* section information for at server */
|
/* AT指令服务器的段信息 */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__rtatcmdtab_start = .;
|
__rtatcmdtab_start = .; /* AT指令表起始 */
|
||||||
KEEP(*(RtAtCmdTab))
|
KEEP(*(RtAtCmdTab)) /* 保留AT指令表 */
|
||||||
__rtatcmdtab_end = .;
|
__rtatcmdtab_end = .; /* AT指令表结束 */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
||||||
/* section information for initial. */
|
/* RT-Thread初始化函数表 */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__rt_init_start = .;
|
__rt_init_start = .; /* 初始化函数表起始 */
|
||||||
KEEP(*(SORT(.rti_fn*)))
|
KEEP(*(SORT(.rti_fn*))) /* 保留排序后的初始化函数指针 */
|
||||||
__rt_init_end = .;
|
__rt_init_end = .; /* 初始化函数表结束 */
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
||||||
PROVIDE(__ctors_start__ = .);
|
/* C++构造函数表 */
|
||||||
KEEP (*(SORT(.init_array.*)))
|
PROVIDE(__ctors_start__ = .); /* 构造函数表起始 */
|
||||||
KEEP (*(.init_array))
|
KEEP (*(SORT(.init_array.*))) /* 保留排序的构造函数 */
|
||||||
PROVIDE(__ctors_end__ = .);
|
KEEP (*(.init_array)) /* 保留普通构造函数 */
|
||||||
|
PROVIDE(__ctors_end__ = .); /* 构造函数表结束 */
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
||||||
_etext = .;
|
_etext = .; /* 代码段结束地址 */
|
||||||
} > ROM = 0
|
} > ROM = 0 /* 位于ROM区域,填充0 */
|
||||||
|
|
||||||
/* .ARM.exidx is sorted, so has to go in its own output section. */
|
/* .ARM.exidx 是已排序的,必须放在自己的输出段 */
|
||||||
__exidx_start = .;
|
__exidx_start = .; /* ARM异常索引起始 */
|
||||||
.ARM.exidx :
|
.ARM.exidx : /* ARM异常处理索引表 */
|
||||||
{
|
{
|
||||||
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
||||||
|
|
||||||
/* This is used by the startup in order to initialize the .data secion */
|
/* 以下变量用于启动时初始化.data段 */
|
||||||
_sidata = .;
|
_sidata = .; /* 初始化数据在ROM中的加载地址 */
|
||||||
} > ROM
|
} > ROM
|
||||||
__exidx_end = .;
|
__exidx_end = .; /* ARM异常索引结束 */
|
||||||
|
|
||||||
/* .data section which is used for initialized data */
|
/* .data段 - 用于已初始化的数据 */
|
||||||
|
.data : AT (_sidata) /* AT指定运行时加载地址 */
|
||||||
.data : AT (_sidata)
|
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
/* This is used by the startup in order to initialize the .data secion */
|
_sdata = . ; /* 数据段在RAM中的起始地址(运行时) */
|
||||||
_sdata = . ;
|
|
||||||
|
|
||||||
*(.data)
|
*(.data) /* 已初始化数据 */
|
||||||
*(.data.*)
|
*(.data.*)
|
||||||
*(.gnu.linkonce.d*)
|
*(.gnu.linkonce.d*)
|
||||||
|
|
||||||
|
/* C++析构函数表 */
|
||||||
PROVIDE(__dtors_start__ = .);
|
PROVIDE(__dtors_start__ = .); /* 析构函数表起始 */
|
||||||
KEEP(*(SORT(.dtors.*)))
|
KEEP(*(SORT(.dtors.*))) /* 保留排序的析构函数 */
|
||||||
KEEP(*(.dtors))
|
KEEP(*(.dtors)) /* 保留普通析构函数 */
|
||||||
PROVIDE(__dtors_end__ = .);
|
PROVIDE(__dtors_end__ = .); /* 析构函数表结束 */
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
/* This is used by the startup in order to initialize the .data secion */
|
_edata = . ; /* 数据段在RAM中的结束地址(运行时) */
|
||||||
_edata = . ;
|
} >RAM /* 位于RAM区域 */
|
||||||
} >RAM
|
|
||||||
|
|
||||||
.stack :
|
.stack : /* 系统栈段 */
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_sstack = .;
|
_sstack = .; /* 栈起始地址 */
|
||||||
. = . + _system_stack_size;
|
. = . + _system_stack_size; /* 分配栈空间 */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_estack = .;
|
_estack = .; /* 栈结束地址 */
|
||||||
} >RAM
|
} >RAM /* 位于RAM区域 */
|
||||||
|
|
||||||
__bss_start = .;
|
__bss_start = .; /* BSS段起始标记 */
|
||||||
.bss :
|
.bss : /* 未初始化数据段 */
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
/* This is used by the startup in order to initialize the .bss secion */
|
_sbss = .; /* BSS段起始地址 */
|
||||||
_sbss = .;
|
|
||||||
|
|
||||||
*(.bss)
|
*(.bss) /* 未初始化数据 */
|
||||||
*(.bss.*)
|
*(.bss.*)
|
||||||
*(COMMON)
|
*(COMMON) /* 公共符号 */
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
/* This is used by the startup in order to initialize the .bss secion */
|
_ebss = . ; /* BSS段结束地址 */
|
||||||
_ebss = . ;
|
|
||||||
|
|
||||||
*(.bss.init)
|
*(.bss.init) /* 特殊用途的BSS初始化段 */
|
||||||
} > RAM
|
} > RAM /* 位于RAM区域 */
|
||||||
__bss_end = .;
|
__bss_end = .; /* BSS段结束标记 */
|
||||||
|
|
||||||
_end = .;
|
_end = .; /* 程序内存结束标记 */
|
||||||
|
|
||||||
/* Stabs debugging sections. */
|
/* 以下为调试段,实际输出时不包含 */
|
||||||
|
/* Stabs调试节 */
|
||||||
.stab 0 : { *(.stab) }
|
.stab 0 : { *(.stab) }
|
||||||
.stabstr 0 : { *(.stabstr) }
|
.stabstr 0 : { *(.stabstr) }
|
||||||
.stab.excl 0 : { *(.stab.excl) }
|
.stab.excl 0 : { *(.stab.excl) }
|
||||||
@ -142,19 +140,13 @@ SECTIONS
|
|||||||
.stab.index 0 : { *(.stab.index) }
|
.stab.index 0 : { *(.stab.index) }
|
||||||
.stab.indexstr 0 : { *(.stab.indexstr) }
|
.stab.indexstr 0 : { *(.stab.indexstr) }
|
||||||
.comment 0 : { *(.comment) }
|
.comment 0 : { *(.comment) }
|
||||||
/* DWARF debug sections.
|
/* DWARF调试节 */
|
||||||
* Symbols in the DWARF debugging sections are relative to the beginning
|
|
||||||
* of the section so we begin them at 0. */
|
|
||||||
/* DWARF 1 */
|
|
||||||
.debug 0 : { *(.debug) }
|
.debug 0 : { *(.debug) }
|
||||||
.line 0 : { *(.line) }
|
.line 0 : { *(.line) }
|
||||||
/* GNU DWARF 1 extensions */
|
|
||||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||||
/* DWARF 1.1 and DWARF 2 */
|
|
||||||
.debug_aranges 0 : { *(.debug_aranges) }
|
.debug_aranges 0 : { *(.debug_aranges) }
|
||||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||||
/* DWARF 2 */
|
|
||||||
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
|
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
|
||||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||||
.debug_line 0 : { *(.debug_line) }
|
.debug_line 0 : { *(.debug_line) }
|
||||||
@ -162,9 +154,8 @@ SECTIONS
|
|||||||
.debug_str 0 : { *(.debug_str) }
|
.debug_str 0 : { *(.debug_str) }
|
||||||
.debug_loc 0 : { *(.debug_loc) }
|
.debug_loc 0 : { *(.debug_loc) }
|
||||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||||
/* SGI/MIPS DWARF 2 extensions */
|
|
||||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||||
.debug_typenames 0 : { *(.debug_typenames) }
|
.debug_typenames 0 : { *(.debug_typenames) }
|
||||||
.debug_varnames 0 : { *(.debug_varnames) }
|
.debug_varnames 0 : { *(.debug_varnames) }
|
||||||
}
|
}
|
@ -236,8 +236,8 @@ void Therm_CprCvrHS(Therm *therm, NGParSTRUCT *ptNGPar, Detail *detail) {
|
|||||||
Cvr = Cp - RGAS * (1.0 + ptNGPar->dTf * Cvinc * 0.5 * ptNGPar->dDf);
|
Cvr = Cp - RGAS * (1.0 + ptNGPar->dTf * Cvinc * 0.5 * ptNGPar->dDf);
|
||||||
double a = (ptNGPar->dZf + ptNGPar->dTf * detail->ddZdT);
|
double a = (ptNGPar->dZf + ptNGPar->dTf * detail->ddZdT);
|
||||||
double b = (ptNGPar->dZf + ptNGPar->dDf * detail->ddZdD);
|
double b = (ptNGPar->dZf + ptNGPar->dDf * detail->ddZdD);
|
||||||
double dPdT = RGAS * ptNGPar->dDf * a;
|
//double dPdT = RGAS * ptNGPar->dDf * a;
|
||||||
double dPdD = RGAS * ptNGPar->dTf * b;
|
//double dPdD = RGAS * ptNGPar->dTf * b;
|
||||||
Cpr = Cvr + RGAS * ((a * a) / b);
|
Cpr = Cvr + RGAS * ((a * a) / b);
|
||||||
|
|
||||||
Cpr /= ptNGPar->dMrx;
|
Cpr /= ptNGPar->dMrx;
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
#define RT_USING_DEVICE
|
#define RT_USING_DEVICE
|
||||||
#define RT_USING_CONSOLE
|
#define RT_USING_CONSOLE
|
||||||
#define RT_CONSOLEBUF_SIZE 256
|
#define RT_CONSOLEBUF_SIZE 256
|
||||||
#define RT_CONSOLE_DEVICE_NAME "uart3"
|
#define RT_CONSOLE_DEVICE_NAME "uart2"
|
||||||
#define RT_VER_NUM 0x50100
|
#define RT_VER_NUM 0x50100
|
||||||
#define RT_BACKTRACE_LEVEL_MAX_NR 32
|
#define RT_BACKTRACE_LEVEL_MAX_NR 32
|
||||||
/* end of RT-Thread Kernel */
|
/* end of RT-Thread Kernel */
|
||||||
@ -347,4 +347,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user