EEPROM 24LC02 integration

This commit is contained in:
2024-10-15 15:55:11 +02:00
parent 888b367a8b
commit 5255b6944a
50 changed files with 6857 additions and 5404 deletions

View File

@ -0,0 +1,60 @@
build/debug/Core/Src/24LC02.o: Core/Src/24LC02.c Core/Inc/24LC02.h \
Core/Inc/ADBMS_Abstraction.h Core/Inc/ADBMS_CMD_MAKROS.h \
Core/Inc/ADBMS_LL_Driver.h Core/Inc/main.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h \
Core/Inc/stm32f3xx_hal_conf.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_rcc.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_def.h \
Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f3xx.h \
Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f302x8.h \
Drivers/CMSIS/Include/core_cm4.h Drivers/CMSIS/Include/cmsis_version.h \
Drivers/CMSIS/Include/cmsis_compiler.h Drivers/CMSIS/Include/cmsis_gcc.h \
Drivers/CMSIS/Device/ST/STM32F3xx/Include/system_stm32f3xx.h \
Drivers/STM32F3xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_rcc_ex.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_gpio.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_gpio_ex.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_exti.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_dma.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_dma_ex.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_cortex.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_flash.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_flash_ex.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_i2c.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_i2c_ex.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_pwr.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_pwr_ex.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi_ex.h
Core/Inc/24LC02.h:
Core/Inc/ADBMS_Abstraction.h:
Core/Inc/ADBMS_CMD_MAKROS.h:
Core/Inc/ADBMS_LL_Driver.h:
Core/Inc/main.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h:
Core/Inc/stm32f3xx_hal_conf.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_rcc.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_def.h:
Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f3xx.h:
Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f302x8.h:
Drivers/CMSIS/Include/core_cm4.h:
Drivers/CMSIS/Include/cmsis_version.h:
Drivers/CMSIS/Include/cmsis_compiler.h:
Drivers/CMSIS/Include/cmsis_gcc.h:
Drivers/CMSIS/Device/ST/STM32F3xx/Include/system_stm32f3xx.h:
Drivers/STM32F3xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_rcc_ex.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_gpio.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_gpio_ex.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_exti.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_dma.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_dma_ex.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_cortex.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_flash.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_flash_ex.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_i2c.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_i2c_ex.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_pwr.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_pwr_ex.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi_ex.h:

View File

@ -0,0 +1,209 @@
ARM GAS /tmp/ccdSIelb.s page 1
1 .cpu cortex-m4
2 .arch armv7e-m
3 .fpu fpv4-sp-d16
4 .eabi_attribute 27, 1
5 .eabi_attribute 28, 1
6 .eabi_attribute 20, 1
7 .eabi_attribute 21, 1
8 .eabi_attribute 23, 3
9 .eabi_attribute 24, 1
10 .eabi_attribute 25, 1
11 .eabi_attribute 26, 1
12 .eabi_attribute 30, 1
13 .eabi_attribute 34, 1
14 .eabi_attribute 18, 4
15 .file "24LC02.c"
16 .text
17 .Ltext0:
18 .cfi_sections .debug_frame
19 .file 1 "Core/Src/24LC02.c"
20 .section .text.eeprom_init,"ax",%progbits
21 .align 1
22 .global eeprom_init
23 .syntax unified
24 .thumb
25 .thumb_func
27 eeprom_init:
28 .LFB123:
1:Core/Src/24LC02.c **** #include "24LC02.h"
2:Core/Src/24LC02.c **** #include "ADBMS_Abstraction.h"
3:Core/Src/24LC02.c ****
4:Core/Src/24LC02.c **** #include <stdint.h>
5:Core/Src/24LC02.c ****
6:Core/Src/24LC02.c **** uint8_t eeprom_init() {
29 .loc 1 6 23 view -0
30 .cfi_startproc
31 @ args = 0, pretend = 0, frame = 0
32 @ frame_needed = 0, uses_anonymous_args = 0
33 0000 08B5 push {r3, lr}
34 .cfi_def_cfa_offset 8
35 .cfi_offset 3, -8
36 .cfi_offset 14, -4
7:Core/Src/24LC02.c **** uint8_t StartAddr = 0;
37 .loc 1 7 5 view .LVU1
38 .LVL0:
8:Core/Src/24LC02.c **** uint8_t data = 0;
39 .loc 1 8 5 view .LVU2
9:Core/Src/24LC02.c ****
10:Core/Src/24LC02.c **** if (amsWriteComm(EEPROM_ADDR, StartAddr, data) != 0){
40 .loc 1 10 5 view .LVU3
41 .loc 1 10 9 is_stmt 0 view .LVU4
42 0002 0022 movs r2, #0
43 0004 1146 mov r1, r2
44 0006 5020 movs r0, #80
45 0008 FFF7FEFF bl amsWriteComm
46 .LVL1:
47 .loc 1 10 8 discriminator 1 view .LVU5
48 000c 00B9 cbnz r0, .L5
ARM GAS /tmp/ccdSIelb.s page 2
49 .L2:
11:Core/Src/24LC02.c **** return 1;
12:Core/Src/24LC02.c **** }
13:Core/Src/24LC02.c ****
14:Core/Src/24LC02.c **** return 0;
15:Core/Src/24LC02.c **** }
50 .loc 1 15 1 view .LVU6
51 000e 08BD pop {r3, pc}
52 .L5:
11:Core/Src/24LC02.c **** return 1;
53 .loc 1 11 16 view .LVU7
54 0010 0120 movs r0, #1
55 0012 FCE7 b .L2
56 .cfi_endproc
57 .LFE123:
59 .section .text.eeprom_write,"ax",%progbits
60 .align 1
61 .global eeprom_write
62 .syntax unified
63 .thumb
64 .thumb_func
66 eeprom_write:
67 .LVL2:
68 .LFB124:
16:Core/Src/24LC02.c ****
17:Core/Src/24LC02.c **** uint8_t eeprom_write(uint8_t addr, uint8_t data) {
69 .loc 1 17 50 is_stmt 1 view -0
70 .cfi_startproc
71 @ args = 0, pretend = 0, frame = 0
72 @ frame_needed = 0, uses_anonymous_args = 0
73 .loc 1 17 50 is_stmt 0 view .LVU9
74 0000 08B5 push {r3, lr}
75 .cfi_def_cfa_offset 8
76 .cfi_offset 3, -8
77 .cfi_offset 14, -4
78 0002 0A46 mov r2, r1
18:Core/Src/24LC02.c **** if (amsWriteComm(EEPROM_ADDR, addr, data) != 0){
79 .loc 1 18 5 is_stmt 1 view .LVU10
80 .loc 1 18 9 is_stmt 0 view .LVU11
81 0004 0146 mov r1, r0
82 .LVL3:
83 .loc 1 18 9 view .LVU12
84 0006 5020 movs r0, #80
85 .LVL4:
86 .loc 1 18 9 view .LVU13
87 0008 FFF7FEFF bl amsWriteComm
88 .LVL5:
89 .loc 1 18 8 discriminator 1 view .LVU14
90 000c 00B9 cbnz r0, .L10
91 .L7:
19:Core/Src/24LC02.c **** return 1;
20:Core/Src/24LC02.c **** }
21:Core/Src/24LC02.c ****
22:Core/Src/24LC02.c **** return 0;
23:Core/Src/24LC02.c **** }
92 .loc 1 23 1 view .LVU15
93 000e 08BD pop {r3, pc}
ARM GAS /tmp/ccdSIelb.s page 3
94 .L10:
19:Core/Src/24LC02.c **** return 1;
95 .loc 1 19 16 view .LVU16
96 0010 0120 movs r0, #1
97 0012 FCE7 b .L7
98 .cfi_endproc
99 .LFE124:
101 .section .text.eeprom_read,"ax",%progbits
102 .align 1
103 .global eeprom_read
104 .syntax unified
105 .thumb
106 .thumb_func
108 eeprom_read:
109 .LVL6:
110 .LFB125:
24:Core/Src/24LC02.c ****
25:Core/Src/24LC02.c **** uint8_t eeprom_read(uint8_t addr, uint8_t* data) {
111 .loc 1 25 50 is_stmt 1 view -0
112 .cfi_startproc
113 @ args = 0, pretend = 0, frame = 8
114 @ frame_needed = 0, uses_anonymous_args = 0
115 .loc 1 25 50 is_stmt 0 view .LVU18
116 0000 00B5 push {lr}
117 .cfi_def_cfa_offset 4
118 .cfi_offset 14, -4
119 0002 83B0 sub sp, sp, #12
120 .cfi_def_cfa_offset 16
121 0004 0191 str r1, [sp, #4]
26:Core/Src/24LC02.c **** if (amsReadComm(EEPROM_ADDR, addr, &data) != 0){
122 .loc 1 26 5 is_stmt 1 view .LVU19
123 .loc 1 26 9 is_stmt 0 view .LVU20
124 0006 01AA add r2, sp, #4
125 0008 0146 mov r1, r0
126 .LVL7:
127 .loc 1 26 9 view .LVU21
128 000a 5020 movs r0, #80
129 .LVL8:
130 .loc 1 26 9 view .LVU22
131 000c FFF7FEFF bl amsReadComm
132 .LVL9:
133 .loc 1 26 8 discriminator 1 view .LVU23
134 0010 10B9 cbnz r0, .L15
135 .L12:
27:Core/Src/24LC02.c **** return 1;
28:Core/Src/24LC02.c **** };
29:Core/Src/24LC02.c ****
30:Core/Src/24LC02.c **** return 0;
31:Core/Src/24LC02.c **** }...
136 .loc 1 31 1 view .LVU24
137 0012 03B0 add sp, sp, #12
138 .cfi_remember_state
139 .cfi_def_cfa_offset 4
140 @ sp needed
141 0014 5DF804FB ldr pc, [sp], #4
142 .L15:
143 .cfi_restore_state
ARM GAS /tmp/ccdSIelb.s page 4
27:Core/Src/24LC02.c **** return 1;
144 .loc 1 27 16 view .LVU25
145 0018 0120 movs r0, #1
146 001a FAE7 b .L12
147 .cfi_endproc
148 .LFE125:
150 .text
151 .Letext0:
152 .file 2 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
153 .file 3 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
154 .file 4 "Core/Inc/ADBMS_Abstraction.h"
ARM GAS /tmp/ccdSIelb.s page 5
DEFINED SYMBOLS
*ABS*:00000000 24LC02.c
/tmp/ccdSIelb.s:21 .text.eeprom_init:00000000 $t
/tmp/ccdSIelb.s:27 .text.eeprom_init:00000000 eeprom_init
/tmp/ccdSIelb.s:60 .text.eeprom_write:00000000 $t
/tmp/ccdSIelb.s:66 .text.eeprom_write:00000000 eeprom_write
/tmp/ccdSIelb.s:102 .text.eeprom_read:00000000 $t
/tmp/ccdSIelb.s:108 .text.eeprom_read:00000000 eeprom_read
UNDEFINED SYMBOLS
amsWriteComm
amsReadComm

Binary file not shown.

View File

@ -26,7 +26,8 @@ build/debug/Core/Src/ADBMS_Abstraction.o: Core/Src/ADBMS_Abstraction.c \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_pwr_ex.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi_ex.h \
Core/Inc/ADBMS_CMD_MAKROS.h Core/Inc/ADBMS_LL_Driver.h
Core/Inc/ADBMS_CMD_MAKROS.h Core/Inc/ADBMS_LL_Driver.h \
Core/Inc/ADBMS_I2C.h
Core/Inc/ADBMS_Abstraction.h:
Core/Inc/ADBMS_CMD_MAKROS.h:
Core/Inc/ADBMS_LL_Driver.h:
@ -60,3 +61,4 @@ Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi_ex.h:
Core/Inc/ADBMS_CMD_MAKROS.h:
Core/Inc/ADBMS_LL_Driver.h:
Core/Inc/ADBMS_I2C.h:

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ build/debug/Core/Src/AMS_HighLevel.o: Core/Src/AMS_HighLevel.c \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_pwr_ex.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi_ex.h \
Core/Inc/ADBMS_Abstraction.h Core/Inc/TMP1075.h
Core/Inc/ADBMS_Abstraction.h Core/Inc/TMP1075.h Core/Inc/24LC02.h
Core/Inc/AMS_HighLevel.h:
Core/Inc/ADBMS_Abstraction.h:
Core/Inc/ADBMS_CMD_MAKROS.h:
@ -61,3 +61,4 @@ Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi_ex.h:
Core/Inc/ADBMS_Abstraction.h:
Core/Inc/TMP1075.h:
Core/Inc/24LC02.h:

View File

@ -1,4 +1,4 @@
ARM GAS /tmp/ccXj0GtJ.s page 1
ARM GAS /tmp/cczmVS9Q.s page 1
1 .cpu cortex-m4
@ -39,97 +39,98 @@ ARM GAS /tmp/ccXj0GtJ.s page 1
8:Core/Src/AMS_HighLevel.c **** #include "AMS_HighLevel.h"
9:Core/Src/AMS_HighLevel.c **** #include "ADBMS_Abstraction.h"
10:Core/Src/AMS_HighLevel.c **** #include "TMP1075.h"
11:Core/Src/AMS_HighLevel.c **** #include "stm32f3xx_hal.h"
12:Core/Src/AMS_HighLevel.c **** #include <stdint.h>
13:Core/Src/AMS_HighLevel.c **** #include <string.h>
14:Core/Src/AMS_HighLevel.c ****
15:Core/Src/AMS_HighLevel.c **** Cell_Module module = {};
16:Core/Src/AMS_HighLevel.c ****
17:Core/Src/AMS_HighLevel.c **** uint16_t amsuv = 0;
18:Core/Src/AMS_HighLevel.c **** uint16_t amsov = 0;
19:Core/Src/AMS_HighLevel.c ****
20:Core/Src/AMS_HighLevel.c **** uint8_t numberofCells = 15;
21:Core/Src/AMS_HighLevel.c **** uint8_t numberofAux = 0;
22:Core/Src/AMS_HighLevel.c ****
23:Core/Src/AMS_HighLevel.c **** uint8_t packetChecksumFails = 0;
24:Core/Src/AMS_HighLevel.c **** #define MAX_PACKET_CHECKSUM_FAILS 5
25:Core/Src/AMS_HighLevel.c ****
26:Core/Src/AMS_HighLevel.c **** uint8_t deviceSleeps = 0;
27:Core/Src/AMS_HighLevel.c **** #define MAX_DEVICE_SLEEP 3 //TODO: change to correct value
28:Core/Src/AMS_HighLevel.c ****
29:Core/Src/AMS_HighLevel.c **** struct pollingTimes {
ARM GAS /tmp/ccXj0GtJ.s page 2
11:Core/Src/AMS_HighLevel.c **** #include "24LC02.h"
12:Core/Src/AMS_HighLevel.c **** #include "stm32f3xx_hal.h"
13:Core/Src/AMS_HighLevel.c **** #include <stdint.h>
14:Core/Src/AMS_HighLevel.c **** #include <string.h>
15:Core/Src/AMS_HighLevel.c ****
16:Core/Src/AMS_HighLevel.c **** Cell_Module module = {};
17:Core/Src/AMS_HighLevel.c ****
18:Core/Src/AMS_HighLevel.c **** uint16_t amsuv = 0;
19:Core/Src/AMS_HighLevel.c **** uint16_t amsov = 0;
20:Core/Src/AMS_HighLevel.c ****
21:Core/Src/AMS_HighLevel.c **** uint8_t numberofCells = 15;
22:Core/Src/AMS_HighLevel.c **** uint8_t numberofAux = 0;
23:Core/Src/AMS_HighLevel.c ****
24:Core/Src/AMS_HighLevel.c **** uint8_t packetChecksumFails = 0;
25:Core/Src/AMS_HighLevel.c **** #define MAX_PACKET_CHECKSUM_FAILS 5
26:Core/Src/AMS_HighLevel.c ****
27:Core/Src/AMS_HighLevel.c **** uint8_t deviceSleeps = 0;
28:Core/Src/AMS_HighLevel.c **** #define MAX_DEVICE_SLEEP 3 //TODO: change to correct value
29:Core/Src/AMS_HighLevel.c ****
ARM GAS /tmp/cczmVS9Q.s page 2
30:Core/Src/AMS_HighLevel.c **** uint32_t S_ADC_OW_CHECK;
31:Core/Src/AMS_HighLevel.c **** uint32_t TMP1075;
32:Core/Src/AMS_HighLevel.c **** };
33:Core/Src/AMS_HighLevel.c ****
34:Core/Src/AMS_HighLevel.c **** struct pollingTimes pollingTimes = {0, 0};
35:Core/Src/AMS_HighLevel.c ****
36:Core/Src/AMS_HighLevel.c **** uint8_t AMS_Init(SPI_HandleTypeDef* hspi) {
30 .loc 1 36 43 view -0
30:Core/Src/AMS_HighLevel.c **** struct pollingTimes {
31:Core/Src/AMS_HighLevel.c **** uint32_t S_ADC_OW_CHECK;
32:Core/Src/AMS_HighLevel.c **** uint32_t TMP1075;
33:Core/Src/AMS_HighLevel.c **** };
34:Core/Src/AMS_HighLevel.c ****
35:Core/Src/AMS_HighLevel.c **** struct pollingTimes pollingTimes = {0, 0};
36:Core/Src/AMS_HighLevel.c ****
37:Core/Src/AMS_HighLevel.c **** uint8_t AMS_Init(SPI_HandleTypeDef* hspi) {
30 .loc 1 37 43 view -0
31 .cfi_startproc
32 @ args = 0, pretend = 0, frame = 0
33 @ frame_needed = 0, uses_anonymous_args = 0
34 .loc 1 36 43 is_stmt 0 view .LVU1
34 .loc 1 37 43 is_stmt 0 view .LVU1
35 0000 38B5 push {r3, r4, r5, lr}
36 .cfi_def_cfa_offset 16
37 .cfi_offset 3, -16
38 .cfi_offset 4, -12
39 .cfi_offset 5, -8
40 .cfi_offset 14, -4
37:Core/Src/AMS_HighLevel.c **** uint8_t ret = initAMS(hspi, numberofCells, numberofAux);
41 .loc 1 37 3 is_stmt 1 view .LVU2
42 .loc 1 37 17 is_stmt 0 view .LVU3
38:Core/Src/AMS_HighLevel.c **** uint8_t ret = initAMS(hspi, numberofCells, numberofAux);
41 .loc 1 38 3 is_stmt 1 view .LVU2
42 .loc 1 38 17 is_stmt 0 view .LVU3
43 0002 0C4B ldr r3, .L3
44 0004 1A78 ldrb r2, [r3] @ zero_extendqisi2
45 0006 0C4B ldr r3, .L3+4
46 0008 1978 ldrb r1, [r3] @ zero_extendqisi2
47 000a FFF7FEFF bl initAMS
48 .LVL1:
49 .loc 1 37 17 view .LVU4
49 .loc 1 38 17 view .LVU4
50 000e 0446 mov r4, r0
51 .LVL2:
38:Core/Src/AMS_HighLevel.c **** amsov = DEFAULT_OV;
52 .loc 1 38 3 is_stmt 1 view .LVU5
53 .loc 1 38 9 is_stmt 0 view .LVU6
39:Core/Src/AMS_HighLevel.c **** amsov = DEFAULT_OV;
52 .loc 1 39 3 is_stmt 1 view .LVU5
53 .loc 1 39 9 is_stmt 0 view .LVU6
54 0010 0A4B ldr r3, .L3+8
55 0012 40F26542 movw r2, #1125
56 0016 1A80 strh r2, [r3] @ movhi
39:Core/Src/AMS_HighLevel.c **** amsuv = DEFAULT_UV;
57 .loc 1 39 3 is_stmt 1 view .LVU7
58 .loc 1 39 9 is_stmt 0 view .LVU8
40:Core/Src/AMS_HighLevel.c **** amsuv = DEFAULT_UV;
57 .loc 1 40 3 is_stmt 1 view .LVU7
58 .loc 1 40 9 is_stmt 0 view .LVU8
59 0018 094B ldr r3, .L3+12
60 001a 40F2A112 movw r2, #417
61 001e 1A80 strh r2, [r3] @ movhi
40:Core/Src/AMS_HighLevel.c ****
41:Core/Src/AMS_HighLevel.c **** pollingTimes = (struct pollingTimes) {HAL_GetTick(), HAL_GetTick()};
62 .loc 1 41 3 is_stmt 1 view .LVU9
63 .loc 1 41 41 is_stmt 0 view .LVU10
41:Core/Src/AMS_HighLevel.c ****
42:Core/Src/AMS_HighLevel.c **** pollingTimes = (struct pollingTimes) {HAL_GetTick(), HAL_GetTick()};
62 .loc 1 42 3 is_stmt 1 view .LVU9
63 .loc 1 42 41 is_stmt 0 view .LVU10
64 0020 FFF7FEFF bl HAL_GetTick
65 .LVL3:
66 0024 0546 mov r5, r0
67 .loc 1 41 56 discriminator 1 view .LVU11
67 .loc 1 42 56 discriminator 1 view .LVU11
68 0026 FFF7FEFF bl HAL_GetTick
69 .LVL4:
70 .loc 1 41 16 discriminator 2 view .LVU12
70 .loc 1 42 16 discriminator 2 view .LVU12
71 002a 064B ldr r3, .L3+16
72 002c 1D60 str r5, [r3]
73 002e 5860 str r0, [r3, #4]
42:Core/Src/AMS_HighLevel.c ****
ARM GAS /tmp/ccXj0GtJ.s page 3
ARM GAS /tmp/cczmVS9Q.s page 3
43:Core/Src/AMS_HighLevel.c **** return ret;
74 .loc 1 43 3 is_stmt 1 view .LVU13
44:Core/Src/AMS_HighLevel.c **** }
75 .loc 1 44 1 is_stmt 0 view .LVU14
43:Core/Src/AMS_HighLevel.c ****
44:Core/Src/AMS_HighLevel.c **** return ret;
74 .loc 1 44 3 is_stmt 1 view .LVU13
45:Core/Src/AMS_HighLevel.c **** }
75 .loc 1 45 1 is_stmt 0 view .LVU14
76 0030 2046 mov r0, r4
77 0032 38BD pop {r3, r4, r5, pc}
78 .LVL5:
79 .L4:
80 .loc 1 44 1 view .LVU15
80 .loc 1 45 1 view .LVU15
81 .align 2
82 .L3:
83 0034 00000000 .word numberofAux
@ -147,201 +148,260 @@ ARM GAS /tmp/ccXj0GtJ.s page 1
96 .thumb_func
98 AMS_Idle_Loop:
99 .LFB124:
45:Core/Src/AMS_HighLevel.c ****
46:Core/Src/AMS_HighLevel.c **** uint8_t AMS_Idle_Loop() {
100 .loc 1 46 25 is_stmt 1 view -0
46:Core/Src/AMS_HighLevel.c ****
47:Core/Src/AMS_HighLevel.c **** uint8_t AMS_Idle_Loop() {
100 .loc 1 47 25 is_stmt 1 view -0
101 .cfi_startproc
102 @ args = 0, pretend = 0, frame = 0
102 @ args = 0, pretend = 0, frame = 8
103 @ frame_needed = 0, uses_anonymous_args = 0
104 0000 38B5 push {r3, r4, r5, lr}
105 .cfi_def_cfa_offset 16
106 .cfi_offset 3, -16
107 .cfi_offset 4, -12
108 .cfi_offset 5, -8
109 .cfi_offset 14, -4
47:Core/Src/AMS_HighLevel.c **** if (!amsWakeUp()) {
110 .loc 1 47 3 view .LVU17
111 .loc 1 47 8 is_stmt 0 view .LVU18
112 0002 FFF7FEFF bl amsWakeUp
113 .LVL6:
48:Core/Src/AMS_HighLevel.c **** //error_data.data_kind = SEK_INTERNAL_BMS_TIMEOUT; //we don't receive data for the wakeup comma
49:Core/Src/AMS_HighLevel.c **** //set_error_source(ERROR_SOURCE_INTERNAL); //so we can't tell if we timed out
50:Core/Src/AMS_HighLevel.c **** }
114 .loc 1 50 3 is_stmt 1 view .LVU19
51:Core/Src/AMS_HighLevel.c ****
52:Core/Src/AMS_HighLevel.c **** packetChecksumFails += amsAuxAndStatusMeasurement(&module);
115 .loc 1 52 3 view .LVU20
116 .loc 1 52 26 is_stmt 0 view .LVU21
117 0006 134C ldr r4, .L9
118 0008 2046 mov r0, r4
119 000a FFF7FEFF bl amsAuxAndStatusMeasurement
120 .LVL7:
121 .loc 1 52 23 discriminator 1 view .LVU22
122 000e 124B ldr r3, .L9+4
ARM GAS /tmp/ccXj0GtJ.s page 4
104 0000 30B5 push {r4, r5, lr}
105 .cfi_def_cfa_offset 12
106 .cfi_offset 4, -12
107 .cfi_offset 5, -8
108 .cfi_offset 14, -4
109 0002 83B0 sub sp, sp, #12
110 .cfi_def_cfa_offset 24
48:Core/Src/AMS_HighLevel.c **** if (!amsWakeUp()) {
111 .loc 1 48 3 view .LVU17
112 .loc 1 48 8 is_stmt 0 view .LVU18
113 0004 FFF7FEFF bl amsWakeUp
114 .LVL6:
49:Core/Src/AMS_HighLevel.c **** //error_data.data_kind = SEK_INTERNAL_BMS_TIMEOUT; //we don't receive data for the wakeup comma
50:Core/Src/AMS_HighLevel.c **** //set_error_source(ERROR_SOURCE_INTERNAL); //so we can't tell if we timed out
51:Core/Src/AMS_HighLevel.c **** }
115 .loc 1 51 3 is_stmt 1 view .LVU19
52:Core/Src/AMS_HighLevel.c ****
53:Core/Src/AMS_HighLevel.c **** packetChecksumFails += amsAuxAndStatusMeasurement(&module);
116 .loc 1 53 3 view .LVU20
117 .loc 1 53 26 is_stmt 0 view .LVU21
118 0008 1B4C ldr r4, .L15
119 000a 2046 mov r0, r4
120 000c FFF7FEFF bl amsAuxAndStatusMeasurement
121 .LVL7:
ARM GAS /tmp/cczmVS9Q.s page 4
123 0010 1A78 ldrb r2, [r3] @ zero_extendqisi2
124 0012 1044 add r0, r0, r2
125 0014 1870 strb r0, [r3]
53:Core/Src/AMS_HighLevel.c ****
54:Core/Src/AMS_HighLevel.c **** if (module.status.SLEEP) {
126 .loc 1 54 3 is_stmt 1 view .LVU23
127 .loc 1 54 7 is_stmt 0 view .LVU24
128 0016 94F83930 ldrb r3, [r4, #57] @ zero_extendqisi2
129 .loc 1 54 6 view .LVU25
130 001a 13F0100F tst r3, #16
131 001e 06D0 beq .L6
55:Core/Src/AMS_HighLevel.c **** deviceSleeps++;
132 .loc 1 55 5 is_stmt 1 view .LVU26
133 .loc 1 55 17 is_stmt 0 view .LVU27
134 0020 0E4A ldr r2, .L9+8
135 0022 1378 ldrb r3, [r2] @ zero_extendqisi2
136 0024 0133 adds r3, r3, #1
137 0026 DBB2 uxtb r3, r3
138 0028 1370 strb r3, [r2]
56:Core/Src/AMS_HighLevel.c **** if (deviceSleeps > MAX_DEVICE_SLEEP) {
139 .loc 1 56 5 is_stmt 1 view .LVU28
140 .loc 1 56 8 is_stmt 0 view .LVU29
141 002a 032B cmp r3, #3
142 002c 0FD9 bls .L8
143 .L6:
57:Core/Src/AMS_HighLevel.c ****
58:Core/Src/AMS_HighLevel.c **** } else {
59:Core/Src/AMS_HighLevel.c **** amsReset();
122 .loc 1 53 23 discriminator 1 view .LVU22
123 0010 1A4A ldr r2, .L15+4
124 0012 1378 ldrb r3, [r2] @ zero_extendqisi2
125 0014 0344 add r3, r3, r0
126 0016 1370 strb r3, [r2]
54:Core/Src/AMS_HighLevel.c ****
55:Core/Src/AMS_HighLevel.c **** if (module.status.SLEEP) {
127 .loc 1 55 3 is_stmt 1 view .LVU23
128 .loc 1 55 7 is_stmt 0 view .LVU24
129 0018 94F83930 ldrb r3, [r4, #57] @ zero_extendqisi2
130 .loc 1 55 6 view .LVU25
131 001c 13F0100F tst r3, #16
132 0020 06D0 beq .L6
56:Core/Src/AMS_HighLevel.c **** deviceSleeps++;
133 .loc 1 56 5 is_stmt 1 view .LVU26
134 .loc 1 56 17 is_stmt 0 view .LVU27
135 0022 174A ldr r2, .L15+8
136 0024 1378 ldrb r3, [r2] @ zero_extendqisi2
137 0026 0133 adds r3, r3, #1
138 0028 DBB2 uxtb r3, r3
139 002a 1370 strb r3, [r2]
57:Core/Src/AMS_HighLevel.c **** if (deviceSleeps > MAX_DEVICE_SLEEP) {
140 .loc 1 57 5 is_stmt 1 view .LVU28
141 .loc 1 57 8 is_stmt 0 view .LVU29
142 002c 032B cmp r3, #3
143 002e 13D9 bls .L14
144 .L6:
58:Core/Src/AMS_HighLevel.c ****
59:Core/Src/AMS_HighLevel.c **** } else {
60:Core/Src/AMS_HighLevel.c **** amsReset();
61:Core/Src/AMS_HighLevel.c **** }
62:Core/Src/AMS_HighLevel.c **** }
63:Core/Src/AMS_HighLevel.c ****
64:Core/Src/AMS_HighLevel.c **** packetChecksumFails += amsCellMeasurement(&module);
145 .loc 1 64 3 is_stmt 1 view .LVU30
146 .loc 1 64 26 is_stmt 0 view .LVU31
147 0030 114D ldr r5, .L15
148 0032 2846 mov r0, r5
149 0034 FFF7FEFF bl amsCellMeasurement
150 .LVL8:
151 .loc 1 64 23 discriminator 1 view .LVU32
152 0038 104C ldr r4, .L15+4
153 003a 2378 ldrb r3, [r4] @ zero_extendqisi2
154 003c 0344 add r3, r3, r0
155 003e 2370 strb r3, [r4]
65:Core/Src/AMS_HighLevel.c **** packetChecksumFails += amsCheckUnderOverVoltage(&module);
156 .loc 1 65 3 is_stmt 1 view .LVU33
157 .loc 1 65 26 is_stmt 0 view .LVU34
158 0040 2846 mov r0, r5
159 0042 FFF7FEFF bl amsCheckUnderOverVoltage
160 .LVL9:
161 .loc 1 65 23 discriminator 1 view .LVU35
162 0046 2378 ldrb r3, [r4] @ zero_extendqisi2
163 0048 0344 add r3, r3, r0
164 004a 2370 strb r3, [r4]
66:Core/Src/AMS_HighLevel.c ****
67:Core/Src/AMS_HighLevel.c **** if(eeprom_write(0, 7) != 0){
ARM GAS /tmp/cczmVS9Q.s page 5
165 .loc 1 67 3 is_stmt 1 view .LVU36
166 .loc 1 67 6 is_stmt 0 view .LVU37
167 004c 0721 movs r1, #7
168 004e 0020 movs r0, #0
169 0050 FFF7FEFF bl eeprom_write
170 .LVL10:
171 .loc 1 67 5 discriminator 1 view .LVU38
172 0054 18B1 cbz r0, .L7
173 .L8:
68:Core/Src/AMS_HighLevel.c **** while(1){}
174 .loc 1 68 5 is_stmt 1 view .LVU39
175 .loc 1 68 14 view .LVU40
176 .loc 1 68 10 view .LVU41
177 0056 FEE7 b .L8
178 .L14:
60:Core/Src/AMS_HighLevel.c **** }
61:Core/Src/AMS_HighLevel.c **** }
62:Core/Src/AMS_HighLevel.c ****
63:Core/Src/AMS_HighLevel.c **** packetChecksumFails += amsCellMeasurement(&module);
144 .loc 1 63 3 is_stmt 1 view .LVU30
145 .loc 1 63 26 is_stmt 0 view .LVU31
146 002e 094D ldr r5, .L9
147 0030 2846 mov r0, r5
148 0032 FFF7FEFF bl amsCellMeasurement
149 .LVL8:
150 .loc 1 63 23 discriminator 1 view .LVU32
151 0036 084C ldr r4, .L9+4
152 0038 2378 ldrb r3, [r4] @ zero_extendqisi2
153 003a 1844 add r0, r0, r3
154 003c 2070 strb r0, [r4]
64:Core/Src/AMS_HighLevel.c **** packetChecksumFails += amsCheckUnderOverVoltage(&module);
155 .loc 1 64 3 is_stmt 1 view .LVU33
156 .loc 1 64 26 is_stmt 0 view .LVU34
157 003e 2846 mov r0, r5
158 0040 FFF7FEFF bl amsCheckUnderOverVoltage
159 .LVL9:
160 .loc 1 64 23 discriminator 1 view .LVU35
161 0044 2378 ldrb r3, [r4] @ zero_extendqisi2
162 0046 1844 add r0, r0, r3
163 0048 2070 strb r0, [r4]
65:Core/Src/AMS_HighLevel.c ****
66:Core/Src/AMS_HighLevel.c **** //tmp1075_measure();
67:Core/Src/AMS_HighLevel.c ****
68:Core/Src/AMS_HighLevel.c **** return 0;
ARM GAS /tmp/ccXj0GtJ.s page 5
179 .loc 1 60 7 view .LVU42
180 0058 FFF7FEFF bl amsReset
181 .LVL11:
182 005c E8E7 b .L6
183 .L7:
69:Core/Src/AMS_HighLevel.c **** }
70:Core/Src/AMS_HighLevel.c **** int eepromBuf;
184 .loc 1 70 3 view .LVU43
71:Core/Src/AMS_HighLevel.c **** if(eeprom_read(0, &eepromBuf) != 0){
185 .loc 1 71 3 view .LVU44
186 .loc 1 71 6 is_stmt 0 view .LVU45
187 005e 01A9 add r1, sp, #4
188 0060 0020 movs r0, #0
189 0062 FFF7FEFF bl eeprom_read
190 .LVL12:
191 .loc 1 71 5 discriminator 1 view .LVU46
192 0066 00B1 cbz r0, .L9
193 .L10:
72:Core/Src/AMS_HighLevel.c **** while(1){}
194 .loc 1 72 5 is_stmt 1 view .LVU47
195 .loc 1 72 14 view .LVU48
196 .loc 1 72 10 view .LVU49
197 0068 FEE7 b .L10
198 .L9:
73:Core/Src/AMS_HighLevel.c **** }
74:Core/Src/AMS_HighLevel.c ****
75:Core/Src/AMS_HighLevel.c **** if (eepromBuf != 7){
199 .loc 1 75 3 view .LVU50
200 .loc 1 75 17 is_stmt 0 view .LVU51
201 006a 019B ldr r3, [sp, #4]
202 .loc 1 75 6 view .LVU52
203 006c 072B cmp r3, #7
204 006e 00D0 beq .L11
205 .L12:
76:Core/Src/AMS_HighLevel.c **** while(1){}
206 .loc 1 76 5 is_stmt 1 view .LVU53
207 .loc 1 76 14 view .LVU54
208 .loc 1 76 10 view .LVU55
209 0070 FEE7 b .L12
210 .L11:
77:Core/Src/AMS_HighLevel.c **** }
ARM GAS /tmp/cczmVS9Q.s page 6
164 .loc 1 68 3 is_stmt 1 view .LVU36
69:Core/Src/AMS_HighLevel.c **** }...
165 .loc 1 69 1 is_stmt 0 view .LVU37
166 004a 0020 movs r0, #0
167 004c 38BD pop {r3, r4, r5, pc}
168 .L8:
59:Core/Src/AMS_HighLevel.c **** amsReset();
169 .loc 1 59 7 is_stmt 1 view .LVU38
170 004e FFF7FEFF bl amsReset
171 .LVL10:
172 0052 ECE7 b .L6
173 .L10:
174 .align 2
175 .L9:
176 0054 00000000 .word module
177 0058 00000000 .word packetChecksumFails
178 005c 00000000 .word deviceSleeps
179 .cfi_endproc
180 .LFE124:
182 .global pollingTimes
183 .section .bss.pollingTimes,"aw",%nobits
184 .align 2
187 pollingTimes:
188 0000 00000000 .space 8
188 00000000
189 .global deviceSleeps
190 .section .bss.deviceSleeps,"aw",%nobits
193 deviceSleeps:
194 0000 00 .space 1
195 .global packetChecksumFails
196 .section .bss.packetChecksumFails,"aw",%nobits
199 packetChecksumFails:
200 0000 00 .space 1
201 .global numberofAux
202 .section .bss.numberofAux,"aw",%nobits
205 numberofAux:
206 0000 00 .space 1
207 .global numberofCells
208 .section .data.numberofCells,"aw"
211 numberofCells:
212 0000 0F .byte 15
213 .global amsov
214 .section .bss.amsov,"aw",%nobits
215 .align 1
218 amsov:
219 0000 0000 .space 2
220 .global amsuv
221 .section .bss.amsuv,"aw",%nobits
222 .align 1
225 amsuv:
226 0000 0000 .space 2
227 .global module
228 .section .bss.module,"aw",%nobits
78:Core/Src/AMS_HighLevel.c ****
79:Core/Src/AMS_HighLevel.c **** return 0;
211 .loc 1 79 3 view .LVU56
80:Core/Src/AMS_HighLevel.c **** }...
212 .loc 1 80 1 is_stmt 0 view .LVU57
213 0072 0020 movs r0, #0
214 0074 03B0 add sp, sp, #12
215 .cfi_def_cfa_offset 12
216 @ sp needed
217 0076 30BD pop {r4, r5, pc}
218 .L16:
219 .align 2
220 .L15:
221 0078 00000000 .word module
222 007c 00000000 .word packetChecksumFails
223 0080 00000000 .word deviceSleeps
224 .cfi_endproc
225 .LFE124:
227 .global pollingTimes
228 .section .bss.pollingTimes,"aw",%nobits
229 .align 2
232 module:
233 0000 00000000 .space 96
232 pollingTimes:
233 0000 00000000 .space 8
233 00000000
ARM GAS /tmp/ccXj0GtJ.s page 6
234 .global deviceSleeps
235 .section .bss.deviceSleeps,"aw",%nobits
238 deviceSleeps:
239 0000 00 .space 1
240 .global packetChecksumFails
241 .section .bss.packetChecksumFails,"aw",%nobits
244 packetChecksumFails:
245 0000 00 .space 1
246 .global numberofAux
247 .section .bss.numberofAux,"aw",%nobits
250 numberofAux:
251 0000 00 .space 1
252 .global numberofCells
253 .section .data.numberofCells,"aw"
256 numberofCells:
257 0000 0F .byte 15
258 .global amsov
259 .section .bss.amsov,"aw",%nobits
260 .align 1
263 amsov:
264 0000 0000 .space 2
265 .global amsuv
266 .section .bss.amsuv,"aw",%nobits
267 .align 1
270 amsuv:
271 0000 0000 .space 2
272 .global module
273 .section .bss.module,"aw",%nobits
274 .align 2
277 module:
278 0000 00000000 .space 96
278 00000000
278 00000000
ARM GAS /tmp/cczmVS9Q.s page 7
233 00000000
233 00000000
233 00000000
234 .text
235 .Letext0:
236 .file 2 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
237 .file 3 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
238 .file 4 "Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f302x8.h"
239 .file 5 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_def.h"
240 .file 6 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_dma.h"
241 .file 7 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h"
242 .file 8 "Core/Inc/ADBMS_LL_Driver.h"
243 .file 9 "Core/Inc/ADBMS_Abstraction.h"
244 .file 10 "Core/Inc/AMS_HighLevel.h"
245 .file 11 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h"
ARM GAS /tmp/ccXj0GtJ.s page 7
278 00000000
278 00000000
279 .text
280 .Letext0:
281 .file 2 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
282 .file 3 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
283 .file 4 "Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f302x8.h"
284 .file 5 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_def.h"
285 .file 6 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_dma.h"
286 .file 7 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h"
287 .file 8 "Core/Inc/ADBMS_LL_Driver.h"
288 .file 9 "Core/Inc/ADBMS_Abstraction.h"
289 .file 10 "Core/Inc/AMS_HighLevel.h"
290 .file 11 "Core/Inc/24LC02.h"
291 .file 12 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h"
ARM GAS /tmp/cczmVS9Q.s page 8
DEFINED SYMBOLS
*ABS*:00000000 AMS_HighLevel.c
/tmp/ccXj0GtJ.s:21 .text.AMS_Init:00000000 $t
/tmp/ccXj0GtJ.s:27 .text.AMS_Init:00000000 AMS_Init
/tmp/ccXj0GtJ.s:83 .text.AMS_Init:00000034 $d
/tmp/ccXj0GtJ.s:205 .bss.numberofAux:00000000 numberofAux
/tmp/ccXj0GtJ.s:211 .data.numberofCells:00000000 numberofCells
/tmp/ccXj0GtJ.s:218 .bss.amsov:00000000 amsov
/tmp/ccXj0GtJ.s:225 .bss.amsuv:00000000 amsuv
/tmp/ccXj0GtJ.s:187 .bss.pollingTimes:00000000 pollingTimes
/tmp/ccXj0GtJ.s:92 .text.AMS_Idle_Loop:00000000 $t
/tmp/ccXj0GtJ.s:98 .text.AMS_Idle_Loop:00000000 AMS_Idle_Loop
/tmp/ccXj0GtJ.s:176 .text.AMS_Idle_Loop:00000054 $d
/tmp/ccXj0GtJ.s:232 .bss.module:00000000 module
/tmp/ccXj0GtJ.s:199 .bss.packetChecksumFails:00000000 packetChecksumFails
/tmp/ccXj0GtJ.s:193 .bss.deviceSleeps:00000000 deviceSleeps
/tmp/ccXj0GtJ.s:184 .bss.pollingTimes:00000000 $d
/tmp/ccXj0GtJ.s:194 .bss.deviceSleeps:00000000 $d
/tmp/ccXj0GtJ.s:200 .bss.packetChecksumFails:00000000 $d
/tmp/ccXj0GtJ.s:206 .bss.numberofAux:00000000 $d
/tmp/ccXj0GtJ.s:215 .bss.amsov:00000000 $d
/tmp/ccXj0GtJ.s:222 .bss.amsuv:00000000 $d
/tmp/ccXj0GtJ.s:229 .bss.module:00000000 $d
/tmp/cczmVS9Q.s:21 .text.AMS_Init:00000000 $t
/tmp/cczmVS9Q.s:27 .text.AMS_Init:00000000 AMS_Init
/tmp/cczmVS9Q.s:83 .text.AMS_Init:00000034 $d
/tmp/cczmVS9Q.s:250 .bss.numberofAux:00000000 numberofAux
/tmp/cczmVS9Q.s:256 .data.numberofCells:00000000 numberofCells
/tmp/cczmVS9Q.s:263 .bss.amsov:00000000 amsov
/tmp/cczmVS9Q.s:270 .bss.amsuv:00000000 amsuv
/tmp/cczmVS9Q.s:232 .bss.pollingTimes:00000000 pollingTimes
/tmp/cczmVS9Q.s:92 .text.AMS_Idle_Loop:00000000 $t
/tmp/cczmVS9Q.s:98 .text.AMS_Idle_Loop:00000000 AMS_Idle_Loop
/tmp/cczmVS9Q.s:221 .text.AMS_Idle_Loop:00000078 $d
/tmp/cczmVS9Q.s:277 .bss.module:00000000 module
/tmp/cczmVS9Q.s:244 .bss.packetChecksumFails:00000000 packetChecksumFails
/tmp/cczmVS9Q.s:238 .bss.deviceSleeps:00000000 deviceSleeps
/tmp/cczmVS9Q.s:229 .bss.pollingTimes:00000000 $d
/tmp/cczmVS9Q.s:239 .bss.deviceSleeps:00000000 $d
/tmp/cczmVS9Q.s:245 .bss.packetChecksumFails:00000000 $d
/tmp/cczmVS9Q.s:251 .bss.numberofAux:00000000 $d
/tmp/cczmVS9Q.s:260 .bss.amsov:00000000 $d
/tmp/cczmVS9Q.s:267 .bss.amsuv:00000000 $d
/tmp/cczmVS9Q.s:274 .bss.module:00000000 $d
UNDEFINED SYMBOLS
initAMS
@ -350,4 +410,6 @@ amsWakeUp
amsAuxAndStatusMeasurement
amsCellMeasurement
amsCheckUnderOverVoltage
eeprom_write
amsReset
eeprom_read

Binary file not shown.

View File

@ -1,4 +1,4 @@
ARM GAS /tmp/ccAH3LoS.s page 1
ARM GAS /tmp/ccG8CDMT.s page 1
1 .cpu cortex-m4
@ -58,7 +58,7 @@ ARM GAS /tmp/ccAH3LoS.s page 1
27:Core/Src/TMP1075.c ****
28:Core/Src/TMP1075.c **** HAL_StatusTypeDef tmp1075_measure() {
29:Core/Src/TMP1075.c **** for (int i = 0; i < N_TEMP_SENSORS; i++) {
ARM GAS /tmp/ccAH3LoS.s page 2
ARM GAS /tmp/ccG8CDMT.s page 2
30:Core/Src/TMP1075.c **** if (tmp1075_sensor_read(i, &tmp1075_temps[i]) != HAL_OK ||
@ -118,7 +118,7 @@ ARM GAS /tmp/ccAH3LoS.s page 1
70 002a 00BF .align 2
71 .L3:
72 002c 00000000 .word hi2c
ARM GAS /tmp/ccAH3LoS.s page 3
ARM GAS /tmp/ccG8CDMT.s page 3
73 .cfi_endproc
@ -178,7 +178,7 @@ ARM GAS /tmp/ccAH3LoS.s page 1
117 .loc 1 20 8 is_stmt 0 view .LVU22
118 0012 0346 mov r3, r0
119 0014 10B9 cbnz r0, .L7
ARM GAS /tmp/ccAH3LoS.s page 4
ARM GAS /tmp/ccG8CDMT.s page 4
120 .LBE3:
@ -238,7 +238,7 @@ ARM GAS /tmp/ccAH3LoS.s page 1
167 .loc 1 46 3 is_stmt 1 view .LVU31
168 .loc 1 46 35 is_stmt 0 view .LVU32
169 0006 4000 lsls r0, r0, #1
ARM GAS /tmp/ccAH3LoS.s page 5
ARM GAS /tmp/ccG8CDMT.s page 5
170 .LVL12:
@ -298,7 +298,7 @@ ARM GAS /tmp/ccAH3LoS.s page 1
215 .loc 1 55 1 view .LVU50
216 .align 2
217 .L16:
ARM GAS /tmp/ccAH3LoS.s page 6
ARM GAS /tmp/ccG8CDMT.s page 6
218 0034 00000000 .word hi2c
@ -358,7 +358,7 @@ ARM GAS /tmp/ccAH3LoS.s page 1
32:Core/Src/TMP1075.c **** }
264 .loc 1 32 18 view .LVU61
265 001a 0120 movs r0, #1
ARM GAS /tmp/ccAH3LoS.s page 7
ARM GAS /tmp/ccG8CDMT.s page 7
266 001c FCE7 b .L19
@ -394,27 +394,27 @@ ARM GAS /tmp/ccAH3LoS.s page 1
298 .file 6 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_dma.h"
299 .file 7 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_i2c.h"
300 .file 8 "Core/Inc/TMP1075.h"
ARM GAS /tmp/ccAH3LoS.s page 8
ARM GAS /tmp/ccG8CDMT.s page 8
DEFINED SYMBOLS
*ABS*:00000000 TMP1075.c
/tmp/ccAH3LoS.s:21 .text.tmp1075_sensor_init:00000000 $t
/tmp/ccAH3LoS.s:27 .text.tmp1075_sensor_init:00000000 tmp1075_sensor_init
/tmp/ccAH3LoS.s:72 .text.tmp1075_sensor_init:0000002c $d
/tmp/ccAH3LoS.s:283 .bss.hi2c:00000000 hi2c
/tmp/ccAH3LoS.s:77 .text.tmp1075_init:00000000 $t
/tmp/ccAH3LoS.s:83 .text.tmp1075_init:00000000 tmp1075_init
/tmp/ccAH3LoS.s:141 .text.tmp1075_init:00000020 $d
/tmp/ccAH3LoS.s:146 .text.tmp1075_sensor_read:00000000 $t
/tmp/ccAH3LoS.s:152 .text.tmp1075_sensor_read:00000000 tmp1075_sensor_read
/tmp/ccAH3LoS.s:218 .text.tmp1075_sensor_read:00000034 $d
/tmp/ccAH3LoS.s:223 .text.tmp1075_measure:00000000 $t
/tmp/ccAH3LoS.s:229 .text.tmp1075_measure:00000000 tmp1075_measure
/tmp/ccAH3LoS.s:273 .text.tmp1075_measure:00000024 $d
/tmp/ccAH3LoS.s:290 .bss.tmp1075_temps:00000000 tmp1075_temps
/tmp/ccAH3LoS.s:280 .bss.hi2c:00000000 $d
/tmp/ccAH3LoS.s:287 .bss.tmp1075_temps:00000000 $d
/tmp/ccG8CDMT.s:21 .text.tmp1075_sensor_init:00000000 $t
/tmp/ccG8CDMT.s:27 .text.tmp1075_sensor_init:00000000 tmp1075_sensor_init
/tmp/ccG8CDMT.s:72 .text.tmp1075_sensor_init:0000002c $d
/tmp/ccG8CDMT.s:283 .bss.hi2c:00000000 hi2c
/tmp/ccG8CDMT.s:77 .text.tmp1075_init:00000000 $t
/tmp/ccG8CDMT.s:83 .text.tmp1075_init:00000000 tmp1075_init
/tmp/ccG8CDMT.s:141 .text.tmp1075_init:00000020 $d
/tmp/ccG8CDMT.s:146 .text.tmp1075_sensor_read:00000000 $t
/tmp/ccG8CDMT.s:152 .text.tmp1075_sensor_read:00000000 tmp1075_sensor_read
/tmp/ccG8CDMT.s:218 .text.tmp1075_sensor_read:00000034 $d
/tmp/ccG8CDMT.s:223 .text.tmp1075_measure:00000000 $t
/tmp/ccG8CDMT.s:229 .text.tmp1075_measure:00000000 tmp1075_measure
/tmp/ccG8CDMT.s:273 .text.tmp1075_measure:00000024 $d
/tmp/ccG8CDMT.s:290 .bss.tmp1075_temps:00000000 tmp1075_temps
/tmp/ccG8CDMT.s:280 .bss.hi2c:00000000 $d
/tmp/ccG8CDMT.s:287 .bss.tmp1075_temps:00000000 $d
UNDEFINED SYMBOLS
HAL_I2C_Master_Transmit

View File

@ -23,7 +23,10 @@ build/debug/Core/Src/main.o: Core/Src/main.c Core/Inc/main.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_pwr.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_pwr_ex.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h \
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi_ex.h
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi_ex.h \
Core/Inc/AMS_HighLevel.h Core/Inc/ADBMS_Abstraction.h \
Core/Inc/ADBMS_CMD_MAKROS.h Core/Inc/ADBMS_LL_Driver.h Core/Inc/main.h \
Core/Inc/24LC02.h
Core/Inc/main.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h:
Core/Inc/stm32f3xx_hal_conf.h:
@ -52,3 +55,9 @@ Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_pwr.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_pwr_ex.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h:
Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi_ex.h:
Core/Inc/AMS_HighLevel.h:
Core/Inc/ADBMS_Abstraction.h:
Core/Inc/ADBMS_CMD_MAKROS.h:
Core/Inc/ADBMS_LL_Driver.h:
Core/Inc/main.h:
Core/Inc/24LC02.h:

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -1,4 +1,4 @@
ARM GAS /tmp/ccWIYQYX.s page 1
ARM GAS /tmp/ccnUDuAL.s page 1
1 .cpu cortex-m4
@ -58,7 +58,7 @@ ARM GAS /tmp/ccWIYQYX.s page 1
28:Core/Src/stm32f3xx_hal_msp.c **** /* USER CODE BEGIN TD */
29:Core/Src/stm32f3xx_hal_msp.c ****
30:Core/Src/stm32f3xx_hal_msp.c **** /* USER CODE END TD */
ARM GAS /tmp/ccWIYQYX.s page 2
ARM GAS /tmp/ccnUDuAL.s page 2
31:Core/Src/stm32f3xx_hal_msp.c ****
@ -118,7 +118,7 @@ ARM GAS /tmp/ccWIYQYX.s page 1
43 0006 9A69 ldr r2, [r3, #24]
44 0008 42F00102 orr r2, r2, #1
45 000c 9A61 str r2, [r3, #24]
ARM GAS /tmp/ccWIYQYX.s page 3
ARM GAS /tmp/ccnUDuAL.s page 3
46 .loc 1 70 3 view .LVU4
@ -178,7 +178,7 @@ ARM GAS /tmp/ccWIYQYX.s page 1
92 HAL_SPI_MspInit:
93 .LVL1:
94 .LFB124:
ARM GAS /tmp/ccWIYQYX.s page 4
ARM GAS /tmp/ccnUDuAL.s page 4
81:Core/Src/stm32f3xx_hal_msp.c ****
@ -238,7 +238,7 @@ ARM GAS /tmp/ccWIYQYX.s page 1
108:Core/Src/stm32f3xx_hal_msp.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
109:Core/Src/stm32f3xx_hal_msp.c **** GPIO_InitStruct.Alternate = GPIO_AF5_SPI2;
110:Core/Src/stm32f3xx_hal_msp.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
ARM GAS /tmp/ccWIYQYX.s page 5
ARM GAS /tmp/ccnUDuAL.s page 5
111:Core/Src/stm32f3xx_hal_msp.c ****
@ -298,7 +298,7 @@ ARM GAS /tmp/ccWIYQYX.s page 1
158 .loc 1 99 5 view .LVU33
159 0044 029B ldr r3, [sp, #8]
160 .LBE5:
ARM GAS /tmp/ccWIYQYX.s page 6
ARM GAS /tmp/ccnUDuAL.s page 6
99:Core/Src/stm32f3xx_hal_msp.c **** /**SPI2 GPIO Configuration
@ -358,7 +358,7 @@ ARM GAS /tmp/ccWIYQYX.s page 1
205 .LFB125:
118:Core/Src/stm32f3xx_hal_msp.c ****
119:Core/Src/stm32f3xx_hal_msp.c **** /**
ARM GAS /tmp/ccWIYQYX.s page 7
ARM GAS /tmp/ccnUDuAL.s page 7
120:Core/Src/stm32f3xx_hal_msp.c **** * @brief SPI MSP De-Initialization
@ -418,7 +418,7 @@ ARM GAS /tmp/ccWIYQYX.s page 1
231 0010 23F48043 bic r3, r3, #16384
232 0014 D361 str r3, [r2, #28]
140:Core/Src/stm32f3xx_hal_msp.c ****
ARM GAS /tmp/ccWIYQYX.s page 8
ARM GAS /tmp/ccnUDuAL.s page 8
233 .loc 1 140 5 view .LVU54
@ -449,20 +449,20 @@ ARM GAS /tmp/ccWIYQYX.s page 1
258 .file 7 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_dma.h"
259 .file 8 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_spi.h"
260 .file 9 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_cortex.h"
ARM GAS /tmp/ccWIYQYX.s page 9
ARM GAS /tmp/ccnUDuAL.s page 9
DEFINED SYMBOLS
*ABS*:00000000 stm32f3xx_hal_msp.c
/tmp/ccWIYQYX.s:21 .text.HAL_MspInit:00000000 $t
/tmp/ccWIYQYX.s:27 .text.HAL_MspInit:00000000 HAL_MspInit
/tmp/ccWIYQYX.s:81 .text.HAL_MspInit:00000038 $d
/tmp/ccWIYQYX.s:86 .text.HAL_SPI_MspInit:00000000 $t
/tmp/ccWIYQYX.s:92 .text.HAL_SPI_MspInit:00000000 HAL_SPI_MspInit
/tmp/ccWIYQYX.s:191 .text.HAL_SPI_MspInit:00000064 $d
/tmp/ccWIYQYX.s:197 .text.HAL_SPI_MspDeInit:00000000 $t
/tmp/ccWIYQYX.s:203 .text.HAL_SPI_MspDeInit:00000000 HAL_SPI_MspDeInit
/tmp/ccWIYQYX.s:245 .text.HAL_SPI_MspDeInit:00000024 $d
/tmp/ccnUDuAL.s:21 .text.HAL_MspInit:00000000 $t
/tmp/ccnUDuAL.s:27 .text.HAL_MspInit:00000000 HAL_MspInit
/tmp/ccnUDuAL.s:81 .text.HAL_MspInit:00000038 $d
/tmp/ccnUDuAL.s:86 .text.HAL_SPI_MspInit:00000000 $t
/tmp/ccnUDuAL.s:92 .text.HAL_SPI_MspInit:00000000 HAL_SPI_MspInit
/tmp/ccnUDuAL.s:191 .text.HAL_SPI_MspInit:00000064 $d
/tmp/ccnUDuAL.s:197 .text.HAL_SPI_MspDeInit:00000000 $t
/tmp/ccnUDuAL.s:203 .text.HAL_SPI_MspDeInit:00000000 HAL_SPI_MspDeInit
/tmp/ccnUDuAL.s:245 .text.HAL_SPI_MspDeInit:00000024 $d
UNDEFINED SYMBOLS
HAL_NVIC_SetPriorityGrouping

View File

@ -1,4 +1,4 @@
ARM GAS /tmp/ccU3gq2x.s page 1
ARM GAS /tmp/ccWK24qs.s page 1
1 .cpu cortex-m4
@ -58,7 +58,7 @@ ARM GAS /tmp/ccU3gq2x.s page 1
28:Core/Src/stm32f3xx_it.c **** /* USER CODE BEGIN TD */
29:Core/Src/stm32f3xx_it.c ****
30:Core/Src/stm32f3xx_it.c **** /* USER CODE END TD */
ARM GAS /tmp/ccU3gq2x.s page 2
ARM GAS /tmp/ccWK24qs.s page 2
31:Core/Src/stm32f3xx_it.c ****
@ -118,7 +118,7 @@ ARM GAS /tmp/ccU3gq2x.s page 1
77:Core/Src/stm32f3xx_it.c **** }
37 .loc 1 77 3 view .LVU2
75:Core/Src/stm32f3xx_it.c **** {
ARM GAS /tmp/ccU3gq2x.s page 3
ARM GAS /tmp/ccWK24qs.s page 3
38 .loc 1 75 10 view .LVU3
@ -178,7 +178,7 @@ ARM GAS /tmp/ccU3gq2x.s page 1
98:Core/Src/stm32f3xx_it.c **** */
99:Core/Src/stm32f3xx_it.c **** void MemManage_Handler(void)
100:Core/Src/stm32f3xx_it.c **** {
ARM GAS /tmp/ccU3gq2x.s page 4
ARM GAS /tmp/ccWK24qs.s page 4
75 .loc 1 100 1 view -0
@ -238,7 +238,7 @@ ARM GAS /tmp/ccU3gq2x.s page 1
119:Core/Src/stm32f3xx_it.c **** {
107 .loc 1 119 9 view .LVU15
108 0000 FEE7 b .L8
ARM GAS /tmp/ccU3gq2x.s page 5
ARM GAS /tmp/ccWK24qs.s page 5
109 .cfi_endproc
@ -298,7 +298,7 @@ ARM GAS /tmp/ccU3gq2x.s page 1
144 .loc 1 145 1 view -0
145 .cfi_startproc
146 @ args = 0, pretend = 0, frame = 0
ARM GAS /tmp/ccU3gq2x.s page 6
ARM GAS /tmp/ccWK24qs.s page 6
147 @ frame_needed = 0, uses_anonymous_args = 0
@ -358,7 +358,7 @@ ARM GAS /tmp/ccU3gq2x.s page 1
169:Core/Src/stm32f3xx_it.c **** */
170:Core/Src/stm32f3xx_it.c **** void PendSV_Handler(void)
171:Core/Src/stm32f3xx_it.c **** {
ARM GAS /tmp/ccU3gq2x.s page 7
ARM GAS /tmp/ccWK24qs.s page 7
182 .loc 1 171 1 view -0
@ -417,29 +417,29 @@ ARM GAS /tmp/ccU3gq2x.s page 1
217 .text
218 .Letext0:
219 .file 2 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h"
ARM GAS /tmp/ccU3gq2x.s page 8
ARM GAS /tmp/ccWK24qs.s page 8
DEFINED SYMBOLS
*ABS*:00000000 stm32f3xx_it.c
/tmp/ccU3gq2x.s:21 .text.NMI_Handler:00000000 $t
/tmp/ccU3gq2x.s:27 .text.NMI_Handler:00000000 NMI_Handler
/tmp/ccU3gq2x.s:44 .text.HardFault_Handler:00000000 $t
/tmp/ccU3gq2x.s:50 .text.HardFault_Handler:00000000 HardFault_Handler
/tmp/ccU3gq2x.s:67 .text.MemManage_Handler:00000000 $t
/tmp/ccU3gq2x.s:73 .text.MemManage_Handler:00000000 MemManage_Handler
/tmp/ccU3gq2x.s:90 .text.BusFault_Handler:00000000 $t
/tmp/ccU3gq2x.s:96 .text.BusFault_Handler:00000000 BusFault_Handler
/tmp/ccU3gq2x.s:113 .text.UsageFault_Handler:00000000 $t
/tmp/ccU3gq2x.s:119 .text.UsageFault_Handler:00000000 UsageFault_Handler
/tmp/ccU3gq2x.s:136 .text.SVC_Handler:00000000 $t
/tmp/ccU3gq2x.s:142 .text.SVC_Handler:00000000 SVC_Handler
/tmp/ccU3gq2x.s:155 .text.DebugMon_Handler:00000000 $t
/tmp/ccU3gq2x.s:161 .text.DebugMon_Handler:00000000 DebugMon_Handler
/tmp/ccU3gq2x.s:174 .text.PendSV_Handler:00000000 $t
/tmp/ccU3gq2x.s:180 .text.PendSV_Handler:00000000 PendSV_Handler
/tmp/ccU3gq2x.s:193 .text.SysTick_Handler:00000000 $t
/tmp/ccU3gq2x.s:199 .text.SysTick_Handler:00000000 SysTick_Handler
/tmp/ccWK24qs.s:21 .text.NMI_Handler:00000000 $t
/tmp/ccWK24qs.s:27 .text.NMI_Handler:00000000 NMI_Handler
/tmp/ccWK24qs.s:44 .text.HardFault_Handler:00000000 $t
/tmp/ccWK24qs.s:50 .text.HardFault_Handler:00000000 HardFault_Handler
/tmp/ccWK24qs.s:67 .text.MemManage_Handler:00000000 $t
/tmp/ccWK24qs.s:73 .text.MemManage_Handler:00000000 MemManage_Handler
/tmp/ccWK24qs.s:90 .text.BusFault_Handler:00000000 $t
/tmp/ccWK24qs.s:96 .text.BusFault_Handler:00000000 BusFault_Handler
/tmp/ccWK24qs.s:113 .text.UsageFault_Handler:00000000 $t
/tmp/ccWK24qs.s:119 .text.UsageFault_Handler:00000000 UsageFault_Handler
/tmp/ccWK24qs.s:136 .text.SVC_Handler:00000000 $t
/tmp/ccWK24qs.s:142 .text.SVC_Handler:00000000 SVC_Handler
/tmp/ccWK24qs.s:155 .text.DebugMon_Handler:00000000 $t
/tmp/ccWK24qs.s:161 .text.DebugMon_Handler:00000000 DebugMon_Handler
/tmp/ccWK24qs.s:174 .text.PendSV_Handler:00000000 $t
/tmp/ccWK24qs.s:180 .text.PendSV_Handler:00000000 PendSV_Handler
/tmp/ccWK24qs.s:193 .text.SysTick_Handler:00000000 $t
/tmp/ccWK24qs.s:199 .text.SysTick_Handler:00000000 SysTick_Handler
UNDEFINED SYMBOLS
HAL_IncTick

View File

@ -1,4 +1,4 @@
ARM GAS /tmp/ccPbylKY.s page 1
ARM GAS /tmp/ccfpmOVP.s page 1
1 .cpu cortex-m4
@ -58,7 +58,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
28:Core/Src/syscalls.c **** #include <signal.h>
29:Core/Src/syscalls.c **** #include <time.h>
30:Core/Src/syscalls.c **** #include <sys/time.h>
ARM GAS /tmp/ccPbylKY.s page 2
ARM GAS /tmp/ccfpmOVP.s page 2
31:Core/Src/syscalls.c **** #include <sys/times.h>
@ -118,7 +118,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
65 .thumb_func
67 _kill:
68 .LVL0:
ARM GAS /tmp/ccPbylKY.s page 3
ARM GAS /tmp/ccfpmOVP.s page 3
69 .LFB27:
@ -178,7 +178,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
63:Core/Src/syscalls.c **** _kill(status, -1);
114 .loc 1 63 3 is_stmt 1 view .LVU15
115 0002 4FF0FF31 mov r1, #-1
ARM GAS /tmp/ccPbylKY.s page 4
ARM GAS /tmp/ccfpmOVP.s page 4
116 0006 FFF7FEFF bl _kill
@ -238,7 +238,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
161 000a FFF7FEFF bl __io_getchar
162 .LVL7:
163 .loc 1 74 9 discriminator 1 view .LVU28
ARM GAS /tmp/ccPbylKY.s page 5
ARM GAS /tmp/ccfpmOVP.s page 5
164 000e 2146 mov r1, r4
@ -298,7 +298,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
210 .loc 1 82 3 is_stmt 1 view .LVU38
83:Core/Src/syscalls.c **** int DataIdx;
211 .loc 1 83 3 view .LVU39
ARM GAS /tmp/ccPbylKY.s page 6
ARM GAS /tmp/ccfpmOVP.s page 6
84:Core/Src/syscalls.c ****
@ -358,7 +358,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
256 @ link register save eliminated.
94:Core/Src/syscalls.c **** (void)file;
257 .loc 1 94 3 view .LVU52
ARM GAS /tmp/ccPbylKY.s page 7
ARM GAS /tmp/ccfpmOVP.s page 7
95:Core/Src/syscalls.c **** return -1;
@ -418,7 +418,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
105:Core/Src/syscalls.c ****
106:Core/Src/syscalls.c **** int _isatty(int file)
107:Core/Src/syscalls.c **** {
ARM GAS /tmp/ccPbylKY.s page 8
ARM GAS /tmp/ccfpmOVP.s page 8
306 .loc 1 107 1 is_stmt 1 view -0
@ -478,7 +478,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
352 .thumb
353 .thumb_func
355 _open:
ARM GAS /tmp/ccPbylKY.s page 9
ARM GAS /tmp/ccfpmOVP.s page 9
356 .LVL26:
@ -538,7 +538,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
401 .cfi_def_cfa_offset 8
402 .cfi_offset 3, -8
403 .cfi_offset 14, -4
ARM GAS /tmp/ccPbylKY.s page 10
ARM GAS /tmp/ccfpmOVP.s page 10
130:Core/Src/syscalls.c **** (void)status;
@ -598,7 +598,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
449 .LFE37:
451 .section .text._times,"ax",%progbits
452 .align 1
ARM GAS /tmp/ccPbylKY.s page 11
ARM GAS /tmp/ccfpmOVP.s page 11
453 .global _times
@ -658,7 +658,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
497 .loc 1 153 1 is_stmt 0 view .LVU106
498 0006 0020 movs r0, #0
499 .LVL35:
ARM GAS /tmp/ccPbylKY.s page 12
ARM GAS /tmp/ccfpmOVP.s page 12
500 .loc 1 153 1 view .LVU107
@ -718,7 +718,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
164:Core/Src/syscalls.c **** {
548 .loc 1 164 1 is_stmt 1 view -0
549 .cfi_startproc
ARM GAS /tmp/ccPbylKY.s page 13
ARM GAS /tmp/ccfpmOVP.s page 13
550 @ args = 0, pretend = 0, frame = 0
@ -778,7 +778,7 @@ ARM GAS /tmp/ccPbylKY.s page 1
596 0008 0360 str r3, [r0]
175:Core/Src/syscalls.c **** return -1;
597 .loc 1 175 3 is_stmt 1 view .LVU128
ARM GAS /tmp/ccPbylKY.s page 14
ARM GAS /tmp/ccfpmOVP.s page 14
176:Core/Src/syscalls.c **** }
@ -809,51 +809,51 @@ ARM GAS /tmp/ccPbylKY.s page 1
627 .file 7 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
628 .file 8 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
629 .file 9 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
ARM GAS /tmp/ccPbylKY.s page 15
ARM GAS /tmp/ccfpmOVP.s page 15
DEFINED SYMBOLS
*ABS*:00000000 syscalls.c
/tmp/ccPbylKY.s:21 .text.initialise_monitor_handles:00000000 $t
/tmp/ccPbylKY.s:27 .text.initialise_monitor_handles:00000000 initialise_monitor_handles
/tmp/ccPbylKY.s:40 .text._getpid:00000000 $t
/tmp/ccPbylKY.s:46 .text._getpid:00000000 _getpid
/tmp/ccPbylKY.s:61 .text._kill:00000000 $t
/tmp/ccPbylKY.s:67 .text._kill:00000000 _kill
/tmp/ccPbylKY.s:95 .text._exit:00000000 $t
/tmp/ccPbylKY.s:101 .text._exit:00000000 _exit
/tmp/ccPbylKY.s:127 .text._read:00000000 $t
/tmp/ccPbylKY.s:133 .text._read:00000000 _read
/tmp/ccPbylKY.s:188 .text._write:00000000 $t
/tmp/ccPbylKY.s:194 .text._write:00000000 _write
/tmp/ccPbylKY.s:243 .text._close:00000000 $t
/tmp/ccPbylKY.s:249 .text._close:00000000 _close
/tmp/ccPbylKY.s:268 .text._fstat:00000000 $t
/tmp/ccPbylKY.s:274 .text._fstat:00000000 _fstat
/tmp/ccPbylKY.s:297 .text._isatty:00000000 $t
/tmp/ccPbylKY.s:303 .text._isatty:00000000 _isatty
/tmp/ccPbylKY.s:322 .text._lseek:00000000 $t
/tmp/ccPbylKY.s:328 .text._lseek:00000000 _lseek
/tmp/ccPbylKY.s:349 .text._open:00000000 $t
/tmp/ccPbylKY.s:355 .text._open:00000000 _open
/tmp/ccPbylKY.s:386 .text._wait:00000000 $t
/tmp/ccPbylKY.s:392 .text._wait:00000000 _wait
/tmp/ccPbylKY.s:419 .text._unlink:00000000 $t
/tmp/ccPbylKY.s:425 .text._unlink:00000000 _unlink
/tmp/ccPbylKY.s:452 .text._times:00000000 $t
/tmp/ccPbylKY.s:458 .text._times:00000000 _times
/tmp/ccPbylKY.s:477 .text._stat:00000000 $t
/tmp/ccPbylKY.s:483 .text._stat:00000000 _stat
/tmp/ccPbylKY.s:506 .text._link:00000000 $t
/tmp/ccPbylKY.s:512 .text._link:00000000 _link
/tmp/ccPbylKY.s:540 .text._fork:00000000 $t
/tmp/ccPbylKY.s:546 .text._fork:00000000 _fork
/tmp/ccPbylKY.s:570 .text._execve:00000000 $t
/tmp/ccPbylKY.s:576 .text._execve:00000000 _execve
/tmp/ccPbylKY.s:609 .data.environ:00000000 environ
/tmp/ccPbylKY.s:606 .data.environ:00000000 $d
/tmp/ccPbylKY.s:616 .bss.__env:00000000 __env
/tmp/ccPbylKY.s:613 .bss.__env:00000000 $d
/tmp/ccfpmOVP.s:21 .text.initialise_monitor_handles:00000000 $t
/tmp/ccfpmOVP.s:27 .text.initialise_monitor_handles:00000000 initialise_monitor_handles
/tmp/ccfpmOVP.s:40 .text._getpid:00000000 $t
/tmp/ccfpmOVP.s:46 .text._getpid:00000000 _getpid
/tmp/ccfpmOVP.s:61 .text._kill:00000000 $t
/tmp/ccfpmOVP.s:67 .text._kill:00000000 _kill
/tmp/ccfpmOVP.s:95 .text._exit:00000000 $t
/tmp/ccfpmOVP.s:101 .text._exit:00000000 _exit
/tmp/ccfpmOVP.s:127 .text._read:00000000 $t
/tmp/ccfpmOVP.s:133 .text._read:00000000 _read
/tmp/ccfpmOVP.s:188 .text._write:00000000 $t
/tmp/ccfpmOVP.s:194 .text._write:00000000 _write
/tmp/ccfpmOVP.s:243 .text._close:00000000 $t
/tmp/ccfpmOVP.s:249 .text._close:00000000 _close
/tmp/ccfpmOVP.s:268 .text._fstat:00000000 $t
/tmp/ccfpmOVP.s:274 .text._fstat:00000000 _fstat
/tmp/ccfpmOVP.s:297 .text._isatty:00000000 $t
/tmp/ccfpmOVP.s:303 .text._isatty:00000000 _isatty
/tmp/ccfpmOVP.s:322 .text._lseek:00000000 $t
/tmp/ccfpmOVP.s:328 .text._lseek:00000000 _lseek
/tmp/ccfpmOVP.s:349 .text._open:00000000 $t
/tmp/ccfpmOVP.s:355 .text._open:00000000 _open
/tmp/ccfpmOVP.s:386 .text._wait:00000000 $t
/tmp/ccfpmOVP.s:392 .text._wait:00000000 _wait
/tmp/ccfpmOVP.s:419 .text._unlink:00000000 $t
/tmp/ccfpmOVP.s:425 .text._unlink:00000000 _unlink
/tmp/ccfpmOVP.s:452 .text._times:00000000 $t
/tmp/ccfpmOVP.s:458 .text._times:00000000 _times
/tmp/ccfpmOVP.s:477 .text._stat:00000000 $t
/tmp/ccfpmOVP.s:483 .text._stat:00000000 _stat
/tmp/ccfpmOVP.s:506 .text._link:00000000 $t
/tmp/ccfpmOVP.s:512 .text._link:00000000 _link
/tmp/ccfpmOVP.s:540 .text._fork:00000000 $t
/tmp/ccfpmOVP.s:546 .text._fork:00000000 _fork
/tmp/ccfpmOVP.s:570 .text._execve:00000000 $t
/tmp/ccfpmOVP.s:576 .text._execve:00000000 _execve
/tmp/ccfpmOVP.s:609 .data.environ:00000000 environ
/tmp/ccfpmOVP.s:606 .data.environ:00000000 $d
/tmp/ccfpmOVP.s:616 .bss.__env:00000000 __env
/tmp/ccfpmOVP.s:613 .bss.__env:00000000 $d
UNDEFINED SYMBOLS
__errno

View File

@ -1,4 +1,4 @@
ARM GAS /tmp/ccpaUy5E.s page 1
ARM GAS /tmp/ccQHo1tW.s page 1
1 .cpu cortex-m4
@ -58,7 +58,7 @@ ARM GAS /tmp/ccpaUy5E.s page 1
27:Core/Src/sysmem.c **** /**
28:Core/Src/sysmem.c **** * Pointer to the current high watermark of the heap usage
29:Core/Src/sysmem.c **** */
ARM GAS /tmp/ccpaUy5E.s page 2
ARM GAS /tmp/ccQHo1tW.s page 2
30:Core/Src/sysmem.c **** static uint8_t *__sbrk_heap_end = NULL;
@ -118,7 +118,7 @@ ARM GAS /tmp/ccpaUy5E.s page 1
62:Core/Src/sysmem.c **** /* Initialize heap end at first call */
63:Core/Src/sysmem.c **** if (NULL == __sbrk_heap_end)
51 .loc 1 63 3 view .LVU9
ARM GAS /tmp/ccpaUy5E.s page 3
ARM GAS /tmp/ccQHo1tW.s page 3
52 .loc 1 63 12 is_stmt 0 view .LVU10
@ -178,7 +178,7 @@ ARM GAS /tmp/ccpaUy5E.s page 1
88 0026 F2E7 b .L2
89 .LVL8:
90 .L7:
ARM GAS /tmp/ccpaUy5E.s page 4
ARM GAS /tmp/ccQHo1tW.s page 4
71:Core/Src/sysmem.c **** return (void *)-1;
@ -214,16 +214,16 @@ ARM GAS /tmp/ccpaUy5E.s page 1
120 .file 3 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
121 .file 4 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
122 .file 5 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
ARM GAS /tmp/ccpaUy5E.s page 5
ARM GAS /tmp/ccQHo1tW.s page 5
DEFINED SYMBOLS
*ABS*:00000000 sysmem.c
/tmp/ccpaUy5E.s:21 .text._sbrk:00000000 $t
/tmp/ccpaUy5E.s:27 .text._sbrk:00000000 _sbrk
/tmp/ccpaUy5E.s:104 .text._sbrk:00000038 $d
/tmp/ccpaUy5E.s:115 .bss.__sbrk_heap_end:00000000 __sbrk_heap_end
/tmp/ccpaUy5E.s:112 .bss.__sbrk_heap_end:00000000 $d
/tmp/ccQHo1tW.s:21 .text._sbrk:00000000 $t
/tmp/ccQHo1tW.s:27 .text._sbrk:00000000 _sbrk
/tmp/ccQHo1tW.s:104 .text._sbrk:00000038 $d
/tmp/ccQHo1tW.s:115 .bss.__sbrk_heap_end:00000000 __sbrk_heap_end
/tmp/ccQHo1tW.s:112 .bss.__sbrk_heap_end:00000000 $d
UNDEFINED SYMBOLS
__errno

View File

@ -1,4 +1,4 @@
ARM GAS /tmp/ccjfISPt.s page 1
ARM GAS /tmp/cclMhFfC.s page 1
1 .cpu cortex-m4
@ -58,7 +58,7 @@ ARM GAS /tmp/ccjfISPt.s page 1
28:Core/Src/system_stm32f3xx.c **** *-----------------------------------------------------------------------------
29:Core/Src/system_stm32f3xx.c **** * System Clock source | HSI
30:Core/Src/system_stm32f3xx.c **** *-----------------------------------------------------------------------------
ARM GAS /tmp/ccjfISPt.s page 2
ARM GAS /tmp/cclMhFfC.s page 2
31:Core/Src/system_stm32f3xx.c **** * SYSCLK(Hz) | 8000000
@ -118,7 +118,7 @@ ARM GAS /tmp/ccjfISPt.s page 1
85:Core/Src/system_stm32f3xx.c **** */
86:Core/Src/system_stm32f3xx.c **** #if !defined (HSE_VALUE)
87:Core/Src/system_stm32f3xx.c **** #define HSE_VALUE ((uint32_t)8000000) /*!< Default value of the External oscillator in Hz.
ARM GAS /tmp/ccjfISPt.s page 3
ARM GAS /tmp/cclMhFfC.s page 3
88:Core/Src/system_stm32f3xx.c **** This value can be provided and adapted by the user
@ -178,7 +178,7 @@ ARM GAS /tmp/ccjfISPt.s page 1
142:Core/Src/system_stm32f3xx.c **** updated automatically.
143:Core/Src/system_stm32f3xx.c **** */
144:Core/Src/system_stm32f3xx.c **** uint32_t SystemCoreClock = 8000000;
ARM GAS /tmp/ccjfISPt.s page 4
ARM GAS /tmp/cclMhFfC.s page 4
145:Core/Src/system_stm32f3xx.c ****
@ -238,7 +238,7 @@ ARM GAS /tmp/ccjfISPt.s page 1
46 0010 00ED00E0 .word -536810240
47 .cfi_endproc
48 .LFE123:
ARM GAS /tmp/ccjfISPt.s page 5
ARM GAS /tmp/cclMhFfC.s page 5
50 .section .text.SystemCoreClockUpdate,"ax",%progbits
@ -298,7 +298,7 @@ ARM GAS /tmp/ccjfISPt.s page 1
65 .LVL0:
222:Core/Src/system_stm32f3xx.c ****
223:Core/Src/system_stm32f3xx.c **** /* Get SYSCLK source -------------------------------------------------------*/
ARM GAS /tmp/ccjfISPt.s page 6
ARM GAS /tmp/cclMhFfC.s page 6
224:Core/Src/system_stm32f3xx.c **** tmp = RCC->CFGR & RCC_CFGR_SWS;
@ -358,7 +358,7 @@ ARM GAS /tmp/ccjfISPt.s page 1
254:Core/Src/system_stm32f3xx.c **** {
255:Core/Src/system_stm32f3xx.c **** /* HSI oscillator clock divided by 2 selected as PLL clock entry */
256:Core/Src/system_stm32f3xx.c **** SystemCoreClock = (HSI_VALUE >> 1) * pllmull;
ARM GAS /tmp/ccjfISPt.s page 7
ARM GAS /tmp/cclMhFfC.s page 7
257:Core/Src/system_stm32f3xx.c **** }
@ -418,7 +418,7 @@ ARM GAS /tmp/ccjfISPt.s page 1
236:Core/Src/system_stm32f3xx.c **** pllsource = RCC->CFGR & RCC_CFGR_PLLSRC;
121 .loc 1 236 7 view .LVU26
236:Core/Src/system_stm32f3xx.c **** pllsource = RCC->CFGR & RCC_CFGR_PLLSRC;
ARM GAS /tmp/ccjfISPt.s page 8
ARM GAS /tmp/cclMhFfC.s page 8
122 .loc 1 236 20 is_stmt 0 view .LVU27
@ -478,7 +478,7 @@ ARM GAS /tmp/ccjfISPt.s page 1
161 005a 01F00F01 and r1, r1, #15
260:Core/Src/system_stm32f3xx.c **** /* HSE oscillator clock selected as PREDIV1 clock entry */
162 .loc 1 260 22 view .LVU43
ARM GAS /tmp/ccjfISPt.s page 9
ARM GAS /tmp/cclMhFfC.s page 9
163 005e 0131 adds r1, r1, #1
@ -538,7 +538,7 @@ ARM GAS /tmp/ccjfISPt.s page 1
211 01020304
211 06
212 000d 070809 .ascii "\007\010\011"
ARM GAS /tmp/ccjfISPt.s page 10
ARM GAS /tmp/cclMhFfC.s page 10
213 .global SystemCoreClock
@ -553,22 +553,22 @@ ARM GAS /tmp/ccjfISPt.s page 1
224 .file 4 "Drivers/CMSIS/Include/core_cm4.h"
225 .file 5 "Drivers/CMSIS/Device/ST/STM32F3xx/Include/system_stm32f3xx.h"
226 .file 6 "Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f302x8.h"
ARM GAS /tmp/ccjfISPt.s page 11
ARM GAS /tmp/cclMhFfC.s page 11
DEFINED SYMBOLS
*ABS*:00000000 system_stm32f3xx.c
/tmp/ccjfISPt.s:21 .text.SystemInit:00000000 $t
/tmp/ccjfISPt.s:27 .text.SystemInit:00000000 SystemInit
/tmp/ccjfISPt.s:46 .text.SystemInit:00000010 $d
/tmp/ccjfISPt.s:51 .text.SystemCoreClockUpdate:00000000 $t
/tmp/ccjfISPt.s:57 .text.SystemCoreClockUpdate:00000000 SystemCoreClockUpdate
/tmp/ccjfISPt.s:190 .text.SystemCoreClockUpdate:00000078 $d
/tmp/ccjfISPt.s:218 .data.SystemCoreClock:00000000 SystemCoreClock
/tmp/ccjfISPt.s:210 .rodata.AHBPrescTable:00000000 AHBPrescTable
/tmp/ccjfISPt.s:203 .rodata.APBPrescTable:00000000 APBPrescTable
/tmp/ccjfISPt.s:200 .rodata.APBPrescTable:00000000 $d
/tmp/ccjfISPt.s:207 .rodata.AHBPrescTable:00000000 $d
/tmp/ccjfISPt.s:215 .data.SystemCoreClock:00000000 $d
/tmp/cclMhFfC.s:21 .text.SystemInit:00000000 $t
/tmp/cclMhFfC.s:27 .text.SystemInit:00000000 SystemInit
/tmp/cclMhFfC.s:46 .text.SystemInit:00000010 $d
/tmp/cclMhFfC.s:51 .text.SystemCoreClockUpdate:00000000 $t
/tmp/cclMhFfC.s:57 .text.SystemCoreClockUpdate:00000000 SystemCoreClockUpdate
/tmp/cclMhFfC.s:190 .text.SystemCoreClockUpdate:00000078 $d
/tmp/cclMhFfC.s:218 .data.SystemCoreClock:00000000 SystemCoreClock
/tmp/cclMhFfC.s:210 .rodata.AHBPrescTable:00000000 AHBPrescTable
/tmp/cclMhFfC.s:203 .rodata.APBPrescTable:00000000 APBPrescTable
/tmp/cclMhFfC.s:200 .rodata.APBPrescTable:00000000 $d
/tmp/cclMhFfC.s:207 .rodata.AHBPrescTable:00000000 $d
/tmp/cclMhFfC.s:215 .data.SystemCoreClock:00000000 $d
NO UNDEFINED SYMBOLS