feat: add VCU status feedback and map DEBUG safety inputs

This commit is contained in:
shenlefengnai-rgb
2026-10-03 21:52:14 +08:00
parent dbbda5624a
commit 1e7b2e7f96
305 changed files with 32906 additions and 68 deletions
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 00178CE8 00000000
0x200002DC : 00000000 00010000 000007D0 00010001
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 00178CE8
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010200 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017900B 00000000
0x200002DC : 00000000 00010000 000007D1 00000001
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017900B
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017CD53 00000000
0x200002DC : 00000000 00010000 000007E4 04000400
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017CD53
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 02010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017D089 00000000
0x200002DC : 00000000 00010000 000007E5 00000400
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017D089
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017D3BF 00000000
0x200002DC : 00000000 00010000 000007E6 08000800
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017D3BF
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010102 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017D6F7 00000000
0x200002DC : 00000000 00010000 000007E7 00000800
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017D6F7
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017DA29 00000000
0x200002DC : 00000000 00010000 000007E8 10001000
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017DA29
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010201 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017DD5E 00000000
0x200002DC : 00000000 00010000 000007E9 00001000
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017DD5E
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017E094 00000000
0x200002DC : 00000000 00010000 000007EA 20002000
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017E094
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01020101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017E3C9 00000000
0x200002DC : 00000000 00010000 000007EB 00002000
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017E3C9
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017E6F9 00000000
0x200002DC : 00000000 00010000 000007EC 40004000
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017E6F9
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 02010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017EA35 00000000
0x200002DC : 00000000 00010000 000007ED 00004000
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017EA35
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 00179392 00000000
0x200002DC : 00000000 00010000 000007D2 00020002
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 00179392
0x2000030C : 00000000 F8003FFF 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01020101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 001796B9 00000000
0x200002DC : 00000000 00010000 000007D3 00000002
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 001796B9
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 001799EA 00000000
0x200002DC : 00000000 00010000 000007D4 00040004
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 001799EA
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 02010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 00179D26 00000000
0x200002DC : 00000000 00010000 000007D5 00000004
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 00179D26
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017A05E 00000000
0x200002DC : 00000000 00010000 000007D6 00080008
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017A05E
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 02010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017A39A 00000000
0x200002DC : 00000000 00010000 000007D7 00000008
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017A39A
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017A6D0 00000000
0x200002DC : 00000000 00010000 000007D8 00100010
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017A6D0
0x2000030C : 00000000 FE00FFFF 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010102 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017AA06 00000000
0x200002DC : 00000000 00010000 000007D9 00000010
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017AA06
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017AD48 00000000
0x200002DC : 00000000 00010000 000007DA 00200020
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017AD48
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01020100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017B07C 00000000
0x200002DC : 00000000 00010000 000007DB 00000020
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017B07C
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017B3B3 00000000
0x200002DC : 00000000 00010000 000007DC 00400040
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017B3B3
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010102
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017B6EC 00000000
0x200002DC : 00000000 00010000 000007DD 00000040
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017B6EC
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017BA1B 00000000
0x200002DC : 00000000 00010000 000007DE 00800080
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017BA1B
0x2000030C : 00000000 FFFFDFFF 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010201
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017BD4F 00000000
0x200002DC : 00000000 00010000 000007DF 00000080
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017BD4F
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017C085 00000000
0x200002DC : 00000000 00010000 000007E0 01000100
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017C085
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010201 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017C3B6 00000000
0x200002DC : 00000000 00010000 000007E1 00000100
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017C3B6
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017C6ED 00000000
0x200002DC : 00000000 00010000 000007E2 02000200
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017C6ED
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01020101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017CA23 00000000
0x200002DC : 00000000 00010000 000007E3 00000200
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017CA23
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017ED65 00000000
0x200002DC : 00000000 00010000 00000FA0 7FFF7FFF
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017ED65
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 02020200 02020202
0x2000033C : 02020202 02020202 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 001789C5 00000000
0x200002DC : 00000000 00010000 000003E8 00007FFF
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 001789C5
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,9 @@
总可用内存:524288␍
全局内存占用:2496␍
图片总大小:12,781␍
字库总大小:5,255,658␍
页面:dash 占用内存:2496+2224=4720␍
页面:debug 占用内存:2496+288=2784␍
页面:CONFIRM 占用内存:2496+608=3104␍
File Check Finish␍
编译成功! 0个错误, 0个警告,文件大小:6,238,816␍
@@ -0,0 +1,17 @@
{
"result": "passed",
"messages": 11,
"signals": 40,
"known_payload_checks": 28,
"all_task_ids_and_counter_edges": true,
"ports_bitrate": {
"CAN1": 500000,
"CAN2": 250000
},
"both_dbc_layouts_and_payloads_match": true,
"firmware_and_ioc_bit_timing_match": true,
"firmware_ids_match": true,
"sdc_source_layout_match": true,
"display_sender_known_bytes_and_argument_rejection": true,
"cantools_version": "44.1.0"
}
@@ -0,0 +1,316 @@
xstr 8,2,160,24,0,2047,0,1,1,1,"DEBUG 安全回路"␍
xstr 170,2,235,24,0,33840,0,1,1,1,"灰未知 绿正常 红故障"␍
draw 8,34,111,79,10565␍
xstr 9,36,102,18,0,65535,0,1,1,1,"配电箱"␍
draw 128,34,231,79,10565␍
xstr 129,36,102,18,0,65535,0,1,1,1,"左电机互锁"␍
draw 248,34,351,79,10565␍
xstr 249,36,102,18,0,65535,0,1,1,1,"左急停"␍
draw 368,34,471,79,10565␍
xstr 369,36,102,18,0,65535,0,1,1,1,"电池箱"␍
draw 128,84,231,129,10565␍
xstr 129,86,102,18,0,65535,0,1,1,1,"回路末端"␍
draw 248,84,351,129,10565␍
xstr 249,86,102,18,0,65535,0,1,1,1,"驾舱/右急停"␍
draw 368,84,471,129,10565␍
xstr 369,86,102,18,0,65535,0,1,1,1,"行程/惯性"␍
line 112,56,128,56,2047␍
line 124,53,128,56,2047␍
line 124,59,128,56,2047␍
line 232,56,248,56,2047␍
line 244,53,248,56,2047␍
line 244,59,248,56,2047␍
line 352,56,368,56,2047␍
line 364,53,368,56,2047␍
line 364,59,368,56,2047␍
line 472,56,478,56,2047␍
line 478,56,478,106,2047␍
line 478,106,472,106,2047␍
line 352,106,368,106,2047␍
line 356,103,352,106,2047␍
line 356,109,352,106,2047␍
line 232,106,248,106,2047␍
line 236,103,232,106,2047␍
line 236,109,232,106,2047␍
draw 8,137,231,182,10565␍
xstr 9,139,222,19,0,50712,0,1,1,1,"RES"␍
draw 248,137,471,182,10565␍
xstr 249,139,222,19,0,50712,0,1,1,1,"主控盒"␍
draw 8,188,111,229,10565␍
xstr 9,190,102,19,0,2047,0,1,1,1,"EBS 舵机"␍
draw 128,188,231,229,10565␍
xstr 129,190,102,19,0,2047,0,1,1,1,"EBS 电磁阀"␍
draw 248,188,351,229,10565␍
xstr 249,190,102,19,0,2047,0,1,1,1,"EBS 气压"␍
draw 368,188,471,229,10565␍
xstr 369,190,102,19,0,2047,0,1,1,1,"EBS 油压"␍
draw 8,232,111,271,10565␍
xstr 9,234,102,19,0,2047,0,1,1,1,"无人驾驶惯导"␍
draw 128,232,231,271,10565␍
xstr 129,234,102,19,0,2047,0,1,1,1,"无人驾驶轮速"␍
draw 248,232,351,271,10565␍
xstr 249,234,102,19,0,2047,0,1,1,1,"无人驾驶相机"␍
draw 368,232,471,271,10565␍
xstr 369,234,102,19,0,2047,0,1,1,1,"主控盒12V"␍
if(d0==1)␍
{␍
t0.txt="正常"␍
t0.pco=2016␍
}else␍
{␍
if(d0==2)␍
{␍
t0.txt="故障"␍
t0.pco=63488␍
}else␍
{␍
t0.txt="未知"␍
t0.pco=33840␍
}␍
}␍
if(d1==1)␍
{␍
t1.txt="正常"␍
t1.pco=2016␍
t3.txt="正常"␍
t3.pco=2016␍
}else␍
{␍
if(d1==2)␍
{␍
t1.txt="故障"␍
t1.pco=63488␍
t3.txt="故障"␍
t3.pco=63488␍
}else␍
{␍
t1.txt="未知"␍
t1.pco=33840␍
t3.txt="未知"␍
t3.pco=33840␍
}␍
}␍
if(d2==1)␍
{␍
t2.txt="正常"␍
t2.pco=2016␍
}else␍
{␍
if(d2==2)␍
{␍
t2.txt="故障"␍
t2.pco=63488␍
}else␍
{␍
t2.txt="未知"␍
t2.pco=33840␍
}␍
}␍
if(d3==1)␍
{␍
t4.txt="正常"␍
t4.pco=2016␍
}else␍
{␍
if(d3==2)␍
{␍
t4.txt="故障"␍
t4.pco=63488␍
}else␍
{␍
t4.txt="未知"␍
t4.pco=33840␍
}␍
}␍
if(d4==1)␍
{␍
t5.txt="正常"␍
t5.pco=2016␍
}else␍
{␍
if(d4==2)␍
{␍
t5.txt="故障"␍
t5.pco=63488␍
}else␍
{␍
t5.txt="未知"␍
t5.pco=33840␍
}␍
}␍
if(d5==1)␍
{␍
t6.txt="正常"␍
t6.pco=2016␍
}else␍
{␍
if(d5==2)␍
{␍
t6.txt="故障"␍
t6.pco=63488␍
}else␍
{␍
t6.txt="未知"␍
t6.pco=33840␍
}␍
}␍
if(d6==1)␍
{␍
t7.txt="正常"␍
t7.pco=2016␍
}else␍
{␍
if(d6==2)␍
{␍
t7.txt="故障"␍
t7.pco=63488␍
}else␍
{␍
t7.txt="未知"␍
t7.pco=33840␍
}␍
}␍
if(d7==1)␍
{␍
t8.txt="正常"␍
t8.pco=2016␍
}else␍
{␍
if(d7==2)␍
{␍
t8.txt="故障"␍
t8.pco=63488␍
}else␍
{␍
t8.txt="未知"␍
t8.pco=33840␍
}␍
}␍
if(d8==1)␍
{␍
t9.txt="正常"␍
t9.pco=2016␍
}else␍
{␍
if(d8==2)␍
{␍
t9.txt="故障"␍
t9.pco=63488␍
}else␍
{␍
t9.txt="未知"␍
t9.pco=33840␍
}␍
}␍
if(d9==1)␍
{␍
t10.txt="正常"␍
t10.pco=2016␍
}else␍
{␍
if(d9==2)␍
{␍
t10.txt="故障"␍
t10.pco=63488␍
}else␍
{␍
t10.txt="未知"␍
t10.pco=33840␍
}␍
}␍
if(d10==1)␍
{␍
t11.txt="正常"␍
t11.pco=2016␍
}else␍
{␍
if(d10==2)␍
{␍
t11.txt="故障"␍
t11.pco=63488␍
}else␍
{␍
t11.txt="未知"␍
t11.pco=33840␍
}␍
}␍
if(d11==1)␍
{␍
t12.txt="正常"␍
t12.pco=2016␍
}else␍
{␍
if(d11==2)␍
{␍
t12.txt="故障"␍
t12.pco=63488␍
}else␍
{␍
t12.txt="未知"␍
t12.pco=33840␍
}␍
}␍
if(d12==1)␍
{␍
t13.txt="正常"␍
t13.pco=2016␍
}else␍
{␍
if(d12==2)␍
{␍
t13.txt="故障"␍
t13.pco=63488␍
}else␍
{␍
t13.txt="未知"␍
t13.pco=33840␍
}␍
}␍
if(d13==1)␍
{␍
t14.txt="正常"␍
t14.pco=2016␍
}else␍
{␍
if(d13==2)␍
{␍
t14.txt="故障"␍
t14.pco=63488␍
}else␍
{␍
t14.txt="未知"␍
t14.pco=33840␍
}␍
}␍
if(d14==1)␍
{␍
t15.txt="正常"␍
t15.pco=2016␍
}else␍
{␍
if(d14==2)␍
{␍
t15.txt="故障"␍
t15.pco=63488␍
}else␍
{␍
t15.txt="未知"␍
t15.pco=33840␍
}␍
}␍
if(d15==1)␍
{␍
t16.txt="正常"␍
t16.pco=2016␍
}else␍
{␍
if(d15==2)␍
{␍
t16.txt="故障"␍
t16.pco=63488␍
}else␍
{␍
t16.txt="未知"␍
t16.pco=33840␍
}␍
}␍
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 001808AD 00000000
0x200002DC : 00000000 00010000 00001F40 00007FFF
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 001808AD
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 00000000 00000000
0x2000033C : 00000000 00000000 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 00180844 00000000
0x200002DC : 00000000 00010000 00001F40 00007FFF
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 00180844
0x2000030C : 00000000 FF7FFFFF 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010100 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 00180521 00000000
0x200002DC : 00000000 00010000 00001388 00010002
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 00180521
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 00000000 00000000
0x2000033C : 00000000 00000000 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 00178690 00000000
0x200002DC : 00000000 00010000 00001F40 00007FFF
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 00178690
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 00000000 00000000
0x2000033C : 00000000 00000000 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017FC80 00000000
0x200002DC : 00000000 00010000 00001388 00010002
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017FC80
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010200 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,10 @@
import json, re, subprocess
from pathlib import Path
R=Path(__file__).resolve().parent
S=json.loads((R/'symbols.json').read_text())
CLI=r'D:\STM32CubeCLT_1.19.0\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe'
for n,size in [('screen_tx_busy',4),('display_dirty',4),('huart2',128),('hdma_usart2_tx',96),('screen_tx_dma',32),('uwTick',4)]:
a=S[n]&~3
p=subprocess.run([CLI,'-c','port=SWD','mode=HOTPLUG','freq=1000','-r32',hex(a),str(size)],capture_output=True,timeout=15)
(R/f'uart-{n}.log').write_bytes(p.stdout+p.stderr)
print(n,hex(S[n]),'\n'.join(x for x in p.stdout.decode(errors='replace').splitlines() if re.match(r'0x[0-9a-fA-F]+\s*:',x)),flush=True)
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,316 @@
xstr 8,2,160,24,0,2047,0,1,1,1,"DEBUG 安全回路"␍
xstr 170,2,235,24,0,33840,0,1,1,1,"灰未知 绿正常 红故障"␍
draw 8,34,111,79,10565␍
xstr 9,36,102,18,0,65535,0,1,1,1,"配电箱"␍
draw 128,34,231,79,10565␍
xstr 129,36,102,18,0,65535,0,1,1,1,"左电机互锁"␍
draw 248,34,351,79,10565␍
xstr 249,36,102,18,0,65535,0,1,1,1,"左急停"␍
draw 368,34,471,79,10565␍
xstr 369,36,102,18,0,65535,0,1,1,1,"电池箱"␍
draw 128,84,231,129,10565␍
xstr 129,86,102,18,0,65535,0,1,1,1,"回路末端"␍
draw 248,84,351,129,10565␍
xstr 249,86,102,18,0,65535,0,1,1,1,"驾舱/右急停"␍
draw 368,84,471,129,10565␍
xstr 369,86,102,18,0,65535,0,1,1,1,"行程/惯性"␍
line 112,56,128,56,2047␍
line 124,53,128,56,2047␍
line 124,59,128,56,2047␍
line 232,56,248,56,2047␍
line 244,53,248,56,2047␍
line 244,59,248,56,2047␍
line 352,56,368,56,2047␍
line 364,53,368,56,2047␍
line 364,59,368,56,2047␍
line 472,56,478,56,2047␍
line 478,56,478,106,2047␍
line 478,106,472,106,2047␍
line 352,106,368,106,2047␍
line 356,103,352,106,2047␍
line 356,109,352,106,2047␍
line 232,106,248,106,2047␍
line 236,103,232,106,2047␍
line 236,109,232,106,2047␍
draw 8,137,231,182,10565␍
xstr 9,139,222,19,0,50712,0,1,1,1,"RES"␍
draw 248,137,471,182,10565␍
xstr 249,139,222,19,0,50712,0,1,1,1,"主控盒"␍
draw 8,188,111,229,10565␍
xstr 9,190,102,19,0,2047,0,1,1,1,"EBS 舵机"␍
draw 128,188,231,229,10565␍
xstr 129,190,102,19,0,2047,0,1,1,1,"EBS 电磁阀"␍
draw 248,188,351,229,10565␍
xstr 249,190,102,19,0,2047,0,1,1,1,"EBS 气压"␍
draw 368,188,471,229,10565␍
xstr 369,190,102,19,0,2047,0,1,1,1,"EBS 油压"␍
draw 8,232,111,271,10565␍
xstr 9,234,102,19,0,2047,0,1,1,1,"无人驾驶惯导"␍
draw 128,232,231,271,10565␍
xstr 129,234,102,19,0,2047,0,1,1,1,"无人驾驶轮速"␍
draw 248,232,351,271,10565␍
xstr 249,234,102,19,0,2047,0,1,1,1,"无人驾驶相机"␍
draw 368,232,471,271,10565␍
xstr 369,234,102,19,0,2047,0,1,1,1,"主控盒12V"␍
if(d0==1)␍
{␍
t0.txt="正常"␍
t0.pco=2016␍
}else␍
{␍
if(d0==2)␍
{␍
t0.txt="故障"␍
t0.pco=63488␍
}else␍
{␍
t0.txt="未知"␍
t0.pco=33840␍
}␍
}␍
if(d1==1)␍
{␍
t1.txt="正常"␍
t1.pco=2016␍
t3.txt="正常"␍
t3.pco=2016␍
}else␍
{␍
if(d1==2)␍
{␍
t1.txt="故障"␍
t1.pco=63488␍
t3.txt="故障"␍
t3.pco=63488␍
}else␍
{␍
t1.txt="未知"␍
t1.pco=33840␍
t3.txt="未知"␍
t3.pco=33840␍
}␍
}␍
if(d2==1)␍
{␍
t2.txt="正常"␍
t2.pco=2016␍
}else␍
{␍
if(d2==2)␍
{␍
t2.txt="故障"␍
t2.pco=63488␍
}else␍
{␍
t2.txt="未知"␍
t2.pco=33840␍
}␍
}␍
if(d3==1)␍
{␍
t4.txt="正常"␍
t4.pco=2016␍
}else␍
{␍
if(d3==2)␍
{␍
t4.txt="故障"␍
t4.pco=63488␍
}else␍
{␍
t4.txt="未知"␍
t4.pco=33840␍
}␍
}␍
if(d4==1)␍
{␍
t5.txt="正常"␍
t5.pco=2016␍
}else␍
{␍
if(d4==2)␍
{␍
t5.txt="故障"␍
t5.pco=63488␍
}else␍
{␍
t5.txt="未知"␍
t5.pco=33840␍
}␍
}␍
if(d5==1)␍
{␍
t6.txt="正常"␍
t6.pco=2016␍
}else␍
{␍
if(d5==2)␍
{␍
t6.txt="故障"␍
t6.pco=63488␍
}else␍
{␍
t6.txt="未知"␍
t6.pco=33840␍
}␍
}␍
if(d6==1)␍
{␍
t7.txt="正常"␍
t7.pco=2016␍
}else␍
{␍
if(d6==2)␍
{␍
t7.txt="故障"␍
t7.pco=63488␍
}else␍
{␍
t7.txt="未知"␍
t7.pco=33840␍
}␍
}␍
if(d7==1)␍
{␍
t8.txt="正常"␍
t8.pco=2016␍
}else␍
{␍
if(d7==2)␍
{␍
t8.txt="故障"␍
t8.pco=63488␍
}else␍
{␍
t8.txt="未知"␍
t8.pco=33840␍
}␍
}␍
if(d8==1)␍
{␍
t9.txt="正常"␍
t9.pco=2016␍
}else␍
{␍
if(d8==2)␍
{␍
t9.txt="故障"␍
t9.pco=63488␍
}else␍
{␍
t9.txt="未知"␍
t9.pco=33840␍
}␍
}␍
if(d9==1)␍
{␍
t10.txt="正常"␍
t10.pco=2016␍
}else␍
{␍
if(d9==2)␍
{␍
t10.txt="故障"␍
t10.pco=63488␍
}else␍
{␍
t10.txt="未知"␍
t10.pco=33840␍
}␍
}␍
if(d10==1)␍
{␍
t11.txt="正常"␍
t11.pco=2016␍
}else␍
{␍
if(d10==2)␍
{␍
t11.txt="故障"␍
t11.pco=63488␍
}else␍
{␍
t11.txt="未知"␍
t11.pco=33840␍
}␍
}␍
if(d11==1)␍
{␍
t12.txt="正常"␍
t12.pco=2016␍
}else␍
{␍
if(d11==2)␍
{␍
t12.txt="故障"␍
t12.pco=63488␍
}else␍
{␍
t12.txt="未知"␍
t12.pco=33840␍
}␍
}␍
if(d12==1)␍
{␍
t13.txt="正常"␍
t13.pco=2016␍
}else␍
{␍
if(d12==2)␍
{␍
t13.txt="故障"␍
t13.pco=63488␍
}else␍
{␍
t13.txt="未知"␍
t13.pco=33840␍
}␍
}␍
if(d13==1)␍
{␍
t14.txt="正常"␍
t14.pco=2016␍
}else␍
{␍
if(d13==2)␍
{␍
t14.txt="故障"␍
t14.pco=63488␍
}else␍
{␍
t14.txt="未知"␍
t14.pco=33840␍
}␍
}␍
if(d14==1)␍
{␍
t15.txt="正常"␍
t15.pco=2016␍
}else␍
{␍
if(d14==2)␍
{␍
t15.txt="故障"␍
t15.pco=63488␍
}else␍
{␍
t15.txt="未知"␍
t15.pco=33840␍
}␍
}␍
if(d15==1)␍
{␍
t16.txt="正常"␍
t16.pco=2016␍
}else␍
{␍
if(d15==2)␍
{␍
t16.txt="故障"␍
t16.pco=63488␍
}else␍
{␍
t16.txt="未知"␍
t16.pco=33840␍
}␍
}␍
@@ -0,0 +1,7 @@
{
"project": "D:\\YMR\\AMI\\AMI.HMI",
"sha256": "4BED317A2CBE3CCE523E3C7E220C9820AB498D409EF5348400E3EA2835B5FEF8",
"reopened_postinit_matches": true,
"PD1_debug_state": "d5",
"status_component": "t6"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

@@ -0,0 +1,304 @@
{
"scope": "Keyboard input simulation, not physical CAN/UART display proof",
"checks": [
{
"name": "initial_unknown",
"states": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_initial_unknown.png",
"passed": true
},
{
"name": "left_motor_interlock_1",
"states": [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_left_motor_interlock_1.png",
"passed": true
},
{
"name": "left_motor_interlock_2",
"states": [
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_left_motor_interlock_2.png",
"passed": true
},
{
"name": "left_motor_interlock_0",
"states": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_left_motor_interlock_0.png",
"passed": true
},
{
"name": "RES_1",
"states": [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_RES_1.png",
"passed": true
},
{
"name": "RES_2",
"states": [
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_RES_2.png",
"passed": true
},
{
"name": "RES_0",
"states": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_RES_0.png",
"passed": true
},
{
"name": "control_box_1",
"states": [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_control_box_1.png",
"passed": true
},
{
"name": "control_box_2",
"states": [
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_control_box_2.png",
"passed": true
},
{
"name": "control_box_0",
"states": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_control_box_0.png",
"passed": true
},
{
"name": "all_normal",
"states": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
],
"screenshot": "sim_all_normal.png",
"passed": true
},
{
"name": "all_fault",
"states": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
0
],
"screenshot": "sim_all_fault.png",
"passed": true
},
{
"name": "final_unknown",
"states": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"screenshot": "sim_final_unknown.png",
"passed": true
}
]
}
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017FCE4 00000000
0x200002DC : 00000000 00010000 00001388 00010002
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017FCE4
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 00000000 00000000
0x2000033C : 00000000 00000000 00000000 1C6D559A
@@ -0,0 +1,232 @@
{
"_Min_Heap_Size": 512,
"_Min_Stack_Size": 1280,
"g_pfnVectors": 134217728,
"__do_global_dtors_aux": 134217916,
"frame_dummy": 134217956,
"__gnu_thumb1_case_sqi": 134217988,
"__gnu_thumb1_case_uqi": 134218008,
"__aeabi_uidiv": 134218028,
"__udivsi3": 134218028,
"__aeabi_uidivmod": 134218296,
"__aeabi_idiv": 134218304,
"__divsi3": 134218304,
"__aeabi_idivmod": 134218764,
"__aeabi_idiv0": 134218772,
"__aeabi_ldiv0": 134218772,
"__aeabi_uldivmod": 134218776,
"__udivmoddi4": 134218840,
"__clzdi2": 134219248,
"__clzsi2": 134219272,
"strlen": 134219332,
"SystemInit": 134219346,
"HAL_FDCAN_Init": 134219348,
"HAL_FDCAN_ConfigFilter": 134219888,
"HAL_FDCAN_ConfigGlobalFilter": 134219970,
"HAL_FDCAN_Start": 134220026,
"HAL_FDCAN_AddMessageToTxFifoQ": 134220072,
"HAL_FDCAN_GetRxMessage": 134220272,
"HAL_FDCAN_GetRxFifoFillLevel": 134220556,
"HAL_FDCAN_GetTxFifoFreeLevel": 134220576,
"HAL_FDCAN_ActivateNotification": 134220588,
"HAL_FDCAN_TxEventFifoCallback": 134220836,
"HAL_FDCAN_RxFifo1Callback": 134220838,
"HAL_FDCAN_TxFifoEmptyCallback": 134220840,
"HAL_FDCAN_TxBufferCompleteCallback": 134220842,
"HAL_FDCAN_TxBufferAbortCallback": 134220844,
"HAL_FDCAN_TimestampWraparoundCallback": 134220846,
"HAL_FDCAN_TimeoutOccurredCallback": 134220848,
"HAL_FDCAN_HighPriorityMessageCallback": 134220850,
"HAL_FDCAN_ErrorStatusCallback": 134220852,
"HAL_FDCAN_IRQHandler": 134220854,
"HAL_RCC_OscConfig": 134221212,
"HAL_RCC_GetSysClockFreq": 134222404,
"HAL_RCC_ClockConfig": 134222540,
"HAL_RCC_GetPCLK1Freq": 134222880,
"HAL_RCCEx_PeriphCLKConfig": 134222920,
"HAL_GPIO_Init": 134223596,
"HAL_GPIO_WritePin": 134223964,
"HAL_GPIO_TogglePin": 134223976,
"DMA_SetConfig": 134223992,
"DMA_CalcDMAMUXChannelBaseAndMask": 134224048,
"HAL_DMA_Init": 134224124,
"HAL_DMA_Start_IT": 134224344,
"HAL_DMA_Abort": 134224488,
"HAL_DMA_Abort_IT": 134224596,
"HAL_DMA_IRQHandler": 134224704,
"HAL_DMA_GetError": 134224880,
"HAL_PWREx_ControlVoltageScaling": 134224884,
"HAL_NVIC_SetPriority": 134224972,
"HAL_NVIC_EnableIRQ": 134225056,
"HAL_SYSTICK_Config": 134225080,
"HAL_InitTick": 134225132,
"HAL_Init": 134225212,
"HAL_IncTick": 134225252,
"HAL_GetTick": 134225276,
"HAL_SYSCFG_StrobeDBattpinsConfig": 134225288,
"UART_EndTxTransfer": 134225312,
"UART_EndRxTransfer": 134225372,
"HAL_UART_Transmit_DMA": 134225472,
"HAL_UART_AbortReceive": 134225636,
"UART_DMATransmitCplt": 134225828,
"HAL_UART_TxHalfCpltCallback": 134225908,
"UART_DMATxHalfCplt": 134225910,
"HAL_UART_RxCpltCallback": 134225920,
"HAL_UART_RxHalfCpltCallback": 134225922,
"UART_DMAError": 134225924,
"UART_DMAAbortOnError": 134226008,
"HAL_UART_IRQHandler": 134226032,
"UART_DMARxHalfCplt": 134226860,
"UART_DMAReceiveCplt": 134226896,
"UART_SetConfig": 134227056,
"UART_AdvFeatureConfig": 134227708,
"UART_WaitOnFlagUntilTimeout": 134227916,
"UART_CheckIdleState": 134228064,
"HAL_UART_Init": 134228264,
"UART_Start_Receive_DMA": 134228368,
"UARTEx_SetNbDataToProcess": 134228540,
"HAL_UARTEx_WakeupCallback": 134228620,
"HAL_UARTEx_RxFifoFullCallback": 134228622,
"HAL_UARTEx_TxFifoEmptyCallback": 134228624,
"HAL_UARTEx_DisableFifoMode": 134228628,
"HAL_UARTEx_SetTxFifoThreshold": 134228688,
"HAL_UARTEx_SetRxFifoThreshold": 134228752,
"HAL_UARTEx_ReceiveToIdle_DMA": 134228820,
"SystemClock_Config": 134228920,
"main": 134229042,
"Error_Handler": 134229084,
"MX_GPIO_Init": 134229088,
"MX_DMA_Init": 134229180,
"MX_FDCAN1_Init": 134229240,
"MX_FDCAN2_Init": 134229316,
"HAL_FDCAN_MspInit": 134229392,
"MX_USART2_UART_Init": 134229676,
"HAL_UART_MspInit": 134229784,
"NMI_Handler": 134230044,
"HardFault_Handler": 134230046,
"SVC_Handler": 134230048,
"PendSV_Handler": 134230050,
"SysTick_Handler": 134230052,
"DMA1_Channel1_IRQHandler": 134230060,
"DMA1_Channel2_3_IRQHandler": 134230076,
"TIM16_FDCAN_IT0_IRQHandler": 134230092,
"TIM17_FDCAN_IT1_IRQHandler": 134230116,
"USART2_LPUART2_IRQHandler": 134230124,
"HAL_MspInit": 134230140,
"Reset_Handler": 134230216,
"CopyDataInit": 134230234,
"LoopCopyDataInit": 134230240,
"FillZerobss": 134230254,
"LoopFillZerobss": 134230258,
"LoopForever": 134230270,
"ADC1_COMP_IRQHandler": 134230296,
"CEC_IRQHandler": 134230296,
"Default_Handler": 134230296,
"DMA1_Ch4_7_DMA2_Ch1_5_DMAMUX1_OVR_IRQHandler": 134230296,
"EXTI0_1_IRQHandler": 134230296,
"EXTI2_3_IRQHandler": 134230296,
"EXTI4_15_IRQHandler": 134230296,
"FLASH_IRQHandler": 134230296,
"I2C1_IRQHandler": 134230296,
"I2C2_3_IRQHandler": 134230296,
"Infinite_Loop": 134230296,
"PVD_VDDIO2_IRQHandler": 134230296,
"RCC_CRS_IRQHandler": 134230296,
"RTC_TAMP_IRQHandler": 134230296,
"SPI1_IRQHandler": 134230296,
"SPI2_3_IRQHandler": 134230296,
"TIM1_BRK_UP_TRG_COM_IRQHandler": 134230296,
"TIM1_CC_IRQHandler": 134230296,
"TIM14_IRQHandler": 134230296,
"TIM15_IRQHandler": 134230296,
"TIM2_IRQHandler": 134230296,
"TIM3_TIM4_IRQHandler": 134230296,
"TIM6_DAC_LPTIM1_IRQHandler": 134230296,
"TIM7_LPTIM2_IRQHandler": 134230296,
"USART1_IRQHandler": 134230296,
"USART3_4_5_6_LPUART1_IRQHandler": 134230296,
"USB_UCPD1_2_IRQHandler": 134230296,
"WWDG_IRQHandler": 134230296,
"RoundTenths": 134230298,
"ReadLeS16": 134230320,
"ConfigureCanPort": 134230344,
"SetDashValid": 134230532,
"SetDashValue": 134230592,
"RestartScreenRx": 134230644,
"AMI_App_Init": 134230700,
"AMI_App_Service": 134230856,
"HAL_FDCAN_RxFifo0Callback": 134232028,
"HAL_FDCAN_ErrorCallback": 134232816,
"HAL_UARTEx_RxEventCallback": 134232832,
"HAL_UART_TxCpltCallback": 134233028,
"HAL_UART_ErrorCallback": 134233052,
"memset": 134233088,
"__libc_init_array": 134233104,
"memcpy": 134233176,
"__EH_FRAME_BEGIN__": 134233196,
"_init": 134233196,
"_fini": 134233208,
"_etext": 134233220,
"APBPrescTable": 134233220,
"AHBPrescTable": 134233252,
"DLCtoBytes": 134233316,
"UARTPrescTable": 134233332,
"__exidx_start": 134233688,
"__exidx_end": 134233696,
"__frame_dummy_init_array_entry": 134233696,
"__init_array_start": 134233696,
"__preinit_array_end": 134233696,
"__preinit_array_start": 134233696,
"__do_global_dtors_aux_fini_array_entry": 134233700,
"__init_array_end": 134233700,
"_sidata": 134233704,
"_sdata": 536870912,
"SystemCoreClock": 536870912,
"uwTickFreq": 536870916,
"uwTickPrio": 536870920,
"__bss_start__": 536870924,
"_edata": 536870924,
"_sbss": 536870924,
"uwTick": 536870952,
"HAL_RCC_FDCAN_CLK_ENABLED": 536870956,
"hfdcan2": 536870960,
"hfdcan1": 536871060,
"hdma_usart2_rx": 536871160,
"hdma_usart2_tx": 536871256,
"huart2": 536871352,
"task_drop_count": 536871516,
"task_target_mask": 536871520,
"task_tx_mask": 536871521,
"task_sequence": 536871522,
"task_tail": 536871523,
"task_head": 536871524,
"task_queue": 536871525,
"parser_task_id": 536871529,
"parser_pos": 536871530,
"screen_tx_busy": 536871531,
"screen_tx_dma": 536871532,
"screen_rx_dma": 536871564,
"uart_rx_error_count": 536871628,
"can_rx_error_count": 536871632,
"can_port_last_rx_ms": 536871636,
"bms_current_tenths": 536871644,
"bms_voltage_tenths": 536871648,
"sdc_gpio_received": 536871650,
"sdc_gpio_timestamp_ms": 536871652,
"sdc_gpio_changed": 536871656,
"sdc_gpio_state": 536871658,
"sdc_frequency_hz": 536871660,
"sdc_adc_mv": 536871668,
"drivetrain_last_rx_ms": 536871672,
"bms_temperature_last_rx_ms": 536871676,
"bms_status_last_rx_ms": 536871680,
"adc_last_rx_ms": 536871684,
"debug_last_rx_ms": 536871688,
"dash_last_rx_ms": 536871692,
"display_dirty": 536871696,
"display_state": 536871700,
"__bss_end__": 536871752,
"_ebss": 536871752,
"_end": 536871752,
"_estack": 537018368
}
@@ -0,0 +1,116 @@
import json, os, re, struct, subprocess, threading, time
from pathlib import Path
import numpy as np
import pyautogui
from pywinauto import Desktop
ROOT=Path(__file__).resolve().parent
PROJECT=ROOT.parents[1]
DLL=PROJECT/'tmp/can1-test-20261002/pcan-basic/x64'
os.environ['PATH']=str(DLL)+os.pathsep+os.environ['PATH']
handle=os.add_dll_directory(str(DLL))
import can
CLI=r'D:\STM32CubeCLT_1.19.0\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe'
NM=r'D:\STM32CubeCLT_1.19.0\GNU-tools-for-STM32\bin\arm-none-eabi-nm.exe'
nm=subprocess.check_output([NM,'-n',str(PROJECT/'firmware/build/Release/AMI_Controller.elf')]).decode().replace('\r','')
symbols={n:int(a,16) for a,k,n in re.findall(r'^(\w+)\s+(\w)\s+(\w+)$',nm,re.M)}
(ROOT/'symbols.json').write_text(json.dumps(symbols,indent=2),encoding='utf-8')
names=['sdc_gpio_state','sdc_gpio_changed','sdc_gpio_timestamp_ms','display_state','can_port_last_rx_ms','can_rx_error_count','uart_rx_error_count']
base=min(symbols[n] for n in names)&~3
length=((symbols['display_state']+56-base+3)//4)*4
MAP=[0,5,2,6,7,1,3,4,8,9,10,11,12,13,14]
ROIS={0:[(15,82,165,118)],1:[(374,82,525,118),(555,146,706,185)],2:[(555,82,706,118)],3:[(374,146,525,185)],4:[(195,146,345,185)],5:[(195,82,345,118)],6:[(15,241,345,272)],7:[(375,241,705,272)],8:[(15,311,165,341)],9:[(195,311,345,341)],10:[(375,311,525,341)],11:[(555,311,705,341)],12:[(15,375,165,405)],13:[(195,375,345,405)],14:[(375,375,525,405)],15:[(555,375,705,405)]}
window=Desktop(backend='win32').window(handle=4721434)
window.set_focus()
canvas=next(c.rectangle() for c in window.children() if c.rectangle().width()==720 and c.rectangle().height()==408)
rows=[]
tx=[]
errors=[]
heartbeat=True
stop=threading.Event()
def memory(name):
result=subprocess.run([CLI,'-c','port=SWD','mode=HOTPLUG','freq=1000','-r32',hex(base),str(length)],capture_output=True,timeout=15)
(ROOT/f'{name}_ram.log').write_bytes(result.stdout+result.stderr)
assert result.returncode==0
mem={}
for address,words in re.findall(r'0x([0-9A-Fa-f]+)\s*:\s*((?:[0-9A-Fa-f]{8}\s*)+)',result.stdout.decode(errors='replace')):
addr=int(address,16)
for word in words.split():
for i,b in enumerate(struct.pack('<I',int(word,16))): mem[addr+i]=b
addr+=4
def get(n,fmt): return struct.unpack(fmt,bytes(mem[symbols[n]+i] for i in range(struct.calcsize(fmt))))
return {'state':get('sdc_gpio_state','<H')[0],'changed':get('sdc_gpio_changed','<H')[0],'timestamp':get('sdc_gpio_timestamp_ms','<I')[0],
'debug_state':[mem[symbols['display_state']+33+i] for i in range(16)],'port_rx_ms':list(get('can_port_last_rx_ms','<2I')),
'can_errors':get('can_rx_error_count','<I')[0],'uart_errors':get('uart_rx_error_count','<I')[0]}
def expected(levels):
states=[0]*16
for bit,index in enumerate(MAP): states[index]=2 if levels&(1<<bit) else 1
return states
with can.Bus(interface='pcan',channel='PCAN_USBBUS1',bitrate=500000) as bus:
assert bus.reset()
def sender():
sequence=0
try:
while not stop.is_set():
if heartbeat:
data=struct.pack('<BBHI',0xa1,1,sequence&0xffff,sequence*100)
bus.send(can.Message(arbitration_id=0x6a0,data=data,is_extended_id=False),timeout=.2)
tx.append({'id':'0x6A0','data':data.hex(' ')})
sequence+=1
stop.wait(.1)
except Exception as exc: errors.append(repr(exc))
thread=threading.Thread(target=sender)
thread.start()
def check(name,levels,changed,stamp,states=None,extended=False,dlc=8,raw=None,delay=.55):
if levels is not None:
data=struct.pack('<HHI',levels,changed,stamp)[:dlc]
bus.send(can.Message(arbitration_id=0x6a6,data=data,is_extended_id=extended),timeout=.2)
tx.append({'id':'0x6A6','data':data.hex(' '),'extended':extended})
time.sleep(delay)
values=memory(name)
target=expected(levels) if states is None else states
assert values['debug_state']==target,(name,values,target)
if raw is not None: assert (values['state'],values['changed'],values['timestamp'])==raw,(name,values,raw)
elif levels is not None: assert (values['state'],values['changed'],values['timestamp'])==(levels&0x7fff,changed&0x7fff,stamp),(name,values)
assert values['can_errors']==values['uart_errors']==0 and not errors,(name,values,errors)
assert bus.status()==0,(name,hex(bus.status()))
shot=pyautogui.screenshot(region=(canvas.left,canvas.top,canvas.width(),canvas.height()))
shot.save(str(ROOT/f'{name}.png'))
pixels=np.asarray(shot)
matching=[]
for index,state in enumerate(target):
for x1,y1,x2,y2 in ROIS[index]:
a=pixels[y1:y2,x1:x2,:3].astype(np.int16)
r,g,b=a[:,:,0],a[:,:,1],a[:,:,2]
counts=[int(((r>75)&(r<180)&(abs(r-g)<8)&(abs(r-b)<8)).sum()),int(((g>180)&(r<80)&(b<80)).sum()),int(((r>180)&(g<80)&(b<80)).sum())]
matching.append(counts[state]>20 and (state==1 or counts[1]==0) and (state==2 or counts[2]==0))
rows.append({'name':name,'expected':target,'snapshot':values,'hmi_color_match':all(matching),'screenshot':f'{name}.png','pcan_status':hex(bus.status())})
(ROOT/'mapping-results.json').write_text(json.dumps({'map':MAP,'normal_level':0,'checks':rows,'tx':tx},indent=2),encoding='utf-8')
print(json.dumps({'name':name,'mcu_passed':True,'hmi_color_match':all(matching)}),flush=True)
try:
check('heartbeat_before_sample',None,0,0,[0]*16)
check('all_normal',0,0x7fff,1000)
for bit in range(15):
check(f'PD{bit}_high_fault',1<<bit,1<<bit,2000+2*bit)
check(f'PD{bit}_low_normal',0,1<<bit,2001+2*bit)
check('all_fault',0x7fff,0x7fff,4000)
check('unused_bit15',0x8001,0x8002,5000)
check('truncated',0xffff,0xffff,6000,expected(1),dlc=7,raw=(1,2,5000))
check('wrong_extended',0xffff,0xffff,7000,expected(1),extended=True,raw=(1,2,5000))
check('heartbeat_holds_sample',None,0,0,expected(1),raw=(1,2,5000),delay=1.2)
heartbeat=False
check('source_timeout',None,0,0,[0]*16,delay=.8)
heartbeat=True
check('heartbeat_alone_after_loss',None,0,0,[0]*16,delay=.8)
check('fresh_sample_recovery',0,0x7fff,8000)
finally:
stop.set()
thread.join()
check('final_timeout',None,0,0,[0]*16,delay=.8)
ui=Desktop(backend='uia').window(handle=4721434)
counters=[{'id':c.element_info.automation_id,'text':c.window_text()} for c in ui.descendants(control_type='Text') if c.element_info.automation_id.startswith('datalabel')]
(ROOT/'mapping-results.json').write_text(json.dumps({'map':MAP,'normal_level':0,'checks':rows,'tx':tx,'counters':counters,'sender_errors':errors,'bitrate':500000,'port':'CAN1','mcu_passed':True,'hmi_transitions_passed':all(r['hmi_color_match'] for r in rows)},indent=2),encoding='utf-8')
print(json.dumps({'mcu_passed':True,'checks':len(rows),'hmi_transitions_passed':all(r['hmi_color_match'] for r in rows),'counters':counters}),flush=True)
@@ -0,0 +1,59 @@
import json, time
from pathlib import Path
import numpy as np
import pyautogui as pg
import win32clipboard
from pywinauto import Desktop
ROOT=Path(__file__).resolve().parent
w=Desktop(backend='win32').window(handle=4721434)
u=Desktop(backend='uia').window(handle=4721434)
w.set_focus()
u.child_window(title='停止',control_type='Hyperlink').invoke()
time.sleep(1)
w.child_window(title='键盘输入').click()
time.sleep(.5)
canvas=next(c.rectangle() for c in w.children() if c.rectangle().width()==720 and c.rectangle().height()==408)
ROIS={0:[(15,82,165,118)],1:[(374,82,525,118),(555,146,706,185)],2:[(555,82,706,118)],3:[(374,146,525,185)],4:[(195,146,345,185)],5:[(195,82,345,118)],6:[(15,241,345,272)],7:[(375,241,705,272)],8:[(15,311,165,341)],9:[(195,311,345,341)],10:[(375,311,525,341)],11:[(555,311,705,341)],12:[(15,375,165,405)],13:[(195,375,345,405)],14:[(375,375,525,405)],15:[(555,375,705,405)]}
records=[]
def execute(code):
win32clipboard.OpenClipboard()
win32clipboard.EmptyClipboard()
win32clipboard.SetClipboardText(code,win32clipboard.CF_UNICODETEXT)
win32clipboard.CloseClipboard()
r=w.rectangle()
pg.click(r.left+180,r.top+915)
pg.hotkey('ctrl','a')
pg.hotkey('ctrl','v')
w.child_window(title='执行所有代码').click()
time.sleep(.5)
def check(name,states):
shot=pg.screenshot(region=(canvas.left,canvas.top,canvas.width(),canvas.height()))
shot.save(str(ROOT/f'sim_{name}.png'))
pixels=np.asarray(shot)
for index,state in enumerate(states):
for x1,y1,x2,y2 in ROIS[index]:
a=pixels[y1:y2,x1:x2,:3].astype(np.int16)
r,g,b=a[:,:,0],a[:,:,1],a[:,:,2]
counts=[int(((r>75)&(r<180)&(abs(r-g)<8)&(abs(r-b)<8)).sum()),int(((g>180)&(r<80)&(b<80)).sum()),int(((r>180)&(g<80)&(b<80)).sum())]
assert counts[state]>20 and (state==1 or counts[1]==0) and (state==2 or counts[2]==0),(name,index,state,counts)
records.append({'name':name,'states':states,'screenshot':f'sim_{name}.png','passed':True})
(ROOT/'simulator-results.json').write_text(json.dumps({'scope':'Keyboard input simulation, not physical CAN/UART display proof','checks':records},indent=2),encoding='utf-8')
print(name+' passed',flush=True)
execute('\n'.join([f'd{i}=0' for i in range(16)]+['page debug']))
check('initial_unknown',[0]*16)
for index,signal in [(5,'left_motor_interlock'),(6,'RES'),(7,'control_box')]:
for state in (1,2,0):
execute(f'd{index}={state}')
states=[0]*16
states[index]=state
check(f'{signal}_{state}',states)
execute('\n'.join(f'd{i}=1' for i in range(15)))
check('all_normal',[1]*15+[0])
execute('\n'.join(f'd{i}=2' for i in range(15)))
check('all_fault',[2]*15+[0])
execute('\n'.join(f'd{i}=0' for i in range(16)))
check('final_unknown',[0]*16)
w.child_window(title='用户MCU输入').click()
time.sleep(.4)
u.child_window(title='开始',control_type='Hyperlink').invoke()
print('13 keyboard simulation checks passed; returned to User MCU input')
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017F3C8 00000000
0x200002DC : 00000000 00010000 00001388 00010002
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017F3C8
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010200 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,4 @@
{
"bytes": 0,
"commands": []
}
@@ -0,0 +1,27 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 4 Bytes
Address: : 0x20000310
0x20000310 : 00000000
@@ -0,0 +1,30 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 96 Bytes
Address: : 0x20000158
0x20000158 : 40020008 00000035 00000010 00000000
0x20000168 : 00000080 00000000 00000000 00000000
0x20000178 : 00002000 00000100 200001B8 08001FA5
0x20000188 : 08001FF7 08002005 00000000 00000000
0x20000198 : 40020000 00000000 40020800 40020880
0x200001A8 : 00000001 00000000 00000000 00000000
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200001B8
0x200001B8 : 40004400 00002580 00000000 00000000
0x200001C8 : 00000000 0000000C 00000000 00000000
0x200001D8 : 00000000 00000000 00000000 00000000
0x200001E8 : 00000000 00000000 00000000 00000000
0x200001F8 : 00000000 00000000 00000000 00000000
0x20000208 : 2000026C 00000008 2000028C 003C0040
0x20000218 : 00000000 00000000 00010001 00000001
0x20000228 : 00000000 00000000 00000000 20000158
@@ -0,0 +1,27 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 4 Bytes
Address: : 0x20000268
0x20000268 : 00000000
@@ -0,0 +1,26 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 32 Bytes
Address: : 0x2000026C
0x2000026C : 3D343164 FFFFFF30 762E7461 303D6C61
0x2000027C : 34FFFFFF 00FFFFFF 00000000 00000000
@@ -0,0 +1,27 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 4 Bytes
Address: : 0x20000028
0x20000028 : 001E1913
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017F093 00000000
0x200002DC : 00000000 00010000 00001388 00010002
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017F093
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010200 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A
@@ -0,0 +1,32 @@
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
ST-LINK SN : 37FF71064E573436188C1543
ST-LINK FW : V2J47S7
Board : --
Voltage : 3.28V
SWD freq : 950 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev Z
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Reading 32-bit memory content
Size : 128 Bytes
Address: : 0x200002CC
0x200002CC : 00000000 00000000 0017F6F8 00000000
0x200002DC : 00000000 00010000 00001388 00010002
0x200002EC : 00000000 00000000 00000000 00000000
0x200002FC : 00000000 00000000 00000000 0017F6F8
0x2000030C : 00000000 00000000 00000000 00000000
0x2000031C : 00000000 00000000 00000000 00000000
0x2000032C : 00000000 00000000 01010200 01010101
0x2000033C : 01010101 01010101 00000000 1C6D559A