You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
3.8 KiB
Plaintext
69 lines
3.8 KiB
Plaintext
0x080015e0 in main () at Core/Src/main.c:128
|
|
128 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
|
|
### Assembly ########################################################################################################
|
|
0x080015d4 main+112 bl 0x8003f84 <UART_Start_Receive_IT+20>
|
|
0x080015d8 main+116 movs r4, #0
|
|
0x080015da main+118 ldr r3, [pc, #72] ; (0x8001624 <main+192>)
|
|
0x080015dc main+120 ldrb r3, [r3, #0]
|
|
0x080015de main+122 cmp r3, #0
|
|
0x080015e0 main+124 beq.n 0x80015da <main+118>
|
|
0x080015e2 main+126 ldr r3, [pc, #64] ; (0x8001624 <main+192>)
|
|
0x080015e4 main+128 movs r2, #0
|
|
0x080015e6 main+130 strb r2, [r3, #0]
|
|
0x080015e8 main+132 adds r3, r4, #1
|
|
### Breakpoints #####################################################################################################
|
|
### Expressions #####################################################################################################
|
|
### History #########################################################################################################
|
|
### Memory ##########################################################################################################
|
|
### Registers #######################################################################################################
|
|
r0 0x00000000 r5 0x20000ae8 r10 0x00000000 pc 0x080015e0 primask 0x00
|
|
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
|
|
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x20000010 faultmask 0x00
|
|
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
|
|
r4 0x0000004f r9 0x00000000 lr 0x08002029 psp 0x00000000
|
|
### Source ##########################################################################################################
|
|
118 setPWM(&htim2, TIM_CHANNEL_2, 50);
|
|
119 setPWM(&htim2, TIM_CHANNEL_4, 25);
|
|
120
|
|
121 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
|
|
122 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
|
|
123
|
|
124 mc_init(&htim2);
|
|
125 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
|
|
126 HAL_TIM_Base_Start_IT(&htim6);
|
|
127
|
|
128 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
|
|
129 uint16_t motor_degrees = 0;
|
|
130 /* USER CODE END 2 */
|
|
131
|
|
132 /* Infinite loop */
|
|
133 /* USER CODE BEGIN WHILE */
|
|
134 while (1)
|
|
135 {
|
|
136 if (b_timer_struck)
|
|
137 {
|
|
### Stack ###########################################################################################################
|
|
[0] from 0x080015e0 in main+124 at Core/Src/main.c:128
|
|
### Threads #########################################################################################################
|
|
[1] id 0 from 0x080015e0 in main+124 at Core/Src/main.c:128
|
|
### Variables #######################################################################################################
|
|
loc motor_degrees = <optimized out>
|
|
#####################################################################################################################
|
|
Loading section .isr_vector, size 0x190 lma 0x8000000
|
|
Loading section .text, size 0xa9a8 lma 0x80001c0
|
|
Loading section .rodata, size 0x648 lma 0x800ab68
|
|
Loading section .ARM, size 0x8 lma 0x800b1b0
|
|
Loading section .init_array, size 0x8 lma 0x800b1b8
|
|
Loading section .fini_array, size 0x8 lma 0x800b1c0
|
|
Loading section .data, size 0x9a8 lma 0x800b1c8
|
|
Start address 0x08004288, load size 47936
|
|
Transfer rate: 30 KB/sec, 5326 bytes/write.
|
|
Unable to match requested speed 500 kHz, using 480 kHz
|
|
Unable to match requested speed 500 kHz, using 480 kHz
|
|
A debugging session is active.
|
|
|
|
Inferior 1 [Remote target] will be detached.
|
|
|
|
Quit anyway? (y or n) [answered Y; input not from terminal]
|
|
[Inferior 1 (Remote target) detached]
|