diff --git a/app/main.c b/app/main.c index 8c88300..ab7c3bd 100644 --- a/app/main.c +++ b/app/main.c @@ -16,6 +16,8 @@ void AppTaskModbusParse (void *p_arg); + + int main() { Sys_Config(); /* stm32系统初始化配置 */ diff --git a/iar/settings/uCOS_Modbus.dnx b/iar/settings/uCOS_Modbus.dnx index 0843539..455e77a 100644 --- a/iar/settings/uCOS_Modbus.dnx +++ b/iar/settings/uCOS_Modbus.dnx @@ -24,7 +24,7 @@ 0 - 2329420531 + 3881723374 _ 0 diff --git a/iar/uCOS_Modbus.dep b/iar/uCOS_Modbus.dep index 9a18660..63921c0 100644 --- a/iar/uCOS_Modbus.dep +++ b/iar/uCOS_Modbus.dep @@ -5,334 +5,338 @@ Debug - $PROJ_DIR$\..\app\main.h - $PROJ_DIR$\..\cmsis\core_cm4.h - $PROJ_DIR$\..\cmsis\core_cm4_simd.h - $PROJ_DIR$\..\cmsis\core_cmFunc.h - $PROJ_DIR$\..\cmsis\core_cmInstr.h $PROJ_DIR$\..\app\inc\hardware.h - $PROJ_DIR$\startup_stm32f40xx.s + $PROJ_DIR$\..\drivers\inc\stm32f4xx_flash.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_fsmc.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_exti.h + $PROJ_DIR$\..\cmsis\core_cm4_simd.h $PROJ_DIR$\..\cmsis\stm32f4xx.h - $PROJ_DIR$\..\cmsis\system_stm32f4xx.c + $PROJ_DIR$\..\drivers\inc\stm32f4xx_gpio.h $PROJ_DIR$\..\app\src\hardware.c - $PROJ_DIR$\..\app\main.c - $PROJ_DIR$\..\drivers\inc\stm32f4xx_syscfg.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_rtc.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_sdio.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_wwdg.h - $PROJ_DIR$\..\drivers\src\misc.c - $PROJ_DIR$\..\drivers\inc\stm32f4xx_rcc.h - $PROJ_DIR$\..\drivers\src\stm32f4xx_adc.c - $PROJ_DIR$\..\drivers\inc\stm32f4xx_flash.h - $PROJ_DIR$\..\drivers\src\stm32f4xx_can.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_crc.c + $PROJ_DIR$\..\cmsis\core_cmFunc.h $PROJ_DIR$\..\drivers\inc\stm32f4xx_hash.h - $PROJ_DIR$\..\cmsis\system_stm32f4xx.h $PROJ_DIR$\..\drivers\inc\stm32f4xx_cryp.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_fsmc.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_dbgmcu.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_usart.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_pwr.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_gpio.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_iwdg.h $PROJ_DIR$\..\drivers\inc\stm32f4xx_dac.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_pwr.h + $PROJ_DIR$\startup_stm32f40xx.s + $PROJ_DIR$\..\app\main.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_dbgmcu.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_rcc.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_i2c.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_rng.h + $PROJ_DIR$\..\cmsis\core_cm4.h + $PROJ_DIR$\..\drivers\inc\misc.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_rtc.h + $PROJ_DIR$\..\cmsis\system_stm32f4xx.c + $PROJ_DIR$\..\app\main.c + $PROJ_DIR$\..\cmsis\core_cmInstr.h $PROJ_DIR$\..\drivers\inc\stm32f4xx_can.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_dcmi.h $PROJ_DIR$\..\drivers\inc\stm32f4xx_adc.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_spi.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_tim.h - $PROJ_DIR$\..\drivers\inc\misc.h + $PROJ_DIR$\..\cmsis\system_stm32f4xx.h $PROJ_DIR$\..\drivers\inc\stm32f4xx_crc.h $PROJ_DIR$\..\drivers\inc\stm32f4xx_dma.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_exti.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_i2c.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_iwdg.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_dcmi.h - $PROJ_DIR$\..\drivers\inc\stm32f4xx_rng.h - $PROJ_DIR$\Debug\Obj\stm32f4xx_i2c.xcl - $PROJ_DIR$\Debug\Obj\system_stm32f4xx.xcl - $TOOLKIT_DIR$\inc\c\iccarm_builtin.h - $PROJ_DIR$\Debug\Obj\os_tmr.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_flash.o - $TOOLKIT_DIR$\inc\c\DLib_Defaults.h - $PROJ_DIR$\Debug\Obj\stm32f4xx_dbgmcu.xcl + $PROJ_DIR$\Debug\Obj\hardware.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_it.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_rtc.xcl + $PROJ_DIR$\Debug\Obj\os_mutex.xcl + $TOOLKIT_DIR$\config\linker\ST\stm32f407xG.icf + $PROJ_DIR$\Debug\Obj\stm32f4xx_rng.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_sdio.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_usart.__cstat.et + $TOOLKIT_DIR$\inc\c\DLib_Product.h + $PROJ_DIR$\Debug\Obj\stm32f4xx_flash.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp.o + $TOOLKIT_DIR$\inc\c\stdint.h + $TOOLKIT_DIR$\inc\c\yvals.h + $PROJ_DIR$\Debug\Obj\stm32f4xx_gpio.o + $PROJ_DIR$\Debug\Obj\utils.o + $PROJ_DIR$\Debug\Obj\os_mem.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_tdes.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_md5.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_crc.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_hash.__cstat.et + $PROJ_DIR$\Debug\Obj\os_flag.__cstat.et $TOOLKIT_DIR$\lib\shb_l.a + $TOOLKIT_DIR$\inc\c\DLib_Config_Normal.h + $PROJ_DIR$\Debug\List\uCOS_Modbus.map + $TOOLKIT_DIR$\lib\dl7M_tln.a + $TOOLKIT_DIR$\lib\rt7M_tl.a + $TOOLKIT_DIR$\inc\c\DLib_Defaults.h $PROJ_DIR$\Debug\Obj\os_time.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_exti.xcl - $PROJ_DIR$\Debug\Obj\os_flag.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_dac.o - $PROJ_DIR$\Debug\Obj\os_tmr.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_sha1.o $PROJ_DIR$\Debug\Obj\stm32f4xx_fsmc.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_fsmc.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_hash.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_rng.__cstat.et + $PROJ_DIR$\Debug\Obj\os_tmr.__cstat.et + $TOOLKIT_DIR$\inc\c\iccarm_builtin.h + $PROJ_DIR$\Debug\Obj\system_stm32f4xx.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_dbgmcu.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_dac.o + $PROJ_DIR$\Debug\Obj\main.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_hash.o $PROJ_DIR$\Debug\Obj\stm32f4xx_dcmi.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_i2c.__cstat.et $TOOLKIT_DIR$\inc\c\cmsis_iar.h - $PROJ_DIR$\Debug\Obj\main.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_md5.xcl - $PROJ_DIR$\Debug\Obj\os_dbg.o - $PROJ_DIR$\Debug\Obj\os_cpu_c.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_rng.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_exti.xcl + $TOOLKIT_DIR$\inc\c\ycheck.h $PROJ_DIR$\Debug\Obj\stm32f4xx_i2c.o $PROJ_DIR$\Debug\Obj\stm32f4xx_adc.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_it.o - $PROJ_DIR$\Debug\Obj\os_cpu_c.__cstat.et + $PROJ_DIR$\Debug\Obj\modbus.o + $PROJ_DIR$\Debug\Obj\uCOS_Modbus.pbd $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_i2c.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_pwr.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_sha1.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_iwdg.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_md5.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_sha1.xcl + $TOOLKIT_DIR$\lib\m7M_tls.a + $PROJ_DIR$\Debug\Obj\sys_cfg.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_dcmi.xcl + $PROJ_DIR$\Debug\Obj\os_q.__cstat.et + $PROJ_DIR$\Debug\Obj\os_flag.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_flash.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_i2c.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_iwdg.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_tdes.o $PROJ_DIR$\Debug\Obj\stm32f4xx_can.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_tdes.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_rng.__cstat.et + $PROJ_DIR$\Debug\Exe\uCOS_Modbus.bin + $PROJ_DIR$\Debug\Obj\stm32f4xx_it.o + $PROJ_DIR$\Debug\Obj\utils.__cstat.et + $PROJ_DIR$\Debug\Obj\os_dbg.o + $PROJ_DIR$\Debug\Obj\os_cpu_c.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_spi.o + $PROJ_DIR$\Debug\Obj\app.xcl $PROJ_DIR$\Debug\Obj\stm32f4xx_wwdg.__cstat.et + $PROJ_DIR$\Debug\Obj\utils.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_fsmc.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_crc.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_rng.o $PROJ_DIR$\Debug\Obj\os_mem.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_pwr.xcl + $PROJ_DIR$\Debug\Exe\uCOS_Modbus.out $PROJ_DIR$\Debug\Obj\system_stm32f4xx.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_iwdg.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_dcmi.xcl + $PROJ_DIR$\Debug\Obj\os_mbox.xcl + $PROJ_DIR$\Debug\Obj\os_tmr.o $PROJ_DIR$\Debug\Obj\os_mutex.o - $PROJ_DIR$\Debug\Obj\sys_cfg.o - $PROJ_DIR$\Debug\Obj\system_stm32f4xx.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_it.__cstat.et - $PROJ_DIR$\Debug\Obj\utils.__cstat.et - $PROJ_DIR$\Debug\Obj\app.xcl - $PROJ_DIR$\Debug\Obj\os_q.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_iwdg.o + $PROJ_DIR$\Debug\Obj\os_cpu_c.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_des.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_des.o + $PROJ_DIR$\Debug\Obj\os_sem.o + $PROJ_DIR$\Debug\Obj\os_task.__cstat.et $PROJ_DIR$\Debug\Obj\stm32f4xx_dma.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_usart.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_tdes.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_adc.o + $PROJ_DIR$\Debug\Obj\os_q.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_it.__cstat.et + $PROJ_DIR$\Debug\Obj\hardware.o + $PROJ_DIR$\Debug\Obj\os_cpu_a.o + $PROJ_DIR$\Debug\Obj\sys_cfg.o $PROJ_DIR$\Debug\Obj\modbus.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_usart.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_aes.xcl + $PROJ_DIR$\Debug\Obj\os_q.xcl + $PROJ_DIR$\Debug\Obj\os_sem.xcl + $PROJ_DIR$\Debug\Obj\misc.xcl $PROJ_DIR$\Debug\Obj\stm32f4xx_spi.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_tdes.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_des.o - $PROJ_DIR$\Debug\Exe\uCOS_Modbus.bin - $PROJ_DIR$\Debug\Obj\os_mbox.xcl - $PROJ_DIR$\Debug\Obj\os_flag.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_des.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_crc.__cstat.et - $PROJ_DIR$\Debug\Exe\uCOS_Modbus.out - $PROJ_DIR$\Debug\Obj\utils.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_pwr.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_spi.__cstat.et $PROJ_DIR$\Debug\Obj\os_sem.__cstat.et $PROJ_DIR$\Debug\Obj\sys_cfg.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_spi.o - $PROJ_DIR$\Debug\Obj\os_task.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_pwr.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_aes.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_dac.xcl $PROJ_DIR$\Debug\Obj\app.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_rtc.__cstat.et - $PROJ_DIR$\Debug\Obj\misc.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_aes.o - $PROJ_DIR$\Debug\Obj\os_core.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_wwdg.xcl + $PROJ_DIR$\Debug\Obj\system_stm32f4xx.__cstat.et $PROJ_DIR$\Debug\Obj\misc.__cstat.et - $PROJ_DIR$\Debug\Obj\os_task.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_rcc.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_exti.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_crc.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_wwdg.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_pwr.o - $PROJ_DIR$\Debug\Obj\os_sem.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_adc.o - $PROJ_DIR$\Debug\Obj\os_sem.xcl - $PROJ_DIR$\Debug\Obj\os_q.o $PROJ_DIR$\Debug\Obj\stm32f4xx_can.xcl - $PROJ_DIR$\Debug\Obj\os_q.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_spi.__cstat.et - $PROJ_DIR$\Debug\Obj\hardware.o - $PROJ_DIR$\Debug\Obj\os_flag.o - $PROJ_DIR$\Debug\Obj\os_task.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_dbgmcu.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_tim.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_sdio.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_dma.xcl - $PROJ_DIR$\Debug\Obj\os_cpu_a.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_gpio.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_dac.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_aes.__cstat.et - $PROJ_DIR$\Debug\Obj\os_dbg.xcl - $PROJ_DIR$\Debug\Obj\hardware.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_fsmc.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_sha1.__cstat.et - $PROJ_DIR$\Debug\Obj\os_time.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_syscfg.o - $PROJ_DIR$\Debug\Obj\os_cpu_c.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_md5.o - $PROJ_DIR$\Debug\Obj\os_mem.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_flash.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_adc.xcl - $PROJ_DIR$\Debug\Obj\os_mbox.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_hash.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_rcc.__cstat.et - $PROJ_DIR$\Debug\Obj\os_core.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_des.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_sdio.xcl - $PROJ_DIR$\Debug\Obj\os_time.o - $PROJ_DIR$\Debug\Obj\os_mbox.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_tim.__cstat.et - $PROJ_DIR$\..\app\src\app.c - $PROJ_DIR$\Debug\Obj\stm32f4xx_exti.__cstat.et - $PROJ_DIR$\Debug\Obj\os_core.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_rcc.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_syscfg.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_iwdg.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_tim.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_rng.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_rtc.xcl - $TOOLKIT_DIR$\config\linker\ST\stm32f407xG.icf - $PROJ_DIR$\Debug\Obj\os_mem.o - $PROJ_DIR$\Debug\Obj\utils.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_can.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_sdio.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_gpio.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_rtc.o - $PROJ_DIR$\Debug\Obj\main.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_tdes.xcl - $PROJ_DIR$\Debug\Obj\main.xcl - $PROJ_DIR$\Debug\Obj\os_dbg.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_crc.xcl - $TOOLKIT_DIR$\inc\c\DLib_Product.h - $PROJ_DIR$\Debug\Obj\stm32f4xx_dcmi.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_dbgmcu.o - $PROJ_DIR$\Debug\Obj\startup_stm32f40xx.o - $PROJ_DIR$\Debug\Obj\stm32f4xx_syscfg.__cstat.et - $PROJ_DIR$\Debug\Obj\modbus.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_it.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_usart.xcl - $PROJ_DIR$\Debug\Obj\hardware.xcl - $PROJ_DIR$\Debug\Obj\stm32f4xx_flash.__cstat.et - $TOOLKIT_DIR$\inc\c\yvals.h - $PROJ_DIR$\Debug\Obj\stm32f4xx_usart.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_md5.__cstat.et - $PROJ_DIR$\Debug\Obj\stm32f4xx_dma.__cstat.et - $PROJ_DIR$\Debug\Obj\os_tmr.xcl - $PROJ_DIR$\Debug\Obj\os_mutex.__cstat.et - $PROJ_DIR$\Debug\Obj\os_mutex.xcl - $TOOLKIT_DIR$\inc\c\stdint.h - $PROJ_DIR$\Debug\Obj\stm32f4xx_gpio.o - $PROJ_DIR$\Debug\Obj\misc.o - $PROJ_DIR$\..\drivers\src\stm32f4xx_i2c.c + $PROJ_DIR$\Debug\Obj\stm32f4xx_dac.xcl + $PROJ_DIR$\..\drivers\inc\stm32f4xx_usart.h $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_tdes.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_rtc.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_sdio.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_tim.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_usart.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dac.c $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_des.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_dcmi.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_syscfg.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_wwdg.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_exti.c - $PROJ_DIR$\..\modbus\modbus.c - $PROJ_DIR$\..\modbus\modbus.h - $PROJ_DIR$\..\ucos_ii\ports\os_cpu.h - $PROJ_DIR$\..\ucos_ii\ports\os_cpu_a.asm - $PROJ_DIR$\..\ucos_ii\ports\os_cpu_c.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_aes.c $PROJ_DIR$\..\drivers\src\stm32f4xx_flash.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_dbgmcu.c + $PROJ_DIR$\..\drivers\inc\stm32f4xx_tim.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_sdio.h + $PROJ_DIR$\..\drivers\src\stm32f4xx_dcmi.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_i2c.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_rtc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_sdio.c $PROJ_DIR$\..\drivers\src\stm32f4xx_dma.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_fsmc.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_gpio.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_aes.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp.c + $PROJ_DIR$\..\drivers\inc\stm32f4xx_wwdg.h + $PROJ_DIR$\..\drivers\src\stm32f4xx_adc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_crc.c $PROJ_DIR$\..\drivers\src\stm32f4xx_hash.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_rcc.c $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_md5.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_rng.c $PROJ_DIR$\..\drivers\src\stm32f4xx_iwdg.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_dac.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_fsmc.c + $PROJ_DIR$\..\drivers\src\misc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_gpio.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_can.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dbgmcu.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_rng.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_exti.c $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_sha1.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_spi.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_rcc.c $PROJ_DIR$\..\drivers\src\stm32f4xx_pwr.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp.c - $TOOLKIT_DIR$\lib\dl7M_tln.a - $PROJ_DIR$\Debug\List\uCOS_Modbus.map - $TOOLKIT_DIR$\inc\c\DLib_Config_Normal.h - $PROJ_DIR$\..\ucos_ii\ports\os_dbg.c + $PROJ_DIR$\..\drivers\inc\stm32f4xx_spi.h + $PROJ_DIR$\..\drivers\inc\stm32f4xx_syscfg.h + $PROJ_DIR$\..\modbus\modbus.h + $PROJ_DIR$\..\drivers\src\stm32f4xx_syscfg.c + $PROJ_DIR$\..\ucos_ii\ports\os_cpu_c.c + $PROJ_DIR$\..\user\stm32f4xx_it.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_wwdg.c + $PROJ_DIR$\..\ucos_ii\source\os_mutex.c + $PROJ_DIR$\..\ucos_ii\source\os_q.c + $PROJ_DIR$\..\ucos_ii\source\os_task.c + $PROJ_DIR$\..\user\stm32f4xx_conf.h + $PROJ_DIR$\..\drivers\src\stm32f4xx_usart.c + $PROJ_DIR$\..\ucos_ii\source\os_flag.c $PROJ_DIR$\..\user\stm32f4xx_it.h - $PROJ_DIR$\..\ucos_ii\source\os_mbox.c - $PROJ_DIR$\Debug\Obj\modbus.o $PROJ_DIR$\..\ucos_ii\source\os_mem.c - $PROJ_DIR$\..\ucos_ii\source\os_time.c - $PROJ_DIR$\..\ucos_ii\source\os_core.c - $PROJ_DIR$\..\ucos_ii\source\os_flag.c + $PROJ_DIR$\..\user\os_cfg.h + $PROJ_DIR$\..\ucos_ii\source\os.h + $PROJ_DIR$\..\ucos_ii\ports\os_dbg.c + $PROJ_DIR$\..\ucos_ii\source\os_sem.c $PROJ_DIR$\..\user\sys_cfg.c - $PROJ_DIR$\Debug\Obj\stm32f4xx_hash.o - $TOOLKIT_DIR$\lib\m7M_tls.a - $TOOLKIT_DIR$\lib\rt7M_tl.a - $PROJ_DIR$\..\ucos_ii\source\os_mutex.c + $PROJ_DIR$\..\user\sys_cfg.h + $PROJ_DIR$\..\drivers\src\stm32f4xx_spi.c $PROJ_DIR$\..\user\app_cfg.h + $PROJ_DIR$\..\user\utils.c + $PROJ_DIR$\..\ucos_ii\source\os_mbox.c + $PROJ_DIR$\..\ucos_ii\ports\os_cpu.h + $PROJ_DIR$\..\ucos_ii\source\os_core.c + $PROJ_DIR$\..\ucos_ii\ports\os_cpu_a.asm + $PROJ_DIR$\..\modbus\modbus.c + $PROJ_DIR$\..\ucos_ii\source\os_time.c $PROJ_DIR$\..\ucos_ii\source\os_tmr.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_tim.c $PROJ_DIR$\..\ucos_ii\source\ucos_ii.h - $PROJ_DIR$\..\user\os_cfg.h - $PROJ_DIR$\..\ucos_ii\source\os_task.c - $PROJ_DIR$\..\user\utils.c - $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_sha1.xcl - $PROJ_DIR$\..\ucos_ii\source\os.h - $PROJ_DIR$\..\user\stm32f4xx_it.c - $PROJ_DIR$\..\ucos_ii\source\os_q.c - $PROJ_DIR$\..\user\stm32f4xx_conf.h - $PROJ_DIR$\Debug\Obj\sys_cfg.__cstat.et - $PROJ_DIR$\..\user\sys_cfg.h - $TOOLKIT_DIR$\inc\c\ycheck.h - $PROJ_DIR$\..\ucos_ii\source\os_sem.c + $PROJ_DIR$\Debug\Obj\stm32f4xx_wwdg.xcl + $PROJ_DIR$\Debug\Obj\os_task.o + $PROJ_DIR$\Debug\Obj\os_flag.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_rtc.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_crc.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_sha1.__cstat.et + $PROJ_DIR$\Debug\Obj\os_dbg.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_dma.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_aes.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_hash_md5.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_rcc.o + $PROJ_DIR$\Debug\Obj\os_time.xcl + $PROJ_DIR$\Debug\Obj\hardware.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_adc.xcl + $PROJ_DIR$\Debug\Obj\os_time.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_aes.o + $PROJ_DIR$\Debug\Obj\os_mbox.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_fsmc.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_flash.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_syscfg.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_rcc.xcl + $PROJ_DIR$\Debug\Obj\os_task.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_pwr.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_gpio.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_tim.xcl + $PROJ_DIR$\Debug\Obj\os_core.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_dbgmcu.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_exti.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_wwdg.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_sdio.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_sdio.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_iwdg.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_exti.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_dac.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp_des.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_tim.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_hash.xcl + $PROJ_DIR$\Debug\Obj\os_tmr.xcl + $PROJ_DIR$\Debug\Obj\main.xcl + $PROJ_DIR$\Debug\Obj\os_cpu_c.xcl + $PROJ_DIR$\Debug\Obj\stm32f4xx_rtc.o + $PROJ_DIR$\..\app\src\app.c + $PROJ_DIR$\Debug\Obj\stm32f4xx_syscfg.__cstat.et + $PROJ_DIR$\Debug\Obj\os_dbg.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_rcc.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_dcmi.__cstat.et + $PROJ_DIR$\Debug\Obj\os_mutex.__cstat.et + $PROJ_DIR$\Debug\Obj\startup_stm32f40xx.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_tim.__cstat.et + $PROJ_DIR$\Debug\Obj\main.o + $PROJ_DIR$\Debug\Obj\misc.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_gpio.xcl + $PROJ_DIR$\Debug\Obj\modbus.xcl + $PROJ_DIR$\Debug\Obj\os_core.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_dbgmcu.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_syscfg.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_can.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_dma.__cstat.et + $PROJ_DIR$\Debug\Obj\os_mem.__cstat.et + $PROJ_DIR$\Debug\Obj\stm32f4xx_cryp.__cstat.et + $PROJ_DIR$\Debug\Obj\os_core.o + $PROJ_DIR$\Debug\Obj\stm32f4xx_usart.xcl + $PROJ_DIR$\Debug\Obj\os_mbox.o + $TOOLKIT_DIR$\inc\c\ysizet.h + $TOOLKIT_DIR$\inc\c\string.h + $TOOLKIT_DIR$\inc\c\DLib_Product_string.h [ROOT_NODE] ILINK - 100 236 + 107 55 - $PROJ_DIR$\startup_stm32f40xx.s + $PROJ_DIR$\..\app\src\hardware.c - AARM - 186 + __cstat + 216 - - - - $PROJ_DIR$\..\cmsis\system_stm32f4xx.c - ICCARM - 78 + 122 BICOMP - 43 - - - __cstat - 83 + 32 ICCARM - 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 0 - $PROJ_DIR$\..\app\src\hardware.c + $PROJ_DIR$\startup_stm32f40xx.s - ICCARM - 129 + AARM + 251 + + + + + $PROJ_DIR$\..\cmsis\system_stm32f4xx.c + + + __cstat + 137 - BICOMP - 191 + ICCARM + 108 - __cstat - 141 + BICOMP + 64 ICCARM - 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 5 + 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 @@ -340,192 +344,202 @@ $PROJ_DIR$\..\app\main.c - ICCARM - 178 + __cstat + 67 - BICOMP - 180 + ICCARM + 253 - __cstat - 61 + BICOMP + 242 ICCARM - 0 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 5 253 251 254 216 258 263 215 + 15 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 0 203 193 186 196 187 191 173 - $PROJ_DIR$\..\drivers\src\misc.c + $PROJ_DIR$\Debug\Exe\uCOS_Modbus.out - ICCARM - 202 - - - BICOMP - 111 + ILINK + 55 - __cstat - 115 + OBJCOPY + 93 - ICCARM - 34 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 + ILINK + 36 122 253 254 76 264 123 97 96 206 266 47 111 120 116 205 218 110 251 119 260 208 42 219 115 89 66 258 69 118 231 86 61 45 68 213 60 74 94 112 226 214 104 244 38 98 259 239 126 232 124 108 46 53 57 81 56 - $PROJ_DIR$\..\drivers\src\stm32f4xx_adc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_tdes.c - ICCARM - 123 + __cstat + 91 - BICOMP - 151 + ICCARM + 89 - __cstat - 67 + BICOMP + 48 ICCARM - 31 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 10 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_can.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dac.c - ICCARM - 173 + __cstat + 237 - BICOMP - 126 + ICCARM + 66 - __cstat - 75 + BICOMP + 140 ICCARM - 30 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 12 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_crc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_des.c - ICCARM - 119 + __cstat + 114 - BICOMP - 182 + ICCARM + 115 - __cstat - 99 + BICOMP + 238 ICCARM - 35 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 10 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\Debug\Exe\uCOS_Modbus.out + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_aes.c - ILINK - 236 + __cstat + 212 - OBJCOPY - 95 + ICCARM + 219 + + + BICOMP + 127 - ILINK - 170 129 178 202 241 155 136 64 63 130 159 171 81 125 122 116 158 45 186 123 173 119 174 112 94 90 53 185 59 88 118 46 55 201 247 148 73 66 68 74 121 164 65 177 175 104 145 167 89 120 82 78 172 49 249 248 235 + ICCARM + 10 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\app\src\app.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_flash.c - BICOMP + __cstat + 41 + + + ICCARM 86 - __cstat - 109 + BICOMP + 222 + + + ICCARM + 1 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 2 6 18 11 13 17 22 148 171 172 147 141 155 21 + + - $PROJ_DIR$\..\drivers\src\stm32f4xx_i2c.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dcmi.c - ICCARM - 66 + __cstat + 249 - BICOMP - 42 + ICCARM + 69 - __cstat - 71 + BICOMP + 83 ICCARM - 38 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 39 27 16 12 13 32 11 33 26 14 34 + 27 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_tdes.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_i2c.c - ICCARM - 90 + __cstat + 70 - BICOMP - 179 + ICCARM + 74 - __cstat - 93 + BICOMP + 87 ICCARM - 23 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 18 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 11 13 17 22 148 171 172 147 141 155 21 @@ -533,22 +547,22 @@ $PROJ_DIR$\..\drivers\src\stm32f4xx_rtc.c - ICCARM - 177 + __cstat + 207 - BICOMP - 169 + ICCARM + 244 - __cstat - 110 + BICOMP + 34 ICCARM - 12 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 13 32 11 33 26 14 34 + 22 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 148 171 172 147 141 155 21 @@ -556,1094 +570,1097 @@ $PROJ_DIR$\..\drivers\src\stm32f4xx_sdio.c - ICCARM - 175 + __cstat + 234 - BICOMP - 157 + ICCARM + 38 - __cstat - 134 + BICOMP + 233 ICCARM - 13 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 32 11 33 26 14 34 + 148 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_tim.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dma.c - ICCARM - 167 + __cstat + 261 - BICOMP - 133 + ICCARM + 118 - __cstat - 160 + BICOMP + 211 ICCARM - 33 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 26 14 34 + 31 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_usart.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp.c - ICCARM - 89 + __cstat + 263 - BICOMP - 190 + ICCARM + 42 - __cstat - 194 + BICOMP + 78 ICCARM - 26 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 14 34 + 10 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_des.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_adc.c - ICCARM - 94 + __cstat + 75 - BICOMP - 156 + ICCARM + 119 - __cstat - 98 + BICOMP + 217 ICCARM - 23 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 28 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_dcmi.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_crc.c - ICCARM - 59 + __cstat + 103 - BICOMP - 80 + ICCARM + 208 - __cstat - 184 + BICOMP + 50 ICCARM - 40 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 30 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_syscfg.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_hash.c - ICCARM - 145 + __cstat + 51 - BICOMP - 165 + ICCARM + 68 - __cstat - 187 + BICOMP + 240 ICCARM - 11 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 33 26 14 34 + 9 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_wwdg.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_md5.c - ICCARM - 120 + __cstat + 49 - BICOMP - 114 + ICCARM + 213 - __cstat - 76 + BICOMP + 79 ICCARM - 14 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 34 + 9 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_exti.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_iwdg.c - ICCARM - 118 + __cstat + 88 - BICOMP - 51 + ICCARM + 112 - __cstat - 162 + BICOMP + 235 ICCARM - 37 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 11 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\modbus\modbus.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_fsmc.c - ICCARM - 241 + __cstat + 221 - BICOMP - 188 + ICCARM + 61 - __cstat - 91 + BICOMP + 102 ICCARM - 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 5 253 251 254 216 258 263 + 2 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\ucos_ii\ports\os_cpu_a.asm + $PROJ_DIR$\..\drivers\src\misc.c - AARM - 136 + __cstat + 138 - - - - $PROJ_DIR$\..\ucos_ii\ports\os_cpu_c.c - ICCARM - 64 + 254 BICOMP - 146 - - - __cstat - 69 + 130 ICCARM - 253 251 254 216 + 21 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 - $PROJ_DIR$\..\drivers\src\stm32f4xx_flash.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_gpio.c - ICCARM - 46 + __cstat + 227 - BICOMP - 150 + ICCARM + 45 - __cstat - 192 + BICOMP + 255 ICCARM - 18 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 6 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_dbgmcu.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_can.c - ICCARM - 185 + __cstat + 90 - BICOMP - 48 + ICCARM + 260 - __cstat - 132 + BICOMP + 139 ICCARM - 25 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 26 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_dma.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dbgmcu.c - ICCARM - 88 + __cstat + 230 - BICOMP - 135 + ICCARM + 258 - __cstat - 196 + BICOMP + 65 ICCARM - 36 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 16 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_fsmc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_rng.c - ICCARM - 55 + __cstat + 92 - BICOMP - 56 + ICCARM + 104 - __cstat - 142 + BICOMP + 37 ICCARM - 24 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 28 38 39 27 16 12 13 32 11 33 26 14 34 + 19 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_gpio.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_exti.c - ICCARM - 201 + __cstat + 236 - BICOMP - 176 + ICCARM + 231 - __cstat - 137 + BICOMP + 72 ICCARM - 28 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 38 39 27 16 12 13 32 11 33 26 14 34 + 3 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_aes.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_sha1.c - ICCARM - 112 + __cstat + 209 - BICOMP - 107 + ICCARM + 60 - __cstat - 139 + BICOMP + 80 ICCARM - 23 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 9 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_hash.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_rcc.c - ICCARM - 247 + __cstat + 248 - BICOMP - 153 + ICCARM + 214 - __cstat - 57 + BICOMP + 224 ICCARM - 21 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 17 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_rcc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_pwr.c - ICCARM - 164 + __cstat + 132 - BICOMP - 117 + ICCARM + 226 - __cstat - 154 + BICOMP + 106 ICCARM - 16 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 12 13 32 11 33 26 14 34 + 13 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_md5.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_syscfg.c - ICCARM - 148 + __cstat + 246 - BICOMP - 62 + ICCARM + 259 - __cstat - 195 + BICOMP + 223 ICCARM - 21 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 172 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 147 141 155 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_rng.c + $PROJ_DIR$\..\ucos_ii\ports\os_cpu_c.c - ICCARM - 65 + __cstat + 113 - BICOMP - 168 + ICCARM + 97 - __cstat - 58 + BICOMP + 243 ICCARM - 41 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 203 193 186 196 - $PROJ_DIR$\..\drivers\src\stm32f4xx_iwdg.c + $PROJ_DIR$\..\user\stm32f4xx_it.c + + __cstat + 121 + ICCARM - 74 + 94 BICOMP - 166 - - - __cstat - 79 + 33 ICCARM - 39 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 27 16 12 13 32 11 33 26 14 34 + 184 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 203 193 186 196 - $PROJ_DIR$\..\drivers\src\stm32f4xx_dac.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_wwdg.c - ICCARM - 53 + __cstat + 100 - BICOMP - 108 + ICCARM + 232 - __cstat - 138 + BICOMP + 204 ICCARM - 29 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 155 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_sha1.c + $PROJ_DIR$\..\ucos_ii\source\os_mutex.c - ICCARM - 73 + __cstat + 250 - BICOMP - 257 + ICCARM + 111 - __cstat - 143 + BICOMP + 35 ICCARM - 21 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 203 193 186 196 - $PROJ_DIR$\..\drivers\src\stm32f4xx_spi.c + $PROJ_DIR$\..\ucos_ii\source\os_q.c - ICCARM - 104 + __cstat + 84 - BICOMP - 92 + ICCARM + 120 - __cstat + BICOMP 128 ICCARM - 32 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 11 33 26 14 34 + 203 193 186 196 - $PROJ_DIR$\..\drivers\src\stm32f4xx_pwr.c + $PROJ_DIR$\..\ucos_ii\source\os_task.c - ICCARM - 121 + __cstat + 117 - BICOMP - 72 + ICCARM + 205 - __cstat - 106 + BICOMP + 225 ICCARM - 27 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 16 12 13 32 11 33 26 14 34 + 203 193 186 196 - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_usart.c - ICCARM - 174 + __cstat + 39 - BICOMP - 70 + ICCARM + 126 - __cstat - 147 + BICOMP + 265 ICCARM - 23 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 141 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 155 21 - $PROJ_DIR$\..\ucos_ii\ports\os_dbg.c + $PROJ_DIR$\..\ucos_ii\source\os_flag.c - ICCARM - 63 + __cstat + 52 - BICOMP - 140 + ICCARM + 206 - __cstat - 181 + BICOMP + 85 ICCARM - 253 251 254 216 + 203 193 186 196 - $PROJ_DIR$\..\ucos_ii\source\os_mbox.c + $PROJ_DIR$\..\ucos_ii\source\os_mem.c - ICCARM - 159 + __cstat + 262 - BICOMP - 96 + ICCARM + 47 - __cstat - 152 + BICOMP + 105 ICCARM - 253 251 254 216 + 203 193 186 196 - $PROJ_DIR$\..\ucos_ii\source\os_mem.c + $PROJ_DIR$\..\ucos_ii\ports\os_dbg.c - ICCARM - 171 + __cstat + 247 - BICOMP - 77 + ICCARM + 96 - __cstat - 149 + BICOMP + 210 ICCARM - 253 251 254 216 + 203 193 186 196 - $PROJ_DIR$\..\ucos_ii\source\os_time.c + $PROJ_DIR$\..\ucos_ii\source\os_sem.c - ICCARM - 158 + __cstat + 134 - BICOMP - 144 + ICCARM + 116 - __cstat - 50 + BICOMP + 129 ICCARM - 253 251 254 216 + 203 193 186 196 - $PROJ_DIR$\..\ucos_ii\source\os_core.c + $PROJ_DIR$\..\user\sys_cfg.c - ICCARM - 155 + __cstat + 82 - BICOMP - 113 + ICCARM + 124 - __cstat - 163 + BICOMP + 135 ICCARM - 253 251 254 216 + 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 186 191 - $PROJ_DIR$\..\ucos_ii\source\os_flag.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_spi.c - ICCARM - 130 + __cstat + 133 - BICOMP - 97 + ICCARM + 98 - __cstat - 52 + BICOMP + 131 ICCARM - 253 251 254 216 + 171 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 172 147 141 155 21 - $PROJ_DIR$\..\user\sys_cfg.c + $PROJ_DIR$\..\user\utils.c - ICCARM - 82 + __cstat + 95 - BICOMP - 103 + ICCARM + 46 - __cstat - 262 + BICOMP + 101 ICCARM - 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 254 263 + 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 - $PROJ_DIR$\..\ucos_ii\source\os_mutex.c + $PROJ_DIR$\..\ucos_ii\source\os_mbox.c - ICCARM - 81 + __cstat + 220 - BICOMP - 199 + ICCARM + 266 - __cstat - 198 + BICOMP + 109 ICCARM - 253 251 254 216 + 203 193 186 196 - $PROJ_DIR$\..\ucos_ii\source\os_tmr.c + $PROJ_DIR$\..\ucos_ii\source\os_core.c - ICCARM - 45 + __cstat + 257 - BICOMP - 197 + ICCARM + 264 - __cstat - 54 + BICOMP + 229 ICCARM - 253 251 254 216 + 203 193 186 196 - $PROJ_DIR$\..\ucos_ii\source\os_task.c + $PROJ_DIR$\..\ucos_ii\ports\os_cpu_a.asm - ICCARM - 116 + AARM + 123 + + + + $PROJ_DIR$\..\modbus\modbus.c + - BICOMP - 131 + __cstat + 125 - __cstat - 105 + ICCARM + 76 + + + BICOMP + 256 ICCARM - 253 251 254 216 + 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 147 141 155 21 0 203 193 186 196 187 191 268 267 269 173 - $PROJ_DIR$\..\user\utils.c + $PROJ_DIR$\..\ucos_ii\source\os_time.c - ICCARM - 172 + __cstat + 59 - BICOMP - 101 + ICCARM + 218 - __cstat - 85 + BICOMP + 215 ICCARM - 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 + 203 193 186 196 - $PROJ_DIR$\..\user\stm32f4xx_it.c + $PROJ_DIR$\..\ucos_ii\source\os_tmr.c - ICCARM - 68 + __cstat + 62 - BICOMP - 189 + ICCARM + 110 - __cstat - 84 + BICOMP + 241 ICCARM - 239 7 1 200 264 193 47 237 183 4 60 44 3 2 22 261 35 25 36 37 18 24 28 38 39 27 16 12 13 32 11 33 26 14 34 253 251 254 216 + 203 193 186 196 - $PROJ_DIR$\..\ucos_ii\source\os_q.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_tim.c - ICCARM - 125 + __cstat + 252 - BICOMP - 127 + ICCARM + 239 - __cstat - 87 + BICOMP + 228 ICCARM - 253 251 254 216 + 147 5 20 43 73 44 58 54 40 25 71 63 8 4 29 181 30 16 31 3 1 2 6 18 11 13 17 22 148 171 172 141 155 21 - $PROJ_DIR$\..\ucos_ii\source\os_sem.c + $PROJ_DIR$\..\app\src\app.c - ICCARM - 122 + __cstat + 136 BICOMP - 124 - - - __cstat - 102 + 99 - - - ICCARM - 253 251 254 216 - - Release + $PROJ_DIR$\..\app\src\hardware.c $PROJ_DIR$\startup_stm32f40xx.s $PROJ_DIR$\..\cmsis\system_stm32f4xx.c - $PROJ_DIR$\..\app\src\hardware.c $PROJ_DIR$\..\app\main.c - $PROJ_DIR$\..\drivers\src\misc.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_adc.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_can.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_crc.c - $PROJ_DIR$\Release\Obj\utils.o + $PROJ_DIR$\Release\Obj\stm32f4xx_cryp_aes.xcl + $PROJ_DIR$\Release\Obj\utils.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_hash_md5.o + $PROJ_DIR$\Release\Obj\stm32f4xx_adc.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_i2c.o $PROJ_DIR$\Release\Obj\stm32f4xx_cryp_des.o - $PROJ_DIR$\Release\Obj\stm32f4xx_hash.o - $PROJ_DIR$\Release\Obj\stm32f4xx_dma.o - $PROJ_DIR$\Release\Obj\stm32f4xx_hash_sha1.o $PROJ_DIR$\Release\Obj\stm32f4xx_adc.o - $PROJ_DIR$\Release\Obj\stm32f4xx_dbgmcu.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_cryp_des.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_hash_sha1.o $PROJ_DIR$\Release\Obj\stm32f4xx_dma.xcl - $PROJ_DIR$\Release\Obj\os_cpu_a.o - $PROJ_DIR$\Release\Obj\stm32f4xx_fsmc.o - $PROJ_DIR$\Release\Obj\startup_stm32f40xx.o - $PROJ_DIR$\Release\Obj\stm32f4xx_cryp.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_i2c.o - $PROJ_DIR$\Release\Obj\os_q.xcl $PROJ_DIR$\Release\Obj\stm32f4xx_cryp_tdes.xcl - $PROJ_DIR$\Release\Obj\utils.xcl - $PROJ_DIR$\Release\Obj\os_flag.o + $PROJ_DIR$\Release\Obj\stm32f4xx_usart.xcl $PROJ_DIR$\Release\Obj\os_task.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_exti.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_fsmc.o $PROJ_DIR$\Release\Obj\stm32f4xx_dbgmcu.o - $PROJ_DIR$\Release\Obj\stm32f4xx_usart.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_adc.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_hash_md5.o + $PROJ_DIR$\Release\Obj\stm32f4xx_crc.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_hash.o + $PROJ_DIR$\Release\Obj\stm32f4xx_exti.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_i2c.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_rcc.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_flash.xcl + $PROJ_DIR$\Release\Obj\startup_stm32f40xx.o + $PROJ_DIR$\Release\Obj\stm32f4xx_cryp.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_can.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_crc.o + $PROJ_DIR$\Release\Obj\stm32f4xx_rtc.xcl + $PROJ_DIR$\Release\Obj\os_mutex.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_dma.o + $PROJ_DIR$\Release\Obj\os_time.o $PROJ_DIR$\Release\Obj\os_core.xcl + $PROJ_DIR$\Release\Obj\os_cpu_a.o + $PROJ_DIR$\Release\Obj\utils.o $PROJ_DIR$\Release\Obj\stm32f4xx_rcc.o - $PROJ_DIR$\Release\Obj\stm32f4xx_i2c.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_crc.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_cryp_aes.xcl - $PROJ_DIR$\Release\Obj\os_tmr.xcl + $PROJ_DIR$\Release\Obj\os_q.xcl + $PROJ_DIR$\Release\Obj\os_flag.o + $PROJ_DIR$\Release\Obj\stm32f4xx_dbgmcu.xcl + $PROJ_DIR$\Release\Obj\misc.o + $PROJ_DIR$\Release\Obj\stm32f4xx_iwdg.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_hash.xcl + $PROJ_DIR$\Release\Obj\os_task.o $PROJ_DIR$\Release\Obj\stm32f4xx_wwdg.xcl - $PROJ_DIR$\Release\Obj\os_dbg.o - $PROJ_DIR$\Release\Obj\stm32f4xx_sdio.xcl - $PROJ_DIR$\Release\Obj\os_mbox.o - $PROJ_DIR$\Release\Obj\stm32f4xx_rng.xcl - $PROJ_DIR$\Release\Obj\system_stm32f4xx.o - $PROJ_DIR$\Release\Obj\os_mutex.o - $PROJ_DIR$\Release\Obj\os_sem.xcl + $PROJ_DIR$\Release\Obj\os_cpu_c.o + $PROJ_DIR$\Release\Obj\hardware.o $PROJ_DIR$\Release\Obj\os_tmr.o - $PROJ_DIR$\Release\Obj\os_mbox.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_fsmc.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_tim.o - $PROJ_DIR$\Release\Obj\main.o - $PROJ_DIR$\Release\Obj\stm32f4xx_syscfg.xcl - $PROJ_DIR$\Release\Obj\misc.o - $PROJ_DIR$\Release\Obj\os_cpu_c.xcl $PROJ_DIR$\Release\Obj\stm32f4xx_dcmi.xcl - $PROJ_DIR$\Release\Obj\hardware.o + $PROJ_DIR$\Release\Obj\os_tmr.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_flash.o + $PROJ_DIR$\Release\Exe\uCOS_Modbus.out + $PROJ_DIR$\Release\Obj\stm32f4xx_cryp_tdes.o $PROJ_DIR$\Release\Obj\stm32f4xx_iwdg.o - $PROJ_DIR$\Release\Obj\stm32f4xx_hash_sha1.xcl $PROJ_DIR$\Release\Obj\os_mem.o - $PROJ_DIR$\Release\Obj\os_dbg.xcl - $PROJ_DIR$\Release\Obj\system_stm32f4xx.xcl $PROJ_DIR$\Release\Obj\stm32f4xx_tim.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_iwdg.xcl - $PROJ_DIR$\Release\Obj\os_cpu_c.o - $PROJ_DIR$\Release\Obj\stm32f4xx_flash.o + $PROJ_DIR$\Release\Obj\stm32f4xx_pwr.xcl $PROJ_DIR$\Release\Obj\stm32f4xx_it.o $PROJ_DIR$\Release\Obj\stm32f4xx_it.xcl + $PROJ_DIR$\Release\Obj\main.xcl $PROJ_DIR$\Release\Obj\stm32f4xx_usart.o - $PROJ_DIR$\Release\Obj\os_task.o - $PROJ_DIR$\Release\Obj\stm32f4xx_crc.o - $PROJ_DIR$\Release\Obj\stm32f4xx_can.xcl - $PROJ_DIR$\Release\Obj\os_sem.o + $PROJ_DIR$\Release\Obj\stm32f4xx_dac.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_can.o + $PROJ_DIR$\Release\Obj\stm32f4xx_dac.o + $PROJ_DIR$\Release\Obj\main.o + $PROJ_DIR$\Release\Obj\os_sem.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_fsmc.xcl + $PROJ_DIR$\Release\Obj\os_cpu_c.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_sdio.xcl + $PROJ_DIR$\Release\Obj\os_mbox.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_rng.xcl + $PROJ_DIR$\Release\Obj\os_dbg.o + $PROJ_DIR$\Release\Obj\stm32f4xx_gpio.xcl + $PROJ_DIR$\Release\Obj\os_flag.xcl + $PROJ_DIR$\Release\Obj\os_mem.xcl $PROJ_DIR$\Release\Obj\stm32f4xx_gpio.o - $PROJ_DIR$\Release\Obj\stm32f4xx_exti.o - $PROJ_DIR$\Release\Obj\stm32f4xx_rtc.xcl - $PROJ_DIR$\Release\Obj\os_time.o $PROJ_DIR$\Release\Obj\os_q.o - $PROJ_DIR$\Release\Obj\stm32f4xx_cryp.o - $PROJ_DIR$\Release\Obj\stm32f4xx_gpio.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_cryp_aes.o + $PROJ_DIR$\Release\Obj\stm32f4xx_exti.o + $PROJ_DIR$\Release\Obj\stm32f4xx_syscfg.o + $PROJ_DIR$\Release\Obj\os_mbox.o + $PROJ_DIR$\Release\Obj\system_stm32f4xx.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_wwdg.o + $PROJ_DIR$\Release\Obj\stm32f4xx_hash_sha1.xcl $PROJ_DIR$\Release\Obj\os_time.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_spi.o + $PROJ_DIR$\Release\Obj\sys_cfg.xcl $PROJ_DIR$\Release\Obj\sys_cfg.o $PROJ_DIR$\Release\Obj\stm32f4xx_sdio.o - $PROJ_DIR$\Release\Obj\stm32f4xx_dcmi.o - $PROJ_DIR$\Release\Obj\stm32f4xx_cryp_aes.o $PROJ_DIR$\Release\Obj\misc.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_wwdg.o - $PROJ_DIR$\Release\Obj\stm32f4xx_spi.o - $PROJ_DIR$\Release\Obj\os_flag.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_cryp_des.xcl - $PROJ_DIR$\Release\Obj\os_mutex.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_hash_md5.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_rcc.xcl $PROJ_DIR$\Release\Obj\os_core.o - $PROJ_DIR$\Release\Obj\stm32f4xx_spi.xcl - $PROJ_DIR$\Release\Obj\os_mem.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_syscfg.o - $PROJ_DIR$\Release\Obj\stm32f4xx_flash.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_syscfg.xcl + $PROJ_DIR$\Release\Obj\stm32f4xx_dcmi.o + $PROJ_DIR$\Release\Obj\stm32f4xx_cryp.o $PROJ_DIR$\Release\Obj\stm32f4xx_rng.o + $PROJ_DIR$\Release\Obj\os_dbg.xcl + $PROJ_DIR$\Release\Obj\system_stm32f4xx.o + $PROJ_DIR$\Release\Obj\stm32f4xx_tim.o + $PROJ_DIR$\Release\Obj\stm32f4xx_spi.xcl + $PROJ_DIR$\Release\Obj\os_mutex.o + $PROJ_DIR$\Release\Obj\os_sem.o + $PROJ_DIR$\Release\Obj\stm32f4xx_hash_md5.xcl $PROJ_DIR$\Release\Obj\hardware.xcl - $PROJ_DIR$\Release\Obj\sys_cfg.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_dac.o - $PROJ_DIR$\Release\Obj\main.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_can.o $PROJ_DIR$\Release\Obj\stm32f4xx_pwr.o $PROJ_DIR$\Release\Obj\stm32f4xx_rtc.o - $PROJ_DIR$\Release\Obj\stm32f4xx_hash.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_pwr.xcl - $PROJ_DIR$\Release\Obj\stm32f4xx_cryp_tdes.o - $PROJ_DIR$\Release\Obj\stm32f4xx_dac.xcl - $PROJ_DIR$\Release\Exe\uCOS_Modbus.out - $PROJ_DIR$\..\drivers\src\stm32f4xx_i2c.c $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_tdes.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_rtc.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_sdio.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_tim.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_usart.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dac.c $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_des.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_dcmi.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_syscfg.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_wwdg.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_exti.c - $PROJ_DIR$\..\ucos_ii\ports\os_cpu_a.asm - $PROJ_DIR$\..\ucos_ii\ports\os_cpu_c.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_aes.c $PROJ_DIR$\..\drivers\src\stm32f4xx_flash.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_dbgmcu.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dcmi.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_i2c.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_rtc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_sdio.c $PROJ_DIR$\..\drivers\src\stm32f4xx_dma.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_fsmc.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_gpio.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_aes.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_adc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_crc.c $PROJ_DIR$\..\drivers\src\stm32f4xx_hash.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_rcc.c $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_md5.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_rng.c $PROJ_DIR$\..\drivers\src\stm32f4xx_iwdg.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_dac.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_fsmc.c + $PROJ_DIR$\..\drivers\src\misc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_gpio.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_can.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dbgmcu.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_rng.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_exti.c $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_sha1.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_spi.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_rcc.c $PROJ_DIR$\..\drivers\src\stm32f4xx_pwr.c - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_syscfg.c + $PROJ_DIR$\..\ucos_ii\ports\os_cpu_c.c + $PROJ_DIR$\..\user\stm32f4xx_it.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_wwdg.c + $PROJ_DIR$\..\ucos_ii\source\os_mutex.c + $PROJ_DIR$\..\ucos_ii\source\os_q.c + $PROJ_DIR$\..\ucos_ii\source\os_task.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_usart.c + $PROJ_DIR$\..\ucos_ii\source\os_flag.c + $PROJ_DIR$\..\ucos_ii\source\os_mem.c $PROJ_DIR$\..\ucos_ii\ports\os_dbg.c + $PROJ_DIR$\..\ucos_ii\source\os_sem.c + $PROJ_DIR$\..\user\sys_cfg.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_spi.c + $PROJ_DIR$\..\user\utils.c $PROJ_DIR$\..\ucos_ii\source\os_mbox.c - $PROJ_DIR$\..\ucos_ii\source\os_mem.c - $PROJ_DIR$\..\ucos_ii\source\os_time.c $PROJ_DIR$\..\ucos_ii\source\os_core.c - $PROJ_DIR$\..\ucos_ii\source\os_flag.c - $PROJ_DIR$\..\user\sys_cfg.c - $PROJ_DIR$\..\ucos_ii\source\os_mutex.c + $PROJ_DIR$\..\ucos_ii\ports\os_cpu_a.asm + $PROJ_DIR$\..\ucos_ii\source\os_time.c $PROJ_DIR$\..\ucos_ii\source\os_tmr.c - $PROJ_DIR$\..\ucos_ii\source\os_task.c - $PROJ_DIR$\..\user\utils.c - $PROJ_DIR$\..\user\stm32f4xx_it.c - $PROJ_DIR$\..\ucos_ii\source\os_q.c - $PROJ_DIR$\..\ucos_ii\source\os_sem.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_tim.c [ROOT_NODE] ILINK - 108 + 51 + + + + + $PROJ_DIR$\..\app\src\hardware.c + + + ICCARM + 46 + + + BICOMP + 102 @@ -1652,7 +1669,7 @@ AARM - 18 + 25 @@ -1661,111 +1678,111 @@ ICCARM - 42 + 96 BICOMP - 59 + 81 - $PROJ_DIR$\..\app\src\hardware.c + $PROJ_DIR$\..\app\main.c ICCARM - 54 + 64 BICOMP - 97 + 59 - $PROJ_DIR$\..\app\main.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_tdes.c ICCARM - 49 + 52 BICOMP - 100 + 14 - $PROJ_DIR$\..\drivers\src\misc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dac.c ICCARM - 51 + 63 BICOMP - 83 + 61 - $PROJ_DIR$\..\drivers\src\stm32f4xx_adc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_des.c ICCARM - 13 + 9 BICOMP - 29 + 11 - $PROJ_DIR$\..\drivers\src\stm32f4xx_can.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_aes.c ICCARM - 101 + 77 BICOMP - 69 + 4 - $PROJ_DIR$\..\drivers\src\stm32f4xx_crc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_flash.c ICCARM - 68 + 50 BICOMP - 34 + 24 - $PROJ_DIR$\..\drivers\src\stm32f4xx_i2c.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dcmi.c ICCARM - 20 + 92 BICOMP - 33 + 48 - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_tdes.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_i2c.c ICCARM - 106 + 8 BICOMP @@ -1778,11 +1795,11 @@ ICCARM - 103 + 104 BICOMP - 73 + 29 @@ -1791,215 +1808,206 @@ ICCARM - 80 + 88 BICOMP - 39 + 68 - $PROJ_DIR$\..\drivers\src\stm32f4xx_tim.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dma.c ICCARM - 48 + 31 BICOMP - 60 + 13 - $PROJ_DIR$\..\drivers\src\stm32f4xx_usart.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp.c ICCARM - 66 + 93 BICOMP - 28 + 26 - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_des.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_adc.c ICCARM - 9 + 10 BICOMP - 87 + 7 - $PROJ_DIR$\..\drivers\src\stm32f4xx_dcmi.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_crc.c ICCARM - 81 + 28 BICOMP - 53 + 19 - $PROJ_DIR$\..\drivers\src\stm32f4xx_syscfg.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_hash.c ICCARM - 94 + 20 BICOMP - 50 + 42 - $PROJ_DIR$\..\drivers\src\stm32f4xx_wwdg.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_md5.c ICCARM - 84 + 6 BICOMP - 37 + 101 - $PROJ_DIR$\..\drivers\src\stm32f4xx_exti.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_iwdg.c ICCARM - 72 + 53 BICOMP - 26 - - - - - $PROJ_DIR$\..\ucos_ii\ports\os_cpu_a.asm - - - AARM - 16 + 41 - $PROJ_DIR$\..\ucos_ii\ports\os_cpu_c.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_fsmc.c ICCARM - 62 + 17 BICOMP - 52 + 66 - $PROJ_DIR$\..\drivers\src\stm32f4xx_flash.c + $PROJ_DIR$\..\drivers\src\misc.c ICCARM - 63 + 40 BICOMP - 95 + 89 - $PROJ_DIR$\..\drivers\src\stm32f4xx_dbgmcu.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_gpio.c ICCARM - 27 + 75 BICOMP - 14 + 72 - $PROJ_DIR$\..\drivers\src\stm32f4xx_dma.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_can.c ICCARM - 11 + 62 BICOMP - 15 + 27 - $PROJ_DIR$\..\drivers\src\stm32f4xx_fsmc.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_dbgmcu.c ICCARM - 17 + 18 BICOMP - 47 + 39 - $PROJ_DIR$\..\drivers\src\stm32f4xx_gpio.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_rng.c ICCARM - 71 + 94 BICOMP - 77 + 70 - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp_aes.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_exti.c ICCARM - 82 + 78 BICOMP - 35 + 21 - $PROJ_DIR$\..\drivers\src\stm32f4xx_hash.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_sha1.c ICCARM - 10 + 12 BICOMP - 104 + 83 @@ -2008,141 +2016,141 @@ ICCARM - 32 + 36 BICOMP - 90 + 23 - $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_md5.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_pwr.c ICCARM - 30 + 103 BICOMP - 89 + 56 - $PROJ_DIR$\..\drivers\src\stm32f4xx_rng.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_syscfg.c ICCARM - 96 + 79 BICOMP - 41 + 91 - $PROJ_DIR$\..\drivers\src\stm32f4xx_iwdg.c + $PROJ_DIR$\..\ucos_ii\ports\os_cpu_c.c ICCARM - 55 + 45 BICOMP - 61 + 67 - $PROJ_DIR$\..\drivers\src\stm32f4xx_dac.c + $PROJ_DIR$\..\user\stm32f4xx_it.c ICCARM - 99 + 57 BICOMP - 107 + 58 - $PROJ_DIR$\..\drivers\src\stm32f4xx_hash_sha1.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_wwdg.c ICCARM - 12 + 82 BICOMP - 56 + 44 - $PROJ_DIR$\..\drivers\src\stm32f4xx_spi.c + $PROJ_DIR$\..\ucos_ii\source\os_mutex.c ICCARM - 85 + 99 BICOMP - 92 + 30 - $PROJ_DIR$\..\drivers\src\stm32f4xx_pwr.c + $PROJ_DIR$\..\ucos_ii\source\os_q.c ICCARM - 102 + 76 BICOMP - 105 + 37 - $PROJ_DIR$\..\drivers\src\stm32f4xx_cryp.c + $PROJ_DIR$\..\ucos_ii\source\os_task.c ICCARM - 76 + 43 BICOMP - 19 + 16 - $PROJ_DIR$\..\ucos_ii\ports\os_dbg.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_usart.c ICCARM - 38 + 60 BICOMP - 58 + 15 - $PROJ_DIR$\..\ucos_ii\source\os_mbox.c + $PROJ_DIR$\..\ucos_ii\source\os_flag.c ICCARM - 40 + 38 BICOMP - 46 + 73 @@ -2151,46 +2159,46 @@ ICCARM - 57 + 54 BICOMP - 93 + 74 - $PROJ_DIR$\..\ucos_ii\source\os_time.c + $PROJ_DIR$\..\ucos_ii\ports\os_dbg.c ICCARM - 74 + 71 BICOMP - 78 + 95 - $PROJ_DIR$\..\ucos_ii\source\os_core.c + $PROJ_DIR$\..\ucos_ii\source\os_sem.c ICCARM - 91 + 100 BICOMP - 31 + 65 - $PROJ_DIR$\..\ucos_ii\source\os_flag.c + $PROJ_DIR$\..\user\sys_cfg.c ICCARM - 24 + 87 BICOMP @@ -2199,11 +2207,11 @@ - $PROJ_DIR$\..\user\sys_cfg.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_spi.c ICCARM - 79 + 85 BICOMP @@ -2212,93 +2220,89 @@ - $PROJ_DIR$\..\ucos_ii\source\os_mutex.c + $PROJ_DIR$\..\user\utils.c ICCARM - 43 + 35 BICOMP - 88 + 5 - $PROJ_DIR$\..\ucos_ii\source\os_tmr.c + $PROJ_DIR$\..\ucos_ii\source\os_mbox.c ICCARM - 45 + 80 BICOMP - 36 + 69 - $PROJ_DIR$\..\ucos_ii\source\os_task.c + $PROJ_DIR$\..\ucos_ii\source\os_core.c ICCARM - 67 + 90 BICOMP - 25 + 33 - $PROJ_DIR$\..\user\utils.c + $PROJ_DIR$\..\ucos_ii\ports\os_cpu_a.asm - ICCARM - 8 - - - BICOMP - 23 + AARM + 34 - $PROJ_DIR$\..\user\stm32f4xx_it.c + $PROJ_DIR$\..\ucos_ii\source\os_time.c ICCARM - 64 + 32 BICOMP - 65 + 84 - $PROJ_DIR$\..\ucos_ii\source\os_q.c + $PROJ_DIR$\..\ucos_ii\source\os_tmr.c ICCARM - 75 + 47 BICOMP - 21 + 49 - $PROJ_DIR$\..\ucos_ii\source\os_sem.c + $PROJ_DIR$\..\drivers\src\stm32f4xx_tim.c ICCARM - 70 + 97 BICOMP - 44 + 55 diff --git a/modbus/modbus.c b/modbus/modbus.c index 65c2e3d..1092155 100644 --- a/modbus/modbus.c +++ b/modbus/modbus.c @@ -4,9 +4,25 @@ #include "os.h" #include "app_cfg.h" #include "sys_cfg.h" +#include "string.h" +#include "modbus.h" extern OS_EVENT* ModbusReceived; /*接收到modbus请求报文*/ -extern OS_EVENT* ModbusAssembled; /*modbus响应帧组装完成*/ + + + + +/*0x270F+1=K10000*/ +uint8_t ModbusCoil[1250]; /*10000/8=1250*/ +uint16_t ModbusReg[10000]; + + +void AddCrc16(uint8_t *data, uint16_t length); +int8_t ChcekCrc16(uint16_t recCrc16, uint8_t *data, uint16_t length); +uint8_t ModbusReadCoil(uint16_t addres, uint16_t num); +uint8_t ModbusWriteCoil(uint16_t addres, uint16_t num, uint8_t *data); +uint8_t ModbusReadReg(uint16_t addres, uint16_t num); +uint8_t ModbusWriteReg(uint16_t addres, uint16_t num, uint8_t *data); /*USART接收空闲中断*/ void USART1_IRQHandler(void) @@ -73,12 +89,303 @@ void ModbusSend(uint8_t *txBuf, uint16_t len) /*modbus协议帧解析任务*/ void AppTaskModbusParse (void *p_arg) { + INT8U err; + MODBUS_FRAME frame; + uint16_t rxLen; + uint8_t rxBuf[256]; + while(1) { - OSTimeDly(OS_TICKS_PER_SEC); + OSSemPend(ModbusReceived, 0, &err); + + rxLen = ModbusRxLen; + + memcpy(rxBuf, ModbusRxBuf, rxLen); + + frame.crc = ((uint16_t)(rxBuf[rxLen - 1])) | ((uint16_t)rxBuf[rxLen - 2] << 8); + if(ChcekCrc16(frame.crc, rxBuf, rxLen) != 0) + { + /****************************crc错误处理******************************/ + } + + + frame.slaveAddres = rxBuf[0]; + if(frame.slaveAddres != SLAVE_ADDRES) + { + /*****************************从机地址错误处理************************/ + } + + + frame.func = rxBuf[1]; + frame.opeAddres = ((uint16_t)rxBuf[2] << 8) | ((uint16_t)rxBuf[3]); + frame.opeNum = ((uint16_t)rxBuf[4] << 8) | ((uint16_t)rxBuf[5]); + + + + switch(frame.func) + { + case 0x01:/*读线圈*/ + ModbusReadCoil(frame.opeAddres, frame.opeNum); + + break; + + case 0x03:/*读寄存器*/ + ModbusReadReg(frame.opeAddres, frame.opeNum); + + break; + + case 0x0F:/*写多个线圈*/ + frame.wNum = rxBuf[6]; + memcpy(frame.wData, &rxBuf[7], frame.wNum); + + ModbusWriteCoil(frame.opeAddres, frame.opeNum, frame.wData); + + + break; + + case 0x10:/*写多个寄存器*/ + frame.wNum = rxBuf[6]; + memcpy(frame.wData, &rxBuf[7], frame.wNum); + + ModbusWriteReg(frame.opeAddres, frame.opeNum, frame.wData); + + break; + + default:/*功能码错误*/ + + + + break; + + } + ModbusSend(ModbusTxBuf, ModbusTxLen); + } +} + +uint8_t ModbusReadCoil(uint16_t addres, uint16_t num) +{ + uint16_t byteIndI; + uint8_t bitIndI; + uint16_t byteIndO; + uint8_t bitIndO; + + uint8_t dataLen; + + uint8_t index; + uint8_t readVal; + uint8_t writeVal; + + + if(addres > 0x270F || (addres + num) > 0x270F) + { + /********************地址超限处理*****************/ } - + + + dataLen = (num + 7) / 8; + + memset(&ModbusTxBuf[3], 0, 253);/*清零发送数组*/ + + + for(uint16_t i = 0; i < num; i++) + { + byteIndO = i / 8; + bitIndO = i % 8; + + byteIndI = (addres + i) / 8; + bitIndI = (addres + i) % 8; + + readVal = ModbusCoil[byteIndI] & ((uint8_t)1 << bitIndI); + + if(readVal != 0) + { + index = 3 + byteIndO; + writeVal = (uint8_t)1u << bitIndO; + + ModbusTxBuf[index] |= writeVal; + } + } + + ModbusTxBuf[0] = SLAVE_ADDRES; + ModbusTxBuf[1] = 0x01; + ModbusTxBuf[2] = dataLen;/*响应帧返回数据字节数*/ + AddCrc16(ModbusTxBuf, 3 + dataLen); + ModbusTxLen = 5 + dataLen; } +uint8_t ModbusWriteCoil(uint16_t addres, uint16_t num, uint8_t *data) +{ + uint16_t byteIndI; + uint8_t bitIndI; + uint16_t byteIndO; + uint8_t bitIndO; + + uint8_t readVal; + uint8_t writeVal; + + if(addres > 0x270F || (addres + num) > 0x270F) + { + /********************地址超限处理*****************/ + } + + + + for(uint16_t i = 0; i < num; i++) + { + byteIndI = (addres + i) / 8; + bitIndI = (addres + i) % 8; + + byteIndO = i / 8; + bitIndO = i % 8; + + readVal = data[byteIndO] | ((uint8_t)1 << bitIndO); + writeVal = (uint8_t)1 << bitIndI; + + + if(readVal != 0) + { + ModbusCoil[byteIndI] |= writeVal; + } + else + { + ModbusCoil[byteIndI] &= (~writeVal); + } + + ModbusTxBuf[0] = SLAVE_ADDRES; + ModbusTxBuf[1] = 0x0F; + /*操作地址*/ + ModbusTxBuf[2] = (uint8_t)(addres >> 8); + ModbusTxBuf[3] = (uint8_t)(addres & 0x00FF); + /*成功写入的数量*/ + ModbusTxBuf[4] = (uint8_t)(num >> 8); + ModbusTxBuf[5] = (uint8_t)(num & 0x00FF); + AddCrc16(ModbusTxBuf, 6); + ModbusTxLen = 8; + } +} + +uint8_t ModbusReadReg(uint16_t addres, uint16_t num) +{ + uint8_t index; + uint8_t readValH; + uint8_t readValL; + uint8_t dataLen; + + + + if(addres > 0x270F || (addres + num) > 0x270F) + { + /********************地址错误处理*****************/ + } + + + dataLen = num * 2; + for(uint16_t i = 0; i < num; i++) + { + index = 3 + (i * 2); + readValH = (uint8_t)(ModbusReg[addres + i] >> 8); + readValL = (uint8_t)(ModbusReg[addres + i] & 0x00FF); + + ModbusTxBuf[index] = readValH; + ModbusTxBuf[index + 1] = readValL; + } + ModbusTxBuf[0] = SLAVE_ADDRES; + ModbusTxBuf[1] = 0x03; + ModbusTxBuf[2] = dataLen; + AddCrc16(ModbusTxBuf, 3 + dataLen); + ModbusTxLen = 5 + dataLen; +} + +uint8_t ModbusWriteReg(uint16_t addres, uint16_t num, uint8_t *data) +{ + uint8_t index; + + uint8_t writeValH; + uint8_t writeValL; + uint16_t writeVal; + + + if(addres > 0x270F || (addres + num) > 0x270F) + { + /********************地址错误处理*****************/ + } + + + for(uint16_t i = 0; i < num; i++) + { + index = i * 2; + + writeValH = data[index]; + writeValL = data[index + 1]; + + writeVal = ((uint16_t)writeValH << 8) | ((uint16_t)writeValL & 0x00FF); + ModbusReg[addres + i] = writeVal; + } + + ModbusTxBuf[0] = SLAVE_ADDRES; + ModbusTxBuf[1] = 0x10; + /*操作地址*/ + ModbusTxBuf[2] = (uint8_t)(addres >> 8); + ModbusTxBuf[3] = (uint8_t)(addres & 0x00FF); + /*成功写入数量*/ + ModbusTxBuf[4] = (uint8_t)(num >> 8); + ModbusTxBuf[5] = (uint8_t)(num & 0x00FF); + AddCrc16(ModbusTxBuf, 6); + ModbusTxLen = 8; + +} + +uint16_t Crc16(const uint8_t *data, uint16_t length); + +void AddCrc16(uint8_t *data, uint16_t length) +{ + uint16_t crc16 = Crc16(data, length); + + /*低前高后*/ + data[length] = (uint8_t)(crc16 & 0x00FF); + data[length + 1] = (uint8_t)(crc16 >> 8); +} + +/*crc16校验*/ +uint16_t Crc16(const uint8_t *data, uint16_t length) +{ + uint16_t crc; + uint16_t byteInd; + uint8_t bitInd; + + crc = 0xFFFFu; + for (byteInd = 0u; byteInd < length; byteInd++) + { + crc ^= (uint16_t)data[byteInd]; + for (bitInd = 0u; bitInd < 8u; bitInd++) + { + if ((crc & 0x0001u) != 0u) + { + crc >>= 1; + crc ^= 0xA001u; + } + else + { + crc >>= 1; + } + } + } + return crc; +} + +/*crc16检查*/ +int8_t ChcekCrc16(uint16_t recCrc16, uint8_t *data, uint16_t length) +{ + uint16_t crc16 = Crc16(data, (length - 2)); + + if(recCrc16 == crc16) + { + return 0; + } + else + { + return -1; + } +} \ No newline at end of file diff --git a/modbus/modbus.h b/modbus/modbus.h index 63359a7..16b3159 100644 --- a/modbus/modbus.h +++ b/modbus/modbus.h @@ -3,22 +3,21 @@ #include "ucos_ii.h" -/* - * Modbus task synchronization objects. - * - * ModbusReceived: - * USART IDLE ISR -> parse task - * ModbusAssembled: - * parse task -> send task - * ModbusTxCompleted: - * USART TC ISR -> send task - * ModbusTxBufferFree: - * ownership of the single transmit buffer - */ +#define SLAVE_ADDRES 0x01 + +typedef struct Modbus_Frame +{ + uint8_t slaveAddres; /*从机地址*/ + uint8_t func; /*功能码*/ + uint16_t opeAddres; /*操作地址*/ + uint16_t opeNum; /*操作数量*/ + uint8_t wNum; /*写入字节数*/ + uint8_t wData[256]; /*写入数据*/ + uint16_t crc; /*CRC校验码*/ +}MODBUS_FRAME; + extern OS_EVENT *ModbusReceived; -extern OS_EVENT *ModbusAssembled; -extern OS_EVENT *ModbusTxCompleted; -extern OS_EVENT *ModbusTxBufferFree; + void AppTaskModbusParse(void *p_arg); void AppTaskModbusSend(void *p_arg);