T31AC 000:005.549 SEGGER J-Link V6.86 Log File
T31AC 000:005.706 DLL Compiled: Sep 24 2020 17:31:31
T31AC 000:005.721 Logging started @ 2023-06-07 04:01
T31AC 000:005.734 - 5.741ms
T31AC 000:005.754 JLINK_SetWarnOutHandler(...)
T31AC 000:005.769 - 0.021ms
T31AC 000:005.784 JLINK_OpenEx(...)
T31AC 000:007.493 Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
T31AC 000:011.700 Hardware: V8.00
T31AC 000:011.742 S/N: 4294967295
T31AC 000:011.763 OEM: SEGGER
T31AC 000:011.783 Feature(s): RDI,FlashDL,FlashBP,JFlash,GDB
T31AC 000:013.647 TELNET listener socket opened on port 19021
T31AC 000:013.768 WEBSRV Starting webserver
T31AC 000:013.996 WEBSRV Webserver running on local port 19080
T31AC 000:014.021 - 8.244ms returns "O.K."
T31AC 000:014.046 JLINK_GetEmuCaps()
T31AC 000:014.066 - 0.029ms returns 0xB9FF7BBF
T31AC 000:014.092 JLINK_TIF_GetAvailable(...)
T31AC 000:014.417 - 0.348ms
T31AC 000:014.465 JLINK_SetErrorOutHandler(...)
T31AC 000:014.485 - 0.030ms
T31AC 000:014.536 JLINK_ExecCommand("ProjectFile = "D:\微控\STM32F103C8T6最小系统板\实验\超声波\MDK-ARM\JLinkSettings.ini"", ...).
T31AC 000:023.960 - 9.440ms returns 0x00
T31AC 000:025.662 JLINK_ExecCommand("Device = STM32F103C8", ...).
T31AC 000:027.080 Device "STM32F103C8" selected.
T31AC 000:027.402 - 1.727ms returns 0x00
T31AC 000:027.421 JLINK_GetHardwareVersion()
T31AC 000:027.432 - 0.017ms returns 80000
T31AC 000:027.452 JLINK_GetDLLVersion()
T31AC 000:027.466 - 0.028ms returns 68600
T31AC 000:027.496 JLINK_GetOEMString(...)
T31AC 000:027.509 JLINK_GetFirmwareString(...)
T31AC 000:027.522 - 0.019ms
T31AC 000:030.159 JLINK_GetDLLVersion()
T31AC 000:030.177 - 0.022ms returns 68600
T31AC 000:030.187 JLINK_GetCompileDateTime()
T31AC 000:030.196 - 0.013ms
T31AC 000:034.110 JLINK_GetFirmwareString(...)
T31AC 000:034.131 - 0.025ms
T31AC 000:035.118 JLINK_GetHardwareVersion()
T31AC 000:035.135 - 0.021ms returns 80000
T31AC 000:036.068 JLINK_GetSN()
T31AC 000:036.084 - 0.020ms returns -1
T31AC 000:036.094 JLINK_GetOEMString(...)
T31AC 000:041.186 JLINK_TIF_Select(JLINKARM_TIF_SWD)
T31AC 000:042.537 - 1.364ms returns 0x00
T31AC 000:042.558 JLINK_HasError()
T31AC 000:042.581 JLINK_SetSpeed(5000)
T31AC 000:042.837 - 0.268ms
T31AC 000:042.857 JLINK_GetId()
T31AC 000:045.721 Found SW-DP with ID 0x1BA01477
T31AC 000:068.094 Found SW-DP with ID 0x1BA01477
T31AC 000:071.454 Old FW that does not support reading DPIDR via DAP jobs
T31AC 000:076.982 Unknown DP version. Assuming DPv0
T31AC 000:078.576 Scanning AP map to find all available APs
T31AC 000:083.632 AP[1]: Stopped AP scan as end of AP map has been reached
T31AC 000:084.741 AP[0]: AHB-AP (IDR: 0x14770011)
T31AC 000:085.662 Iterating through AP map to find AHB-AP to use
T31AC 000:091.931 AP[0]: Core found
T31AC 000:092.836 AP[0]: AHB-AP ROM base: 0xE00FF000
T31AC 000:096.419 CPUID register: 0x411FC231. Implementer code: 0x41 (ARM)
T31AC 000:097.359 Found Cortex-M3 r1p1, Little endian.
T31AC 000:199.064 -- Max. mem block: 0x00002408
T31AC 000:199.197 CPU_ReadMem(4 bytes @ 0xE000EDF0)
T31AC 000:200.169 CPU_ReadMem(4 bytes @ 0xE0002000)
T31AC 000:205.985 FPUnit: 6 code (BP) slots and 2 literal slots
T31AC 000:206.070 CPU_ReadMem(4 bytes @ 0xE000EDFC)
T31AC 000:206.602 CPU_WriteMem(4 bytes @ 0xE000EDFC)
T31AC 000:207.197 CPU_ReadMem(4 bytes @ 0xE0001000)
T31AC 000:207.746 CPU_WriteMem(4 bytes @ 0xE0001000)
T31AC 000:208.350 CPU_ReadMem(4 bytes @ 0xE000ED88)
T31AC 000:208.899 CPU_WriteMem(4 bytes @ 0xE000ED88)
T31AC 000:209.441 CPU_ReadMem(4 bytes @ 0xE000ED88)
T31AC 000:210.019 CPU_WriteMem(4 bytes @ 0xE000ED88)
T31AC 000:214.034 CoreSight components:
T31AC 000:216.067 ROMTbl[0] @ E00FF000
T31AC 000:216.109 CPU_ReadMem(64 bytes @ 0xE00FF000)
T31AC 000:217.223 CPU_ReadMem(32 bytes @ 0xE000EFE0)
T31AC 000:220.635 ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 001BB000 SCS
T31AC 000:220.684 CPU_ReadMem(32 bytes @ 0xE0001FE0)
T31AC 000:223.566 ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 001BB002 DWT
T31AC 000:223.692 CPU_ReadMem(32 bytes @ 0xE0002FE0)
T31AC 000:226.628 ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB003 FPB
T31AC 000:226.679 CPU_ReadMem(32 bytes @ 0xE0000FE0)
T31AC 000:229.241 ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 001BB001 ITM
T31AC 000:229.286 CPU_ReadMem(32 bytes @ 0xE0040FE0)
T31AC 000:231.606 ROMTbl[0][4]: E0040000, CID: B105900D, PID: 001BB923 TPIU-Lite
T31AC 000:231.652 CPU_ReadMem(32 bytes @ 0xE0041FE0)
T31AC 000:234.068 ROMTbl[0][5]: E0041000, CID: B105900D, PID: 101BB924 ETM-M3
T31AC 000:235.045 - 192.199ms returns 0x1BA01477
T31AC 000:235.069 JLINK_GetDLLVersion()
T31AC 000:235.079 - 0.014ms returns 68600
T31AC 000:235.089 JLINK_CORE_GetFound()
T31AC 000:235.098 - 0.013ms returns 0x30000FF
T31AC 000:235.212 JLINK_GetDebugInfo(0x100 = JLINKARM_ROM_TABLE_ADDR_INDEX)
T31AC 000:235.230 Value=0xE00FF000
T31AC 000:235.244 - 0.037ms returns 0
T31AC 000:236.322 JLINK_GetDebugInfo(0x100 = JLINKARM_ROM_TABLE_ADDR_INDEX)
T31AC 000:236.337 Value=0xE00FF000
T31AC 000:236.353 - 0.035ms returns 0
T31AC 000:236.363 JLINK_GetDebugInfo(0x101 = JLINKARM_DEBUG_INFO_ETM_ADDR_INDEX)
T31AC 000:236.373 Value=0xE0041000
T31AC 000:236.387 - 0.030ms returns 0
T31AC 000:236.424 JLINK_ReadMemEx(0xE0041FD0, 0x20 Bytes, Flags = 0x02000004)
T31AC 000:236.453 CPU_ReadMem(32 bytes @ 0xE0041FD0)
T31AC 000:237.362 Data: 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...
T31AC 000:237.404 - 0.985ms returns 32 (0x20)
T31AC 000:237.420 JLINK_GetDebugInfo(0x102 = JLINKARM_DEBUG_INFO_MTB_ADDR_INDEX)
T31AC 000:237.430 Value=0x00000000
T31AC 000:237.444 - 0.028ms returns 0
T31AC 000:237.454 JLINK_GetDebugInfo(0x103 = JLINKARM_DEBUG_INFO_TPIU_ADDR_INDEX)
T31AC 000:237.463 Value=0xE0040000
T31AC 000:237.476 - 0.027ms returns 0
T31AC 000:237.486 JLINK_GetDebugInfo(0x104 = JLINKARM_DEBUG_INFO_ITM_ADDR_INDEX)
T31AC 000:237.495 Value=0xE0000000
T31AC 000:237.511 - 0.029ms returns 0
T31AC 000:237.521 JLINK_GetDebugInfo(0x105 = JLINKARM_DEBUG_INFO_DWT_ADDR_INDEX)
T31AC 000:237.530 Value=0xE0001000
T31AC 000:237.543 - 0.027ms returns 0
T31AC 000:237.553 JLINK_GetDebugInfo(0x106 = JLINKARM_DEBUG_INFO_FPB_ADDR_INDEX)
T31AC 000:237.563 Value=0xE0002000
T31AC 000:237.576 - 0.027ms returns 0
T31AC 000:237.586 JLINK_GetDebugInfo(0x107 = JLINKARM_DEBUG_INFO_NVIC_ADDR_INDEX)
T31AC 000:237.598 Value=0xE000E000
T31AC 000:237.614 - 0.034ms returns 0
T31AC 000:237.626 JLINK_GetDebugInfo(0x10C = JLINKARM_DEBUG_INFO_DBG_ADDR_INDEX)
T31AC 000:237.635 Value=0xE000EDF0
T31AC 000:237.650 - 0.028ms returns 0
T31AC 000:237.660 JLINK_GetDebugInfo(0x01 = Unknown)
T31AC 000:237.686 Value=0x00000000
T31AC 000:237.699 - 0.043ms returns 0
T31AC 000:237.709 JLINK_ReadMemU32(0xE000ED00, 0x1 Items)
T31AC 000:237.729 CPU_ReadMem(4 bytes @ 0xE000ED00)
T31AC 000:238.388 Data: 31 C2 1F 41
T31AC 000:238.411 Debug reg: CPUID
T31AC 000:238.424 - 0.719ms returns 1 (0x1)
T31AC 000:238.437 JLINK_GetDebugInfo(0x10F = JLINKARM_DEBUG_INFO_HAS_CORTEX_M_SECURITY_EXT_INDEX)
T31AC 000:238.447 Value=0x00000000
T31AC 000:238.462 - 0.029ms returns 0
T31AC 000:238.473 JLINK_HasError()
T31AC 000:238.484 JLINK_SetResetType(JLINKARM_CM3_RESET_TYPE_NORMAL)
T31AC 000:238.494 - 0.014ms returns JLINKARM_CM3_RESET_TYPE_NORMAL
T31AC 000:238.504 JLINK_Reset()
T31AC 000:238.533 CPU is running
T31AC 000:238.549 CPU_WriteMem(4 bytes @ 0xE000EDF0)
T31AC 000:239.478 CPU is running
T31AC 000:239.502 CPU_WriteMem(4 bytes @ 0xE000EDFC)
T31AC 000:241.410 Reset: Halt core after reset via DEMCR.VC_CORERESET.
T31AC 000:243.369 Reset: Reset device via AIRCR.SYSRESETREQ.
T31AC 000:243.393 CPU is running
T31AC 000:243.409 CPU_WriteMem(4 bytes @ 0xE000ED0C)
T31AC 000:297.020 CPU_ReadMem(4 bytes @ 0xE000EDF0)
T31AC 000:297.588 CPU_ReadMem(4 bytes @ 0xE
stm32 环境监测实验
需积分: 0 79 浏览量
更新于2023-12-01
收藏 6.59MB ZIP 举报
STM32是一款基于ARM Cortex-M内核的微控制器,广泛应用于各种嵌入式系统,包括环境监测这样的项目。在这个实验中,STM32将与多种传感器配合,如DHT11(温湿度传感器)、HC-SR04(超声波测距传感器)、电机控制以及OLED显示屏和SR60(可能是指SR04类似的超声波传感器或其它光学传感器)。让我们详细探讨这些知识点:
1. STM32基础:STM32是意法半导体(STMicroelectronics)推出的一系列高性能、低功耗的微控制器,它具有丰富的外设接口,如GPIO、ADC、SPI、I2C、UART等,适合于复杂的嵌入式系统设计。
2. DHT11温湿度传感器:DHT11是一种一体化的数字温湿度传感器,通过单总线(One-Wire)通信协议与MCU交互。它能提供温度和湿度的准确测量,适用于室内环境监测。
3. HC-SR04超声波测距传感器:HC-SR04使用超声波脉冲测距原理,通过发射和接收超声波的时间差来计算距离。在环境监测中,它可以用于检测空气中的颗粒物或障碍物距离。
4. 电机控制:STM32通常通过PWM(脉宽调制)信号来驱动电机,可以实现电机的速度和方向控制。在环境监测实验中,电机可能用于驱动风扇或其他设备,以改变环境条件。
5. OLED显示屏:OLED(有机发光二极管)显示屏是一种高效能、低功耗的显示设备,适用于嵌入式系统的用户界面。通过I2C或SPI接口与STM32相连,可以实时显示环境参数。
6. SR60传感器:由于SR60的具体信息不详,我们可以假设它类似HC-SR04,用于环境的另一维度检测,比如声音、光强度或更精确的距离测量。
7. MDK-ARM:MDK-ARM是Keil公司开发的嵌入式软件开发工具套件,包含编译器、调试器和IDE,支持STM32等ARM架构的微控制器编程。
8. Libraries和USER目录:在压缩包中,"Libraries"可能包含了STM32的HAL库和其他必要的库文件,如用于传感器的驱动库;"USER"目录则可能包含了用户编写的应用程序代码,实现了STM32与各个传感器的交互和数据显示。
9. 实验步骤:实验可能包括配置STM32开发环境、烧录固件、连接传感器、编写读取和解析传感器数据的代码,以及在OLED屏幕上显示结果等步骤。
通过这个实验,学习者将深入理解STM32的硬件接口和编程,同时掌握如何与多种传感器进行通信和数据处理,对于提升嵌入式系统的实践技能非常有帮助。
lisalovers
- 粉丝: 0
- 资源: 1