make it possible to run via code

This commit is contained in:
davidscherer
2023-06-04 17:50:49 +02:00
parent d48136cb1a
commit 9f80b5e11c
35 changed files with 3565 additions and 3560 deletions

View File

@ -1,4 +1,4 @@
ARM GAS /tmp/ccaolay4.s page 1
ARM GAS /tmp/ccmNZWYr.s page 1
1 .cpu cortex-m4
@ -58,7 +58,7 @@ ARM GAS /tmp/ccaolay4.s page 1
27:Core/Src/AMS_HighLevel.c **** uint16_t amsov = 0;
28:Core/Src/AMS_HighLevel.c ****
29:Core/Src/AMS_HighLevel.c **** uint8_t amserrorcode = 0;
ARM GAS /tmp/ccaolay4.s page 2
ARM GAS /tmp/ccmNZWYr.s page 2
30:Core/Src/AMS_HighLevel.c **** uint8_t amswarningcode = 0;
@ -118,7 +118,7 @@ ARM GAS /tmp/ccaolay4.s page 1
58 .loc 1 55 3 is_stmt 1 view .LVU8
59 .loc 1 55 9 is_stmt 0 view .LVU9
60 001e 0C4B ldr r3, .L6+16
ARM GAS /tmp/ccaolay4.s page 3
ARM GAS /tmp/ccmNZWYr.s page 3
61 0020 40F21A62 movw r2, #1562
@ -178,7 +178,7 @@ ARM GAS /tmp/ccaolay4.s page 1
63:Core/Src/AMS_HighLevel.c ****
64:Core/Src/AMS_HighLevel.c **** void AMS_Loop()
65:Core/Src/AMS_HighLevel.c **** {
ARM GAS /tmp/ccaolay4.s page 4
ARM GAS /tmp/ccmNZWYr.s page 4
66:Core/Src/AMS_HighLevel.c ****
@ -238,7 +238,7 @@ ARM GAS /tmp/ccaolay4.s page 1
120:Core/Src/AMS_HighLevel.c **** amsConfigOverVoltage(amsov);
121:Core/Src/AMS_HighLevel.c **** amsConfigUnderVoltage(amsuv);
122:Core/Src/AMS_HighLevel.c **** amsConfigAuxMeasurement(0xFFFF);
ARM GAS /tmp/ccaolay4.s page 5
ARM GAS /tmp/ccmNZWYr.s page 5
123:Core/Src/AMS_HighLevel.c **** amsClearAux();
@ -298,7 +298,7 @@ ARM GAS /tmp/ccaolay4.s page 1
118 .loc 1 165 4 view .LVU18
119 0006 144B ldr r3, .L12
120 0008 1888 ldrh r0, [r3]
ARM GAS /tmp/ccaolay4.s page 6
ARM GAS /tmp/ccmNZWYr.s page 6
121 000a FFF7FEFF bl amsConfigOverVoltage
@ -358,7 +358,7 @@ ARM GAS /tmp/ccaolay4.s page 1
161 .loc 1 179 4 is_stmt 1 view .LVU30
162 0044 FFF7FEFF bl amsStopBalancing
163 .LVL15:
ARM GAS /tmp/ccaolay4.s page 7
ARM GAS /tmp/ccmNZWYr.s page 7
180:Core/Src/AMS_HighLevel.c ****
@ -418,7 +418,7 @@ ARM GAS /tmp/ccaolay4.s page 1
210 .align 1
211 .global AMS_Charging_Loop
212 .syntax unified
ARM GAS /tmp/ccaolay4.s page 8
ARM GAS /tmp/ccmNZWYr.s page 8
213 .thumb
@ -478,7 +478,7 @@ ARM GAS /tmp/ccaolay4.s page 1
200:Core/Src/AMS_HighLevel.c **** {
260 .loc 1 200 1 is_stmt 1 view -0
261 .cfi_startproc
ARM GAS /tmp/ccaolay4.s page 9
ARM GAS /tmp/ccmNZWYr.s page 9
262 @ args = 0, pretend = 0, frame = 0
@ -538,7 +538,7 @@ ARM GAS /tmp/ccaolay4.s page 1
231:Core/Src/AMS_HighLevel.c **** {
232:Core/Src/AMS_HighLevel.c **** if(module.cellVoltages[n] > stopbalancingthreshold)
233:Core/Src/AMS_HighLevel.c **** {
ARM GAS /tmp/ccaolay4.s page 10
ARM GAS /tmp/ccmNZWYr.s page 10
234:Core/Src/AMS_HighLevel.c **** uint16_t dv = module.cellVoltages[n]-lowestcellvoltage;
@ -598,7 +598,7 @@ ARM GAS /tmp/ccaolay4.s page 1
280:Core/Src/AMS_HighLevel.c **** }
281:Core/Src/AMS_HighLevel.c **** return balancingdone;
294 .loc 1 281 2 is_stmt 1 view .LVU55
ARM GAS /tmp/ccaolay4.s page 11
ARM GAS /tmp/ccmNZWYr.s page 11
282:Core/Src/AMS_HighLevel.c **** }
@ -658,7 +658,7 @@ ARM GAS /tmp/ccaolay4.s page 1
333 .loc 1 209 42 is_stmt 0 discriminator 2 view .LVU71
334 0034 DBB2 uxtb r3, r3
335 .LVL24:
ARM GAS /tmp/ccaolay4.s page 12
ARM GAS /tmp/ccmNZWYr.s page 12
336 .L19:
@ -718,7 +718,7 @@ ARM GAS /tmp/ccaolay4.s page 1
375 .loc 1 248 8 is_stmt 1 view .LVU86
248:Core/Src/AMS_HighLevel.c **** {
376 .loc 1 248 10 is_stmt 0 view .LVU87
ARM GAS /tmp/ccaolay4.s page 13
ARM GAS /tmp/ccmNZWYr.s page 13
377 005a 032B cmp r3, #3
@ -778,7 +778,7 @@ ARM GAS /tmp/ccaolay4.s page 1
417 .LVL33:
245:Core/Src/AMS_HighLevel.c **** }
418 .loc 1 245 4 view .LVU102
ARM GAS /tmp/ccaolay4.s page 14
ARM GAS /tmp/ccmNZWYr.s page 14
419 007a 6420 movs r0, #100
@ -838,7 +838,7 @@ ARM GAS /tmp/ccaolay4.s page 1
461 00ae AC45 cmp ip, r5
462 00b0 E7DD ble .L26
237:Core/Src/AMS_HighLevel.c **** channelstobalance |= 1<<n;
ARM GAS /tmp/ccaolay4.s page 15
ARM GAS /tmp/ccmNZWYr.s page 15
463 .loc 1 237 8 is_stmt 1 view .LVU115
@ -898,7 +898,7 @@ ARM GAS /tmp/ccaolay4.s page 1
260:Core/Src/AMS_HighLevel.c **** {
504 .loc 1 260 45 is_stmt 0 discriminator 2 view .LVU129
505 00ca DBB2 uxtb r3, r3
ARM GAS /tmp/ccaolay4.s page 16
ARM GAS /tmp/ccmNZWYr.s page 16
506 .LVL47:
@ -958,7 +958,7 @@ ARM GAS /tmp/ccaolay4.s page 1
546 .LVL52:
271:Core/Src/AMS_HighLevel.c **** }
547 .loc 1 271 6 view .LVU144
ARM GAS /tmp/ccaolay4.s page 17
ARM GAS /tmp/ccmNZWYr.s page 17
548 00f4 6420 movs r0, #100
@ -1018,7 +1018,7 @@ ARM GAS /tmp/ccaolay4.s page 1
600 .LVL56:
601 .LFB139:
289:Core/Src/AMS_HighLevel.c **** uint8_t writeErrorLog(uint8_t errorCode)
ARM GAS /tmp/ccaolay4.s page 18
ARM GAS /tmp/ccmNZWYr.s page 18
290:Core/Src/AMS_HighLevel.c **** {
@ -1078,7 +1078,7 @@ ARM GAS /tmp/ccaolay4.s page 1
648 .loc 1 299 17 is_stmt 0 view .LVU160
649 0010 2268 ldr r2, [r4]
650 .loc 1 299 4 view .LVU161
ARM GAS /tmp/ccaolay4.s page 19
ARM GAS /tmp/ccmNZWYr.s page 19
651 0012 9042 cmp r0, r2
@ -1138,7 +1138,7 @@ ARM GAS /tmp/ccaolay4.s page 1
701 0000 10B5 push {r4, lr}
702 .cfi_def_cfa_offset 8
703 .cfi_offset 4, -8
ARM GAS /tmp/ccaolay4.s page 20
ARM GAS /tmp/ccmNZWYr.s page 20
704 .cfi_offset 14, -4
@ -1198,7 +1198,7 @@ ARM GAS /tmp/ccaolay4.s page 1
746 .loc 1 132 4 view .LVU183
132:Core/Src/AMS_HighLevel.c **** /* if(channelstobalance & 0x20000){
747 .loc 1 132 22 is_stmt 0 view .LVU184
ARM GAS /tmp/ccaolay4.s page 21
ARM GAS /tmp/ccmNZWYr.s page 21
748 0040 0748 ldr r0, .L53+12
@ -1258,7 +1258,7 @@ ARM GAS /tmp/ccaolay4.s page 1
795 0004 1B78 ldrb r3, [r3] @ zero_extendqisi2
796 0006 0C4A ldr r2, .L62+4
797 0008 1278 ldrb r2, [r2] @ zero_extendqisi2
ARM GAS /tmp/ccaolay4.s page 22
ARM GAS /tmp/ccmNZWYr.s page 22
69:Core/Src/AMS_HighLevel.c **** {
@ -1318,7 +1318,7 @@ ARM GAS /tmp/ccaolay4.s page 1
839 0034 00000000 .word currentAMSState
840 0038 00000000 .word lastAMSState
841 .cfi_endproc
ARM GAS /tmp/ccaolay4.s page 23
ARM GAS /tmp/ccmNZWYr.s page 23
842 .LFE131:
@ -1378,7 +1378,7 @@ ARM GAS /tmp/ccaolay4.s page 1
921 .global internalbalancingalgo
922 .section .data.internalbalancingalgo,"aw"
925 internalbalancingalgo:
ARM GAS /tmp/ccaolay4.s page 24
ARM GAS /tmp/ccmNZWYr.s page 24
926 0000 01 .byte 1
@ -1436,81 +1436,81 @@ ARM GAS /tmp/ccaolay4.s page 1
989 .file 9 "Core/Inc/ADBMS_Abstraction.h"
990 .file 10 "Core/Inc/AMS_HighLevel.h"
991 .file 11 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h"
ARM GAS /tmp/ccaolay4.s page 25
ARM GAS /tmp/ccmNZWYr.s page 25
DEFINED SYMBOLS
*ABS*:0000000000000000 AMS_HighLevel.c
/tmp/ccaolay4.s:21 .text.AMS_Init:0000000000000000 $t
/tmp/ccaolay4.s:27 .text.AMS_Init:0000000000000000 AMS_Init
/tmp/ccaolay4.s:89 .text.AMS_Init:0000000000000040 $d
/tmp/ccaolay4.s:931 .bss.eepromconfigured:0000000000000000 eepromconfigured
/tmp/ccaolay4.s:866 .bss.numberofAux:0000000000000000 numberofAux
/tmp/ccaolay4.s:872 .data.numberofCells:0000000000000000 numberofCells
/tmp/ccaolay4.s:891 .bss.amsov:0000000000000000 amsov
/tmp/ccaolay4.s:898 .bss.amsuv:0000000000000000 amsuv
/tmp/ccaolay4.s:860 .bss.currentAMSState:0000000000000000 currentAMSState
/tmp/ccaolay4.s:99 .text.AMS_Warning_Loop:0000000000000000 $t
/tmp/ccaolay4.s:105 .text.AMS_Warning_Loop:0000000000000000 AMS_Warning_Loop
/tmp/ccaolay4.s:181 .text.AMS_Warning_Loop:0000000000000058 $d
/tmp/ccaolay4.s:978 .bss.module:0000000000000000 module
/tmp/ccaolay4.s:189 .text.AMS_Error_Loop:0000000000000000 $t
/tmp/ccaolay4.s:195 .text.AMS_Error_Loop:0000000000000000 AMS_Error_Loop
/tmp/ccaolay4.s:210 .text.AMS_Charging_Loop:0000000000000000 $t
/tmp/ccaolay4.s:216 .text.AMS_Charging_Loop:0000000000000000 AMS_Charging_Loop
/tmp/ccaolay4.s:231 .text.AMS_Discharging_Loop:0000000000000000 $t
/tmp/ccaolay4.s:237 .text.AMS_Discharging_Loop:0000000000000000 AMS_Discharging_Loop
/tmp/ccaolay4.s:252 .text.AMS_Balancing_Loop:0000000000000000 $t
/tmp/ccaolay4.s:258 .text.AMS_Balancing_Loop:0000000000000000 AMS_Balancing_Loop
/tmp/ccaolay4.s:555 .text.AMS_Balancing_Loop:00000000000000fc $d
/tmp/ccaolay4.s:925 .data.internalbalancingalgo:0000000000000000 internalbalancingalgo
/tmp/ccaolay4.s:912 .data.stopbalancingthreshold:0000000000000000 stopbalancingthreshold
/tmp/ccaolay4.s:919 .data.startbalancingthreshold:0000000000000000 startbalancingthreshold
/tmp/ccaolay4.s:905 .data.balancingvoltagedelta:0000000000000000 balancingvoltagedelta
/tmp/ccaolay4.s:569 .text.writeWarningLog:0000000000000000 $t
/tmp/ccaolay4.s:575 .text.writeWarningLog:0000000000000000 writeWarningLog
/tmp/ccaolay4.s:593 .text.writeErrorLog:0000000000000000 $t
/tmp/ccaolay4.s:599 .text.writeErrorLog:0000000000000000 writeErrorLog
/tmp/ccaolay4.s:617 .text.integrateCurrent:0000000000000000 $t
/tmp/ccaolay4.s:623 .text.integrateCurrent:0000000000000000 integrateCurrent
/tmp/ccaolay4.s:681 .text.integrateCurrent:0000000000000038 $d
/tmp/ccaolay4.s:945 .bss.lastticks:0000000000000000 lastticks
/tmp/ccaolay4.s:938 .bss.currenttick:0000000000000000 currenttick
/tmp/ccaolay4.s:952 .bss.currentintegrator:0000000000000000 currentintegrator
/tmp/ccaolay4.s:689 .text.AMS_Idle_Loop:0000000000000000 $t
/tmp/ccaolay4.s:695 .text.AMS_Idle_Loop:0000000000000000 AMS_Idle_Loop
/tmp/ccaolay4.s:767 .text.AMS_Idle_Loop:0000000000000054 $d
/tmp/ccaolay4.s:848 .bss.channelstobalance.0:0000000000000000 channelstobalance.0
/tmp/ccaolay4.s:776 .text.AMS_Loop:0000000000000000 $t
/tmp/ccaolay4.s:782 .text.AMS_Loop:0000000000000000 AMS_Loop
/tmp/ccaolay4.s:839 .text.AMS_Loop:0000000000000034 $d
/tmp/ccaolay4.s:854 .bss.lastAMSState:0000000000000000 lastAMSState
/tmp/ccaolay4.s:845 .bss.channelstobalance.0:0000000000000000 $d
/tmp/ccaolay4.s:855 .bss.lastAMSState:0000000000000000 $d
/tmp/ccaolay4.s:861 .bss.currentAMSState:0000000000000000 $d
/tmp/ccaolay4.s:867 .bss.numberofAux:0000000000000000 $d
/tmp/ccaolay4.s:878 .bss.amswarningcode:0000000000000000 amswarningcode
/tmp/ccaolay4.s:879 .bss.amswarningcode:0000000000000000 $d
/tmp/ccaolay4.s:884 .bss.amserrorcode:0000000000000000 amserrorcode
/tmp/ccaolay4.s:885 .bss.amserrorcode:0000000000000000 $d
/tmp/ccaolay4.s:888 .bss.amsov:0000000000000000 $d
/tmp/ccaolay4.s:895 .bss.amsuv:0000000000000000 $d
/tmp/ccaolay4.s:902 .data.balancingvoltagedelta:0000000000000000 $d
ARM GAS /tmp/ccaolay4.s page 26
/tmp/ccmNZWYr.s:21 .text.AMS_Init:0000000000000000 $t
/tmp/ccmNZWYr.s:27 .text.AMS_Init:0000000000000000 AMS_Init
/tmp/ccmNZWYr.s:89 .text.AMS_Init:0000000000000040 $d
/tmp/ccmNZWYr.s:931 .bss.eepromconfigured:0000000000000000 eepromconfigured
/tmp/ccmNZWYr.s:866 .bss.numberofAux:0000000000000000 numberofAux
/tmp/ccmNZWYr.s:872 .data.numberofCells:0000000000000000 numberofCells
/tmp/ccmNZWYr.s:891 .bss.amsov:0000000000000000 amsov
/tmp/ccmNZWYr.s:898 .bss.amsuv:0000000000000000 amsuv
/tmp/ccmNZWYr.s:860 .bss.currentAMSState:0000000000000000 currentAMSState
/tmp/ccmNZWYr.s:99 .text.AMS_Warning_Loop:0000000000000000 $t
/tmp/ccmNZWYr.s:105 .text.AMS_Warning_Loop:0000000000000000 AMS_Warning_Loop
/tmp/ccmNZWYr.s:181 .text.AMS_Warning_Loop:0000000000000058 $d
/tmp/ccmNZWYr.s:978 .bss.module:0000000000000000 module
/tmp/ccmNZWYr.s:189 .text.AMS_Error_Loop:0000000000000000 $t
/tmp/ccmNZWYr.s:195 .text.AMS_Error_Loop:0000000000000000 AMS_Error_Loop
/tmp/ccmNZWYr.s:210 .text.AMS_Charging_Loop:0000000000000000 $t
/tmp/ccmNZWYr.s:216 .text.AMS_Charging_Loop:0000000000000000 AMS_Charging_Loop
/tmp/ccmNZWYr.s:231 .text.AMS_Discharging_Loop:0000000000000000 $t
/tmp/ccmNZWYr.s:237 .text.AMS_Discharging_Loop:0000000000000000 AMS_Discharging_Loop
/tmp/ccmNZWYr.s:252 .text.AMS_Balancing_Loop:0000000000000000 $t
/tmp/ccmNZWYr.s:258 .text.AMS_Balancing_Loop:0000000000000000 AMS_Balancing_Loop
/tmp/ccmNZWYr.s:555 .text.AMS_Balancing_Loop:00000000000000fc $d
/tmp/ccmNZWYr.s:925 .data.internalbalancingalgo:0000000000000000 internalbalancingalgo
/tmp/ccmNZWYr.s:912 .data.stopbalancingthreshold:0000000000000000 stopbalancingthreshold
/tmp/ccmNZWYr.s:919 .data.startbalancingthreshold:0000000000000000 startbalancingthreshold
/tmp/ccmNZWYr.s:905 .data.balancingvoltagedelta:0000000000000000 balancingvoltagedelta
/tmp/ccmNZWYr.s:569 .text.writeWarningLog:0000000000000000 $t
/tmp/ccmNZWYr.s:575 .text.writeWarningLog:0000000000000000 writeWarningLog
/tmp/ccmNZWYr.s:593 .text.writeErrorLog:0000000000000000 $t
/tmp/ccmNZWYr.s:599 .text.writeErrorLog:0000000000000000 writeErrorLog
/tmp/ccmNZWYr.s:617 .text.integrateCurrent:0000000000000000 $t
/tmp/ccmNZWYr.s:623 .text.integrateCurrent:0000000000000000 integrateCurrent
/tmp/ccmNZWYr.s:681 .text.integrateCurrent:0000000000000038 $d
/tmp/ccmNZWYr.s:945 .bss.lastticks:0000000000000000 lastticks
/tmp/ccmNZWYr.s:938 .bss.currenttick:0000000000000000 currenttick
/tmp/ccmNZWYr.s:952 .bss.currentintegrator:0000000000000000 currentintegrator
/tmp/ccmNZWYr.s:689 .text.AMS_Idle_Loop:0000000000000000 $t
/tmp/ccmNZWYr.s:695 .text.AMS_Idle_Loop:0000000000000000 AMS_Idle_Loop
/tmp/ccmNZWYr.s:767 .text.AMS_Idle_Loop:0000000000000054 $d
/tmp/ccmNZWYr.s:848 .bss.channelstobalance.0:0000000000000000 channelstobalance.0
/tmp/ccmNZWYr.s:776 .text.AMS_Loop:0000000000000000 $t
/tmp/ccmNZWYr.s:782 .text.AMS_Loop:0000000000000000 AMS_Loop
/tmp/ccmNZWYr.s:839 .text.AMS_Loop:0000000000000034 $d
/tmp/ccmNZWYr.s:854 .bss.lastAMSState:0000000000000000 lastAMSState
/tmp/ccmNZWYr.s:845 .bss.channelstobalance.0:0000000000000000 $d
/tmp/ccmNZWYr.s:855 .bss.lastAMSState:0000000000000000 $d
/tmp/ccmNZWYr.s:861 .bss.currentAMSState:0000000000000000 $d
/tmp/ccmNZWYr.s:867 .bss.numberofAux:0000000000000000 $d
/tmp/ccmNZWYr.s:878 .bss.amswarningcode:0000000000000000 amswarningcode
/tmp/ccmNZWYr.s:879 .bss.amswarningcode:0000000000000000 $d
/tmp/ccmNZWYr.s:884 .bss.amserrorcode:0000000000000000 amserrorcode
/tmp/ccmNZWYr.s:885 .bss.amserrorcode:0000000000000000 $d
/tmp/ccmNZWYr.s:888 .bss.amsov:0000000000000000 $d
/tmp/ccmNZWYr.s:895 .bss.amsuv:0000000000000000 $d
/tmp/ccmNZWYr.s:902 .data.balancingvoltagedelta:0000000000000000 $d
ARM GAS /tmp/ccmNZWYr.s page 26
/tmp/ccaolay4.s:909 .data.stopbalancingthreshold:0000000000000000 $d
/tmp/ccaolay4.s:916 .data.startbalancingthreshold:0000000000000000 $d
/tmp/ccaolay4.s:932 .bss.eepromconfigured:0000000000000000 $d
/tmp/ccaolay4.s:935 .bss.currenttick:0000000000000000 $d
/tmp/ccaolay4.s:942 .bss.lastticks:0000000000000000 $d
/tmp/ccaolay4.s:949 .bss.currentintegrator:0000000000000000 $d
/tmp/ccaolay4.s:958 .data.stateofcharge:0000000000000000 stateofcharge
/tmp/ccaolay4.s:964 .bss.BalancingActive:0000000000000000 BalancingActive
/tmp/ccaolay4.s:965 .bss.BalancingActive:0000000000000000 $d
/tmp/ccaolay4.s:971 .bss.balancedCells:0000000000000000 balancedCells
/tmp/ccaolay4.s:968 .bss.balancedCells:0000000000000000 $d
/tmp/ccaolay4.s:975 .bss.module:0000000000000000 $d
/tmp/ccmNZWYr.s:909 .data.stopbalancingthreshold:0000000000000000 $d
/tmp/ccmNZWYr.s:916 .data.startbalancingthreshold:0000000000000000 $d
/tmp/ccmNZWYr.s:932 .bss.eepromconfigured:0000000000000000 $d
/tmp/ccmNZWYr.s:935 .bss.currenttick:0000000000000000 $d
/tmp/ccmNZWYr.s:942 .bss.lastticks:0000000000000000 $d
/tmp/ccmNZWYr.s:949 .bss.currentintegrator:0000000000000000 $d
/tmp/ccmNZWYr.s:958 .data.stateofcharge:0000000000000000 stateofcharge
/tmp/ccmNZWYr.s:964 .bss.BalancingActive:0000000000000000 BalancingActive
/tmp/ccmNZWYr.s:965 .bss.BalancingActive:0000000000000000 $d
/tmp/ccmNZWYr.s:971 .bss.balancedCells:0000000000000000 balancedCells
/tmp/ccmNZWYr.s:968 .bss.balancedCells:0000000000000000 $d
/tmp/ccmNZWYr.s:975 .bss.module:0000000000000000 $d
UNDEFINED SYMBOLS
initAMS