added piggyback PCB for ACU-DCDC, calibrated VSense
This commit is contained in:
@ -11,16 +11,16 @@
|
||||
#include "stm32f3xx_hal.h"
|
||||
|
||||
// convert ADC quants to V
|
||||
#define ADC_V_FACTOR ((3.3f / 4095) * (3.3f / 3.14f)) // 3.3V / 12bit
|
||||
#define ADC_V_FACTOR (3.3f / 4095) // 3.3V / 12bit
|
||||
// scale to LV by divider to mV
|
||||
#define LV_SENSE_FACTOR (1e3 * (ADC_V_FACTOR * ((12.f + 1.8f) / 1.8f))) // scaled with voltage divider
|
||||
#define LV_SENSE_FACTOR (1e3 * (ADC_V_FACTOR * ((12.f + 1.8f) / 1.8f)) * 1.054f) // scaled with voltage divider and measured deviation
|
||||
|
||||
// convert ADC quants to I_S in mA
|
||||
#define CURR_SENSE_IS_FACTOR_9A (ADC_V_FACTOR / 1.2f) // 3.3V / 12bit / 1.2kOhm
|
||||
#define CURR_SENSE_IS_FACTOR_4_5A (ADC_V_FACTOR / 1.f)
|
||||
#define CURR_SENSE_IS_FACTOR_1A (ADC_V_FACTOR / 4.f)
|
||||
#define CURR_SENSE_IS_FACTOR_4_5A (ADC_V_FACTOR / 1.f) // 3.3V / 12bit / 1kOhm
|
||||
#define CURR_SENSE_IS_FACTOR_1A (ADC_V_FACTOR / 4.f) // 3.3V / 12bit / 4kOhm
|
||||
// convert ADC quants to I_L in mA
|
||||
#define CURR_SENSE_FACTOR_1A (300 * CURR_SENSE_IS_FACTOR_1A) // typical current sense ratio (datasheet PROFET)
|
||||
#define CURR_SENSE_FACTOR_1A (300 * CURR_SENSE_IS_FACTOR_1A) // typical current sense ratio, (k_ILIS in datasheet of PROFET)
|
||||
#define CURR_SENSE_FACTOR_4_5A (1500 * CURR_SENSE_IS_FACTOR_4_5A)
|
||||
#define CURR_SENSE_FACTOR_9A (3900 * CURR_SENSE_IS_FACTOR_9A)
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ void ChannelControl_UpdateGPIOs(enable_gpios UpdatePorts){
|
||||
}
|
||||
}
|
||||
if ((prev_epsc_state == 1 && UpdatePorts.porta.epsc == 0) || (prev_epsc_state == UpdatePorts.porta.epsc)){
|
||||
HAL_GPIO_WritePin(PC_EN_GPIO_Port, PC_EN_Pin, 0); // ensure precharge is disabled, when not needed or stopped
|
||||
HAL_GPIO_WritePin(PC_EN_GPIO_Port, PC_EN_Pin, 0); // ensure precharge is disabled, when not needed or stopped before completion
|
||||
HAL_GPIO_WritePin(IN5_GPIO_Port, IN5_Pin, (GPIO_PinState)UpdatePorts.porta.epsc);
|
||||
prev_epsc_state = UpdatePorts.porta.epsc;
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ extern volatile uint8_t canmsg_received;
|
||||
|
||||
volatile enable_gpios update_ports;
|
||||
uint32_t lastheartbeat;
|
||||
int inhibit_SDC; // wenn =1 ist es unmoeglich den SDC zu schliessen
|
||||
int inhibit_SDC; // prevents closing of SDC when =1
|
||||
/* USER CODE END 0 */
|
||||
|
||||
/**
|
||||
@ -120,6 +120,10 @@ int main(void)
|
||||
MX_TIM6_Init();
|
||||
/* USER CODE BEGIN 2 */
|
||||
|
||||
ChannelControl_init();
|
||||
can_init(&hcan);
|
||||
current_monitor_init(&hadc1, &hadc2, &htim6);
|
||||
|
||||
// begin start-up animation
|
||||
HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_SET);
|
||||
HAL_Delay(100);
|
||||
@ -146,13 +150,9 @@ int main(void)
|
||||
|
||||
HAL_GPIO_WritePin(LED4_GPIO_Port, LED4_Pin, GPIO_PIN_SET); // indicates running STM
|
||||
|
||||
ChannelControl_init();
|
||||
can_init(&hcan);
|
||||
current_monitor_init(&hadc1, &hadc2, &htim6);
|
||||
uint32_t lasttick = HAL_GetTick(); // time in ms since start
|
||||
|
||||
uint32_t lasttick = HAL_GetTick(); // Zeit in ms seit Start
|
||||
|
||||
inhibit_SDC = 0;
|
||||
inhibit_SDC = 0; // allow SDC to be closed
|
||||
|
||||
/* USER CODE END 2 */
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -39,13 +39,13 @@ Idx Name Size VMA LMA File off Algn
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
17 .debug_line 000170a9 00000000 00000000 000422d2 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
18 .debug_str 000b7e00 00000000 00000000 0005937b 2**0
|
||||
18 .debug_str 000b7df6 00000000 00000000 0005937b 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
19 .comment 00000043 00000000 00000000 0011117b 2**0
|
||||
19 .comment 00000043 00000000 00000000 00111171 2**0
|
||||
CONTENTS, READONLY
|
||||
20 .debug_frame 0000494c 00000000 00000000 001111c0 2**2
|
||||
20 .debug_frame 0000494c 00000000 00000000 001111b4 2**2
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
21 .debug_line_str 00000071 00000000 00000000 00115b0c 2**0
|
||||
21 .debug_line_str 00000071 00000000 00000000 00115b00 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
|
||||
Disassembly of section .text:
|
||||
@ -1449,7 +1449,7 @@ void ChannelControl_UpdateGPIOs(enable_gpios UpdatePorts){
|
||||
8000d68: 681b ldr r3, [r3, #0]
|
||||
8000d6a: 429a cmp r2, r3
|
||||
8000d6c: d115 bne.n 8000d9a <ChannelControl_UpdateGPIOs+0x146>
|
||||
HAL_GPIO_WritePin(PC_EN_GPIO_Port, PC_EN_Pin, 0); // ensure precharge is disabled, when not needed or stopped
|
||||
HAL_GPIO_WritePin(PC_EN_GPIO_Port, PC_EN_Pin, 0); // ensure precharge is disabled, when not needed or stopped before completion
|
||||
8000d6e: 2200 movs r2, #0
|
||||
8000d70: 2140 movs r1, #64 @ 0x40
|
||||
8000d72: 4835 ldr r0, [pc, #212] @ (8000e48 <ChannelControl_UpdateGPIOs+0x1f4>)
|
||||
@ -1724,7 +1724,7 @@ void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc) {
|
||||
8000fb0: 200000b8 .word 0x200000b8
|
||||
8000fb4: 200000b9 .word 0x200000b9
|
||||
8000fb8: 2000007c .word 0x2000007c
|
||||
8000fbc: 3d821665 .word 0x3d821665
|
||||
8000fbc: 3d778f79 .word 0x3d778f79
|
||||
8000fc0: 20000098 .word 0x20000098
|
||||
}
|
||||
}
|
||||
@ -1945,12 +1945,12 @@ void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc) {
|
||||
80011d8: 46bd mov sp, r7
|
||||
80011da: bd80 pop {r7, pc}
|
||||
80011dc: f3af 8000 nop.w
|
||||
80011e0: 8f000000 .word 0x8f000000
|
||||
80011e4: 4019f8ea .word 0x4019f8ea
|
||||
80011e0: a56db813 .word 0xa56db813
|
||||
80011e4: 401a0c2d .word 0x401a0c2d
|
||||
80011e8: 2000007c .word 0x2000007c
|
||||
80011ec: 20000098 .word 0x20000098
|
||||
80011f0: 403028fe .word 0x403028fe
|
||||
80011f4: 3fa29bff .word 0x3fa29bff
|
||||
80011f0: 40279e79 .word 0x40279e79
|
||||
80011f4: 3f9ab9ab .word 0x3f9ab9ab
|
||||
80011f8: 200000b9 .word 0x200000b9
|
||||
80011fc: 48000400 .word 0x48000400
|
||||
8001200: 200000b8 .word 0x200000b8
|
||||
@ -2002,122 +2002,122 @@ int main(void)
|
||||
8001232: f000 fae3 bl 80017fc <MX_TIM6_Init>
|
||||
/* USER CODE BEGIN 2 */
|
||||
|
||||
ChannelControl_init();
|
||||
8001236: f7ff fcf3 bl 8000c20 <ChannelControl_init>
|
||||
can_init(&hcan);
|
||||
800123a: 4860 ldr r0, [pc, #384] @ (80013bc <main+0x1b0>)
|
||||
800123c: f7ff faca bl 80007d4 <can_init>
|
||||
current_monitor_init(&hadc1, &hadc2, &htim6);
|
||||
8001240: 4a5f ldr r2, [pc, #380] @ (80013c0 <main+0x1b4>)
|
||||
8001242: 4960 ldr r1, [pc, #384] @ (80013c4 <main+0x1b8>)
|
||||
8001244: 4860 ldr r0, [pc, #384] @ (80013c8 <main+0x1bc>)
|
||||
8001246: f7ff fe07 bl 8000e58 <current_monitor_init>
|
||||
|
||||
// begin start-up animation
|
||||
HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_SET);
|
||||
8001236: 2201 movs r2, #1
|
||||
8001238: f44f 7100 mov.w r1, #512 @ 0x200
|
||||
800123c: 485f ldr r0, [pc, #380] @ (80013bc <main+0x1b0>)
|
||||
800123e: f003 fc7f bl 8004b40 <HAL_GPIO_WritePin>
|
||||
800124a: 2201 movs r2, #1
|
||||
800124c: f44f 7100 mov.w r1, #512 @ 0x200
|
||||
8001250: 485e ldr r0, [pc, #376] @ (80013cc <main+0x1c0>)
|
||||
8001252: f003 fc75 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_Delay(100);
|
||||
8001242: 2064 movs r0, #100 @ 0x64
|
||||
8001244: f001 f86a bl 800231c <HAL_Delay>
|
||||
8001256: 2064 movs r0, #100 @ 0x64
|
||||
8001258: f001 f860 bl 800231c <HAL_Delay>
|
||||
HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET);
|
||||
8001248: 2200 movs r2, #0
|
||||
800124a: f44f 7100 mov.w r1, #512 @ 0x200
|
||||
800124e: 485b ldr r0, [pc, #364] @ (80013bc <main+0x1b0>)
|
||||
8001250: f003 fc76 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
800125c: 2200 movs r2, #0
|
||||
800125e: f44f 7100 mov.w r1, #512 @ 0x200
|
||||
8001262: 485a ldr r0, [pc, #360] @ (80013cc <main+0x1c0>)
|
||||
8001264: f003 fc6c bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_SET);
|
||||
8001254: 2201 movs r2, #1
|
||||
8001256: f44f 7180 mov.w r1, #256 @ 0x100
|
||||
800125a: 4858 ldr r0, [pc, #352] @ (80013bc <main+0x1b0>)
|
||||
800125c: f003 fc70 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
8001268: 2201 movs r2, #1
|
||||
800126a: f44f 7180 mov.w r1, #256 @ 0x100
|
||||
800126e: 4857 ldr r0, [pc, #348] @ (80013cc <main+0x1c0>)
|
||||
8001270: f003 fc66 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_Delay(100);
|
||||
8001260: 2064 movs r0, #100 @ 0x64
|
||||
8001262: f001 f85b bl 800231c <HAL_Delay>
|
||||
8001274: 2064 movs r0, #100 @ 0x64
|
||||
8001276: f001 f851 bl 800231c <HAL_Delay>
|
||||
HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_RESET);
|
||||
8001266: 2200 movs r2, #0
|
||||
8001268: f44f 7180 mov.w r1, #256 @ 0x100
|
||||
800126c: 4853 ldr r0, [pc, #332] @ (80013bc <main+0x1b0>)
|
||||
800126e: f003 fc67 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
800127a: 2200 movs r2, #0
|
||||
800127c: f44f 7180 mov.w r1, #256 @ 0x100
|
||||
8001280: 4852 ldr r0, [pc, #328] @ (80013cc <main+0x1c0>)
|
||||
8001282: f003 fc5d bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_SET);
|
||||
8001272: 2201 movs r2, #1
|
||||
8001274: 2180 movs r1, #128 @ 0x80
|
||||
8001276: 4851 ldr r0, [pc, #324] @ (80013bc <main+0x1b0>)
|
||||
8001278: f003 fc62 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
8001286: 2201 movs r2, #1
|
||||
8001288: 2180 movs r1, #128 @ 0x80
|
||||
800128a: 4850 ldr r0, [pc, #320] @ (80013cc <main+0x1c0>)
|
||||
800128c: f003 fc58 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_Delay(100);
|
||||
800127c: 2064 movs r0, #100 @ 0x64
|
||||
800127e: f001 f84d bl 800231c <HAL_Delay>
|
||||
8001290: 2064 movs r0, #100 @ 0x64
|
||||
8001292: f001 f843 bl 800231c <HAL_Delay>
|
||||
HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_RESET);
|
||||
8001282: 2200 movs r2, #0
|
||||
8001284: 2180 movs r1, #128 @ 0x80
|
||||
8001286: 484d ldr r0, [pc, #308] @ (80013bc <main+0x1b0>)
|
||||
8001288: f003 fc5a bl 8004b40 <HAL_GPIO_WritePin>
|
||||
8001296: 2200 movs r2, #0
|
||||
8001298: 2180 movs r1, #128 @ 0x80
|
||||
800129a: 484c ldr r0, [pc, #304] @ (80013cc <main+0x1c0>)
|
||||
800129c: f003 fc50 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_GPIO_WritePin(LED4_GPIO_Port, LED4_Pin, GPIO_PIN_SET);
|
||||
800128c: 2201 movs r2, #1
|
||||
800128e: 2140 movs r1, #64 @ 0x40
|
||||
8001290: 484a ldr r0, [pc, #296] @ (80013bc <main+0x1b0>)
|
||||
8001292: f003 fc55 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
80012a0: 2201 movs r2, #1
|
||||
80012a2: 2140 movs r1, #64 @ 0x40
|
||||
80012a4: 4849 ldr r0, [pc, #292] @ (80013cc <main+0x1c0>)
|
||||
80012a6: f003 fc4b bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_Delay(100);
|
||||
8001296: 2064 movs r0, #100 @ 0x64
|
||||
8001298: f001 f840 bl 800231c <HAL_Delay>
|
||||
80012aa: 2064 movs r0, #100 @ 0x64
|
||||
80012ac: f001 f836 bl 800231c <HAL_Delay>
|
||||
HAL_GPIO_WritePin(LED4_GPIO_Port, LED3_Pin, GPIO_PIN_SET);
|
||||
800129c: 2201 movs r2, #1
|
||||
800129e: 2180 movs r1, #128 @ 0x80
|
||||
80012a0: 4846 ldr r0, [pc, #280] @ (80013bc <main+0x1b0>)
|
||||
80012a2: f003 fc4d bl 8004b40 <HAL_GPIO_WritePin>
|
||||
80012b0: 2201 movs r2, #1
|
||||
80012b2: 2180 movs r1, #128 @ 0x80
|
||||
80012b4: 4845 ldr r0, [pc, #276] @ (80013cc <main+0x1c0>)
|
||||
80012b6: f003 fc43 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_Delay(100);
|
||||
80012a6: 2064 movs r0, #100 @ 0x64
|
||||
80012a8: f001 f838 bl 800231c <HAL_Delay>
|
||||
80012ba: 2064 movs r0, #100 @ 0x64
|
||||
80012bc: f001 f82e bl 800231c <HAL_Delay>
|
||||
HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_SET);
|
||||
80012ac: 2201 movs r2, #1
|
||||
80012ae: f44f 7180 mov.w r1, #256 @ 0x100
|
||||
80012b2: 4842 ldr r0, [pc, #264] @ (80013bc <main+0x1b0>)
|
||||
80012b4: f003 fc44 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
80012c0: 2201 movs r2, #1
|
||||
80012c2: f44f 7180 mov.w r1, #256 @ 0x100
|
||||
80012c6: 4841 ldr r0, [pc, #260] @ (80013cc <main+0x1c0>)
|
||||
80012c8: f003 fc3a bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_Delay(100);
|
||||
80012b8: 2064 movs r0, #100 @ 0x64
|
||||
80012ba: f001 f82f bl 800231c <HAL_Delay>
|
||||
80012cc: 2064 movs r0, #100 @ 0x64
|
||||
80012ce: f001 f825 bl 800231c <HAL_Delay>
|
||||
HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_SET);
|
||||
80012be: 2201 movs r2, #1
|
||||
80012c0: f44f 7100 mov.w r1, #512 @ 0x200
|
||||
80012c4: 483d ldr r0, [pc, #244] @ (80013bc <main+0x1b0>)
|
||||
80012c6: f003 fc3b bl 8004b40 <HAL_GPIO_WritePin>
|
||||
80012d2: 2201 movs r2, #1
|
||||
80012d4: f44f 7100 mov.w r1, #512 @ 0x200
|
||||
80012d8: 483c ldr r0, [pc, #240] @ (80013cc <main+0x1c0>)
|
||||
80012da: f003 fc31 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_Delay(100);
|
||||
80012ca: 2064 movs r0, #100 @ 0x64
|
||||
80012cc: f001 f826 bl 800231c <HAL_Delay>
|
||||
80012de: 2064 movs r0, #100 @ 0x64
|
||||
80012e0: f001 f81c bl 800231c <HAL_Delay>
|
||||
HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET);
|
||||
80012d0: 2200 movs r2, #0
|
||||
80012d2: f44f 7100 mov.w r1, #512 @ 0x200
|
||||
80012d6: 4839 ldr r0, [pc, #228] @ (80013bc <main+0x1b0>)
|
||||
80012d8: f003 fc32 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
80012e4: 2200 movs r2, #0
|
||||
80012e6: f44f 7100 mov.w r1, #512 @ 0x200
|
||||
80012ea: 4838 ldr r0, [pc, #224] @ (80013cc <main+0x1c0>)
|
||||
80012ec: f003 fc28 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, GPIO_PIN_RESET);
|
||||
80012dc: 2200 movs r2, #0
|
||||
80012de: f44f 7180 mov.w r1, #256 @ 0x100
|
||||
80012e2: 4836 ldr r0, [pc, #216] @ (80013bc <main+0x1b0>)
|
||||
80012e4: f003 fc2c bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_RESET);
|
||||
80012e8: 2200 movs r2, #0
|
||||
80012ea: 2180 movs r1, #128 @ 0x80
|
||||
80012ec: 4833 ldr r0, [pc, #204] @ (80013bc <main+0x1b0>)
|
||||
80012ee: f003 fc27 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_GPIO_WritePin(LED4_GPIO_Port, LED4_Pin, GPIO_PIN_RESET);
|
||||
80012f2: 2200 movs r2, #0
|
||||
80012f4: 2140 movs r1, #64 @ 0x40
|
||||
80012f6: 4831 ldr r0, [pc, #196] @ (80013bc <main+0x1b0>)
|
||||
80012f0: 2200 movs r2, #0
|
||||
80012f2: f44f 7180 mov.w r1, #256 @ 0x100
|
||||
80012f6: 4835 ldr r0, [pc, #212] @ (80013cc <main+0x1c0>)
|
||||
80012f8: f003 fc22 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_RESET);
|
||||
80012fc: 2200 movs r2, #0
|
||||
80012fe: 2180 movs r1, #128 @ 0x80
|
||||
8001300: 4832 ldr r0, [pc, #200] @ (80013cc <main+0x1c0>)
|
||||
8001302: f003 fc1d bl 8004b40 <HAL_GPIO_WritePin>
|
||||
HAL_GPIO_WritePin(LED4_GPIO_Port, LED4_Pin, GPIO_PIN_RESET);
|
||||
8001306: 2200 movs r2, #0
|
||||
8001308: 2140 movs r1, #64 @ 0x40
|
||||
800130a: 4830 ldr r0, [pc, #192] @ (80013cc <main+0x1c0>)
|
||||
800130c: f003 fc18 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
// end start-up animation
|
||||
|
||||
HAL_GPIO_WritePin(LED4_GPIO_Port, LED4_Pin, GPIO_PIN_SET); // indicates running STM
|
||||
80012fc: 2201 movs r2, #1
|
||||
80012fe: 2140 movs r1, #64 @ 0x40
|
||||
8001300: 482e ldr r0, [pc, #184] @ (80013bc <main+0x1b0>)
|
||||
8001302: f003 fc1d bl 8004b40 <HAL_GPIO_WritePin>
|
||||
|
||||
ChannelControl_init();
|
||||
8001306: f7ff fc8b bl 8000c20 <ChannelControl_init>
|
||||
can_init(&hcan);
|
||||
800130a: 482d ldr r0, [pc, #180] @ (80013c0 <main+0x1b4>)
|
||||
800130c: f7ff fa62 bl 80007d4 <can_init>
|
||||
current_monitor_init(&hadc1, &hadc2, &htim6);
|
||||
8001310: 4a2c ldr r2, [pc, #176] @ (80013c4 <main+0x1b8>)
|
||||
8001312: 492d ldr r1, [pc, #180] @ (80013c8 <main+0x1bc>)
|
||||
8001310: 2201 movs r2, #1
|
||||
8001312: 2140 movs r1, #64 @ 0x40
|
||||
8001314: 482d ldr r0, [pc, #180] @ (80013cc <main+0x1c0>)
|
||||
8001316: f7ff fd9f bl 8000e58 <current_monitor_init>
|
||||
8001316: f003 fc13 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
|
||||
uint32_t lasttick = HAL_GetTick(); // Zeit in ms seit Start
|
||||
uint32_t lasttick = HAL_GetTick(); // time in ms since start
|
||||
800131a: f000 fff3 bl 8002304 <HAL_GetTick>
|
||||
800131e: 6078 str r0, [r7, #4]
|
||||
|
||||
inhibit_SDC = 0;
|
||||
inhibit_SDC = 0; // allow SDC to be closed
|
||||
8001320: 4b2b ldr r3, [pc, #172] @ (80013d0 <main+0x1c4>)
|
||||
8001322: 2200 movs r2, #0
|
||||
8001324: 601a str r2, [r3, #0]
|
||||
@ -2185,7 +2185,7 @@ int main(void)
|
||||
800138e: b2db uxtb r3, r3
|
||||
8001390: 461a mov r2, r3
|
||||
8001392: f44f 7100 mov.w r1, #512 @ 0x200
|
||||
8001396: 4809 ldr r0, [pc, #36] @ (80013bc <main+0x1b0>)
|
||||
8001396: 480d ldr r0, [pc, #52] @ (80013cc <main+0x1c0>)
|
||||
8001398: f003 fbd2 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
|
||||
HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, (GPIO_PinState)inhibit_SDC); // indicates watchdog-status
|
||||
@ -2194,7 +2194,7 @@ int main(void)
|
||||
80013a0: b2db uxtb r3, r3
|
||||
80013a2: 461a mov r2, r3
|
||||
80013a4: f44f 7180 mov.w r1, #256 @ 0x100
|
||||
80013a8: 4804 ldr r0, [pc, #16] @ (80013bc <main+0x1b0>)
|
||||
80013a8: 4808 ldr r0, [pc, #32] @ (80013cc <main+0x1c0>)
|
||||
80013aa: f003 fbc9 bl 8004b40 <HAL_GPIO_WritePin>
|
||||
|
||||
ChannelControl_UpdateGPIOs(update_ports);
|
||||
@ -2206,11 +2206,11 @@ int main(void)
|
||||
80013b6: f7ff fd89 bl 8000ecc <current_monitor_checklimits>
|
||||
if (canmsg_received){
|
||||
80013ba: e7b4 b.n 8001326 <main+0x11a>
|
||||
80013bc: 48000800 .word 0x48000800
|
||||
80013c0: 200001ec .word 0x200001ec
|
||||
80013c4: 20000214 .word 0x20000214
|
||||
80013c8: 20000114 .word 0x20000114
|
||||
80013cc: 200000c4 .word 0x200000c4
|
||||
80013bc: 200001ec .word 0x200001ec
|
||||
80013c0: 20000214 .word 0x20000214
|
||||
80013c4: 20000114 .word 0x20000114
|
||||
80013c8: 200000c4 .word 0x200000c4
|
||||
80013cc: 48000800 .word 0x48000800
|
||||
80013d0: 200002f0 .word 0x200002f0
|
||||
80013d4: 2000002c .word 0x2000002c
|
||||
80013d8: 200002e8 .word 0x200002e8
|
||||
|
||||
@ -5328,50 +5328,50 @@ LOAD C:/ST/STM32CubeIDE_1.17.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext
|
||||
.debug_line 0x00012402 0x1b09 ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_tim_ex.o
|
||||
.debug_line 0x00013f0b 0x319e ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart.o
|
||||
|
||||
.debug_str 0x00000000 0xb7e00
|
||||
.debug_str 0x00000000 0xaf88f ./Core/Src/can_communication.o
|
||||
0xaffda (size before relaxing)
|
||||
.debug_str 0x000af88f 0x33ac ./Core/Src/can_halal.o
|
||||
.debug_str 0x00000000 0xb7df6
|
||||
.debug_str 0x00000000 0xaf885 ./Core/Src/can_communication.o
|
||||
0xaffd0 (size before relaxing)
|
||||
.debug_str 0x000af885 0x33ac ./Core/Src/can_halal.o
|
||||
0xb2e52 (size before relaxing)
|
||||
.debug_str 0x000b2c3b 0x65e ./Core/Src/channel_control.o
|
||||
0xb0031 (size before relaxing)
|
||||
.debug_str 0x000b3299 0x770 ./Core/Src/current_monitoring.o
|
||||
0xb09ba (size before relaxing)
|
||||
.debug_str 0x000b3a09 0xa9d ./Core/Src/main.o
|
||||
0xb16cd (size before relaxing)
|
||||
.debug_str 0x000b44a6 0x21 ./Core/Src/plausibility_check.o
|
||||
0xafc1c (size before relaxing)
|
||||
.debug_str 0x000b44c7 0x12a ./Core/Src/stm32f3xx_hal_msp.o
|
||||
.debug_str 0x000b2c31 0x65e ./Core/Src/channel_control.o
|
||||
0xb0027 (size before relaxing)
|
||||
.debug_str 0x000b328f 0x770 ./Core/Src/current_monitoring.o
|
||||
0xb09b0 (size before relaxing)
|
||||
.debug_str 0x000b39ff 0xa9d ./Core/Src/main.o
|
||||
0xb16c3 (size before relaxing)
|
||||
.debug_str 0x000b449c 0x21 ./Core/Src/plausibility_check.o
|
||||
0xafc12 (size before relaxing)
|
||||
.debug_str 0x000b44bd 0x12a ./Core/Src/stm32f3xx_hal_msp.o
|
||||
0xb0e72 (size before relaxing)
|
||||
.debug_str 0x000b45f1 0x15a ./Core/Src/stm32f3xx_it.o
|
||||
.debug_str 0x000b45e7 0x15a ./Core/Src/stm32f3xx_it.o
|
||||
0xb0792 (size before relaxing)
|
||||
.debug_str 0x000b474b 0xdf ./Core/Src/system_stm32f3xx.o
|
||||
.debug_str 0x000b4741 0xdf ./Core/Src/system_stm32f3xx.o
|
||||
0xaf83c (size before relaxing)
|
||||
.debug_str 0x000b482a 0x44 ./Core/Startup/startup_stm32f302rbtx.o
|
||||
.debug_str 0x000b4820 0x44 ./Core/Startup/startup_stm32f302rbtx.o
|
||||
0x8d (size before relaxing)
|
||||
.debug_str 0x000b486e 0x38b ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal.o
|
||||
.debug_str 0x000b4864 0x38b ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal.o
|
||||
0xb0013 (size before relaxing)
|
||||
.debug_str 0x000b4bf9 0x1bf ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_adc.o
|
||||
.debug_str 0x000b4bef 0x1bf ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_adc.o
|
||||
0xafe29 (size before relaxing)
|
||||
.debug_str 0x000b4db8 0x6c8 ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_adc_ex.o
|
||||
.debug_str 0x000b4dae 0x6c8 ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_adc_ex.o
|
||||
0xb0542 (size before relaxing)
|
||||
.debug_str 0x000b5480 0x3ee ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_can.o
|
||||
.debug_str 0x000b5476 0x3ee ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_can.o
|
||||
0xaffcb (size before relaxing)
|
||||
.debug_str 0x000b586e 0x358 ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_cortex.o
|
||||
.debug_str 0x000b5864 0x358 ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_cortex.o
|
||||
0xb0097 (size before relaxing)
|
||||
.debug_str 0x000b5bc6 0x1fa ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_dma.o
|
||||
.debug_str 0x000b5bbc 0x1fa ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_dma.o
|
||||
0xafb84 (size before relaxing)
|
||||
.debug_str 0x000b5dc0 0x12b ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_gpio.o
|
||||
.debug_str 0x000b5db6 0x12b ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_gpio.o
|
||||
0xaf9b2 (size before relaxing)
|
||||
.debug_str 0x000b5eeb 0x2b8 ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_rcc.o
|
||||
.debug_str 0x000b5ee1 0x2b8 ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_rcc.o
|
||||
0xafcdc (size before relaxing)
|
||||
.debug_str 0x000b61a3 0xbe ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_rcc_ex.o
|
||||
.debug_str 0x000b6199 0xbe ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_rcc_ex.o
|
||||
0xafa79 (size before relaxing)
|
||||
.debug_str 0x000b6261 0xe66 ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_tim.o
|
||||
.debug_str 0x000b6257 0xe66 ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_tim.o
|
||||
0xb0c73 (size before relaxing)
|
||||
.debug_str 0x000b70c7 0x4dc ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_tim_ex.o
|
||||
.debug_str 0x000b70bd 0x4dc ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_tim_ex.o
|
||||
0xb04b9 (size before relaxing)
|
||||
.debug_str 0x000b75a3 0x85d ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart.o
|
||||
.debug_str 0x000b7599 0x85d ./Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart.o
|
||||
0xb055f (size before relaxing)
|
||||
|
||||
.comment 0x00000000 0x43
|
||||
|
||||
Reference in New Issue
Block a user