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.

9020 lines
541 KiB
Plaintext

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

0x08000790 in ?? ()
### Assembly ###############################################################################################################################################################################################################################
0x08000790 ? b.n 0x8000790
0x08000792 ? nop
0x08000794 ? movs r7, #88 ; 0x58
0x08000796 ? lsrs r0, r0, #32
0x08000798 ? lsls r0, r7, #1
0x0800079a ? movs r0, #0
0x0800079c ? movs r7, #124 ; 0x7c
0x0800079e ? lsrs r0, r0, #32
0x080007a0 ? movs r4, r5
0x080007a2 ? movs r0, #0
### Breakpoints ############################################################################################################################################################################################################################
### Expressions ############################################################################################################################################################################################################################
### History ################################################################################################################################################################################################################################
### Memory #################################################################################################################################################################################################################################
### Registers ##############################################################################################################################################################################################################################
r0 0x00000000 r3 0x40000000 r6 0x00000000 r9 0x00000000 r12 0x00001000 pc 0x08000790 msp 0x2000fef8 basepri 0x00
r1 0x00000000 r4 0x2000002c r7 0x00000000 r10 0x00000000 sp 0x2000fef8 xPSR 0x41000000 psp 0x00000000 faultmask 0x00
r2 0x00000001 r5 0x00000000 r8 0x00000000 r11 0x00000000 lr 0x08000e3d fpscr 0x00000000 primask 0x00 control 0x00
### Source #################################################################################################################################################################################################################################
### Stack ##################################################################################################################################################################################################################################
[0] from 0x08000790
[1] from 0x08000e3c
### Threads ################################################################################################################################################################################################################################
[1] id 0 from 0x08000790
### Variables ##############################################################################################################################################################################################################################
############################################################################################################################################################################################################################################
Loading section .sec1, size 0x2910 lma 0x8000000
Start address 0x080027a8, load size 10512
Transfer rate: 15 KB/sec, 10512 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]
0x080007f0 in ?? ()
### Assembly ########################################################################################################
0x080007f0 ? b.n 0x80007f0
0x080007f2 ? nop
0x080007f4 ? cmp r0, #112 ; 0x70
0x080007f6 ? lsrs r0, r0, #32
0x080007f8 ? lsls r0, r7, #1
0x080007fa ? movs r0, #0
0x080007fc ? cmp r0, #148 ; 0x94
0x080007fe ? lsrs r0, r0, #32
0x08000800 ? movs r4, r5
0x08000802 ? movs r0, #0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080007f0 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000002c r9 0x00000000 lr 0x08000e9d psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080007f0
[1] from 0x08000e9c
### Threads #########################################################################################################
[1] id 0 from 0x080007f0
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x2910 lma 0x8000000
Start address 0x080027a8, load size 10512
Transfer rate: 15 KB/sec, 10512 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]
0x080007f0 in ?? ()
### Assembly ########################################################################################################
0x080007f0 ? b.n 0x80007f0
0x080007f2 ? nop
0x080007f4 ? cmp r0, #112 ; 0x70
0x080007f6 ? lsrs r0, r0, #32
0x080007f8 ? lsls r0, r7, #1
0x080007fa ? movs r0, #0
0x080007fc ? cmp r0, #148 ; 0x94
0x080007fe ? lsrs r0, r0, #32
0x08000800 ? movs r4, r5
0x08000802 ? movs r0, #0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080007f0 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000002c r9 0x00000000 lr 0x08000e9d psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080007f0
[1] from 0x08000e9c
### Threads #########################################################################################################
[1] id 0 from 0x080007f0
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x2910 lma 0x8000000
Start address 0x080027a8, load size 10512
Transfer rate: 15 KB/sec, 10512 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]
0x080007f0 in ?? ()
### Assembly ########################################################################################################
0x080007f0 ? b.n 0x80007f0
0x080007f2 ? nop
0x080007f4 ? cmp r0, #112 ; 0x70
0x080007f6 ? lsrs r0, r0, #32
0x080007f8 ? lsls r0, r7, #1
0x080007fa ? movs r0, #0
0x080007fc ? cmp r0, #148 ; 0x94
0x080007fe ? lsrs r0, r0, #32
0x08000800 ? movs r4, r5
0x08000802 ? movs r0, #0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080007f0 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000002c r9 0x00000000 lr 0x08000e9d psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080007f0
[1] from 0x08000e9c
### Threads #########################################################################################################
[1] id 0 from 0x080007f0
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x35c8 lma 0x8000000
Start address 0x080028d8, load size 13768
Transfer rate: 17 KB/sec, 13768 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]
0x080008b4 in ?? ()
### Assembly ########################################################################################################
0x080008b4 ? b.n 0x80008b4
0x080008b6 ? nop
0x080008b8 ? lsls r0, r3, #3
0x080008ba ? movs r0, #0
0x080008bc ? adds r4, #72 ; 0x48
0x080008be ? lsrs r0, r0, #32
0x080008c0 ? adds r4, #108 ; 0x6c
0x080008c2 ? lsrs r0, r0, #32
0x080008c4 ? adds r4, #116 ; 0x74
0x080008c6 ? lsrs r0, r0, #32
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x08003468 r10 0x00000000 pc 0x080008b4 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x08000f65 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008b4
[1] from 0x08000f64
### Threads #########################################################################################################
[1] id 0 from 0x080008b4
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x35c8 lma 0x8000000
Start address 0x080028d8, load size 13768
Transfer rate: 17 KB/sec, 13768 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]
0x080008b4 in ?? ()
### Assembly ########################################################################################################
0x080008b4 ? b.n 0x80008b4
0x080008b6 ? nop
0x080008b8 ? lsls r0, r3, #3
0x080008ba ? movs r0, #0
0x080008bc ? adds r4, #72 ; 0x48
0x080008be ? lsrs r0, r0, #32
0x080008c0 ? adds r4, #108 ; 0x6c
0x080008c2 ? lsrs r0, r0, #32
0x080008c4 ? adds r4, #116 ; 0x74
0x080008c6 ? lsrs r0, r0, #32
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x08003468 r10 0x00000000 pc 0x080008b4 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x08000f65 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008b4
[1] from 0x08000f64
### Threads #########################################################################################################
[1] id 0 from 0x080008b4
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x35c8 lma 0x8000000
Start address 0x080028d8, load size 13768
Transfer rate: 17 KB/sec, 13768 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]
0x080008b4 in ?? ()
### Assembly ########################################################################################################
0x080008b4 ? b.n 0x80008b4
0x080008b6 ? nop
0x080008b8 ? lsls r0, r3, #3
0x080008ba ? movs r0, #0
0x080008bc ? adds r4, #72 ; 0x48
0x080008be ? lsrs r0, r0, #32
0x080008c0 ? adds r4, #108 ; 0x6c
0x080008c2 ? lsrs r0, r0, #32
0x080008c4 ? adds r4, #116 ; 0x74
0x080008c6 ? lsrs r0, r0, #32
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x08003468 r10 0x00000000 pc 0x080008b4 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x08000f65 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008b4
[1] from 0x08000f64
### Threads #########################################################################################################
[1] id 0 from 0x080008b4
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x35c8 lma 0x8000000
Start address 0x080028d8, load size 13768
Transfer rate: 17 KB/sec, 13768 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]
0x080008b4 in ?? ()
### Assembly ########################################################################################################
0x080008b4 ? b.n 0x80008b4
0x080008b6 ? nop
0x080008b8 ? lsls r0, r3, #3
0x080008ba ? movs r0, #0
0x080008bc ? adds r4, #72 ; 0x48
0x080008be ? lsrs r0, r0, #32
0x080008c0 ? adds r4, #108 ; 0x6c
0x080008c2 ? lsrs r0, r0, #32
0x080008c4 ? adds r4, #116 ; 0x74
0x080008c6 ? lsrs r0, r0, #32
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x08003468 r10 0x00000000 pc 0x080008b4 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x08000f65 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008b4
[1] from 0x08000f64
### Threads #########################################################################################################
[1] id 0 from 0x080008b4
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x35c8 lma 0x8000000
Start address 0x080028d8, load size 13768
Transfer rate: 17 KB/sec, 13768 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]
0x080008b4 in ?? ()
### Assembly ########################################################################################################
0x080008b4 ? b.n 0x80008b4
0x080008b6 ? nop
0x080008b8 ? lsls r0, r3, #3
0x080008ba ? movs r0, #0
0x080008bc ? adds r4, #72 ; 0x48
0x080008be ? lsrs r0, r0, #32
0x080008c0 ? adds r4, #108 ; 0x6c
0x080008c2 ? lsrs r0, r0, #32
0x080008c4 ? adds r4, #116 ; 0x74
0x080008c6 ? lsrs r0, r0, #32
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x08003468 r10 0x00000000 pc 0x080008b4 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x08000f65 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008b4
[1] from 0x08000f64
### Threads #########################################################################################################
[1] id 0 from 0x080008b4
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x3a18 lma 0x8000000
Start address 0x08002d24, load size 14872
Transfer rate: 18 KB/sec, 14872 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]
0x080008c6 in ?? ()
### Assembly ########################################################################################################
0x080008c6 ? b.n 0x80008c6
0x080008c8 ? subs r0, #152 ; 0x98
0x080008ca ? lsrs r0, r0, #32
0x080008cc ? lsls r0, r3, #3
0x080008ce ? movs r0, #0
0x080008d0 ? subs r0, #188 ; 0xbc
0x080008d2 ? lsrs r0, r0, #32
0x080008d4 ? subs r0, #196 ; 0xc4
0x080008d6 ? lsrs r0, r0, #32
0x080008d8 ? lsls r4, r1, #2
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x00000000 r10 0x00000000 pc 0x080008c6 primask 0x00
r1 0x00000020 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x080008c7 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008c6
### Threads #########################################################################################################
[1] id 0 from 0x080008c6
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x3a18 lma 0x8000000
Start address 0x08002d24, load size 14872
Transfer rate: 18 KB/sec, 14872 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]
0x080008c6 in ?? ()
### Assembly ########################################################################################################
0x080008c6 ? b.n 0x80008c6
0x080008c8 ? subs r0, #152 ; 0x98
0x080008ca ? lsrs r0, r0, #32
0x080008cc ? lsls r0, r3, #3
0x080008ce ? movs r0, #0
0x080008d0 ? subs r0, #188 ; 0xbc
0x080008d2 ? lsrs r0, r0, #32
0x080008d4 ? subs r0, #196 ; 0xc4
0x080008d6 ? lsrs r0, r0, #32
0x080008d8 ? lsls r4, r1, #2
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x00000000 r10 0x00000000 pc 0x080008c6 primask 0x00
r1 0x00000020 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x080008c7 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008c6
### Threads #########################################################################################################
[1] id 0 from 0x080008c6
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x3a18 lma 0x8000000
Start address 0x08002d24, load size 14872
Transfer rate: 18 KB/sec, 14872 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]
0x08002d24 in ?? ()
### Assembly ########################################################################################################
0x08002d24 ? movs r0, r0
0x08002d26 ? movs r0, r0
0x08002d28 ? movs r0, r0
0x08002d2a ? movs r0, r0
0x08002d2c ? movs r0, r0
0x08002d2e ? movs r0, r0
0x08002d30 ? movs r0, r0
0x08002d32 ? movs r0, r0
0x08002d34 ? movs r0, r0
0x08002d36 ? movs r0, r0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x08002d24 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x20010000 msp 0x20010000 control 0x00
r4 0x00000000 r9 0x00000000 lr 0xffffffff psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08002d24
[1] from 0xfffffffe
### Threads #########################################################################################################
[1] id 0 from 0x08002d24
### Variables #######################################################################################################
#####################################################################################################################
generic_push.gdb:7: Error in sourced command file:
Error erasing flash with vFlashErase packet
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.hex, Remote target
[Inferior 1 (Remote target) detached]
0x08002d24 in ?? ()
### Assembly ########################################################################################################
0x08002d24 ? movs r0, r0
0x08002d26 ? movs r0, r0
0x08002d28 ? movs r0, r0
0x08002d2a ? movs r0, r0
0x08002d2c ? movs r0, r0
0x08002d2e ? movs r0, r0
0x08002d30 ? movs r0, r0
0x08002d32 ? movs r0, r0
0x08002d34 ? movs r0, r0
0x08002d36 ? movs r0, r0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x08002d24 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x20010000 msp 0x20010000 control 0x00
r4 0x00000000 r9 0x00000000 lr 0xffffffff psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08002d24
[1] from 0xfffffffe
### Threads #########################################################################################################
[1] id 0 from 0x08002d24
### Variables #######################################################################################################
#####################################################################################################################
generic_push.gdb:7: Error in sourced command file:
Error erasing flash with vFlashErase packet
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.hex, Remote target
[Inferior 1 (Remote target) detached]
0x08002d24 in ?? ()
### Assembly ########################################################################################################
0x08002d24 ? movs r0, r0
0x08002d26 ? movs r0, r0
0x08002d28 ? movs r0, r0
0x08002d2a ? movs r0, r0
0x08002d2c ? movs r0, r0
0x08002d2e ? movs r0, r0
0x08002d30 ? movs r0, r0
0x08002d32 ? movs r0, r0
0x08002d34 ? movs r0, r0
0x08002d36 ? movs r0, r0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x08002d24 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x20010000 msp 0x20010000 control 0x00
r4 0x00000000 r9 0x00000000 lr 0xffffffff psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08002d24
[1] from 0xfffffffe
### Threads #########################################################################################################
[1] id 0 from 0x08002d24
### Variables #######################################################################################################
#####################################################################################################################
generic_push.gdb:7: Error in sourced command file:
Error erasing flash with vFlashErase packet
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.hex, Remote target
[Inferior 1 (Remote target) detached]
0x08002d24 in ?? ()
### Assembly ########################################################################################################
0x08002d24 ? movs r0, r0
0x08002d26 ? movs r0, r0
0x08002d28 ? movs r0, r0
0x08002d2a ? movs r0, r0
0x08002d2c ? movs r0, r0
0x08002d2e ? movs r0, r0
0x08002d30 ? movs r0, r0
0x08002d32 ? movs r0, r0
0x08002d34 ? movs r0, r0
0x08002d36 ? movs r0, r0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x08002d24 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x20010000 msp 0x20010000 control 0x00
r4 0x00000000 r9 0x00000000 lr 0xffffffff psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08002d24
[1] from 0xfffffffe
### Threads #########################################################################################################
[1] id 0 from 0x08002d24
### Variables #######################################################################################################
#####################################################################################################################
generic_push.gdb:7: Error in sourced command file:
Error erasing flash with vFlashErase packet
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.hex, Remote target
[Inferior 1 (Remote target) detached]
0x080008c6 in ?? ()
### Assembly ########################################################################################################
0x080008c6 ? b.n 0x80008c6
0x080008c8 ? subs r0, #152 ; 0x98
0x080008ca ? lsrs r0, r0, #32
0x080008cc ? lsls r0, r3, #3
0x080008ce ? movs r0, #0
0x080008d0 ? subs r0, #188 ; 0xbc
0x080008d2 ? lsrs r0, r0, #32
0x080008d4 ? subs r0, #196 ; 0xc4
0x080008d6 ? lsrs r0, r0, #32
0x080008d8 ? lsls r4, r1, #2
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x00000000 r10 0x00000000 pc 0x080008c6 primask 0x00
r1 0x00000020 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x080008c7 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008c6
### Threads #########################################################################################################
[1] id 0 from 0x080008c6
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x3a38 lma 0x8000000
Start address 0x08002d38, load size 14904
Transfer rate: 18 KB/sec, 14904 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]
0x080008d0 in ?? ()
### Assembly ########################################################################################################
0x080008d0 ? b.n 0x80008d0
0x080008d2 ? nop
0x080008d4 ? subs r0, #168 ; 0xa8
0x080008d6 ? lsrs r0, r0, #32
0x080008d8 ? lsls r0, r3, #3
0x080008da ? movs r0, #0
0x080008dc ? subs r0, #204 ; 0xcc
0x080008de ? lsrs r0, r0, #32
0x080008e0 ? subs r0, #212 ; 0xd4
0x080008e2 ? lsrs r0, r0, #32
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080008d0 primask 0x00
r1 0x2000fdd8 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x0000000b r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x08002d89 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x080008d1 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008d0
### Threads #########################################################################################################
[1] id 0 from 0x080008d0
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x3a38 lma 0x8000000
Start address 0x08002d38, load size 14904
Transfer rate: 18 KB/sec, 14904 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]
0x080008d0 in ?? ()
### Assembly ########################################################################################################
0x080008d0 ? b.n 0x80008d0
0x080008d2 ? nop
0x080008d4 ? subs r0, #168 ; 0xa8
0x080008d6 ? lsrs r0, r0, #32
0x080008d8 ? lsls r0, r3, #3
0x080008da ? movs r0, #0
0x080008dc ? subs r0, #204 ; 0xcc
0x080008de ? lsrs r0, r0, #32
0x080008e0 ? subs r0, #212 ; 0xd4
0x080008e2 ? lsrs r0, r0, #32
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080008d0 primask 0x00
r1 0x2000fdd8 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x0000000b r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x08002d89 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x080008d1 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008d0
### Threads #########################################################################################################
[1] id 0 from 0x080008d0
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x3a38 lma 0x8000000
Start address 0x08002d38, load size 14904
Transfer rate: 18 KB/sec, 14904 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]
0x080008d0 in ?? ()
### Assembly ########################################################################################################
0x080008d0 ? b.n 0x80008d0
0x080008d2 ? nop
0x080008d4 ? subs r0, #168 ; 0xa8
0x080008d6 ? lsrs r0, r0, #32
0x080008d8 ? lsls r0, r3, #3
0x080008da ? movs r0, #0
0x080008dc ? subs r0, #204 ; 0xcc
0x080008de ? lsrs r0, r0, #32
0x080008e0 ? subs r0, #212 ; 0xd4
0x080008e2 ? lsrs r0, r0, #32
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080008d0 primask 0x00
r1 0x2000fdd8 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x0000000b r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x08002d89 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x080008d1 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008d0
### Threads #########################################################################################################
[1] id 0 from 0x080008d0
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x3a38 lma 0x8000000
Start address 0x08002d38, load size 14904
Transfer rate: 18 KB/sec, 14904 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]
0x080008d0 in ?? ()
### Assembly ########################################################################################################
0x080008d0 ? b.n 0x80008d0
0x080008d2 ? nop
0x080008d4 ? subs r0, #168 ; 0xa8
0x080008d6 ? lsrs r0, r0, #32
0x080008d8 ? lsls r0, r3, #3
0x080008da ? movs r0, #0
0x080008dc ? subs r0, #204 ; 0xcc
0x080008de ? lsrs r0, r0, #32
0x080008e0 ? subs r0, #212 ; 0xd4
0x080008e2 ? lsrs r0, r0, #32
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080008d0 primask 0x00
r1 0x2000fdd8 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x0000000b r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x08002d89 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x080008d1 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008d0
### Threads #########################################################################################################
[1] id 0 from 0x080008d0
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x3a38 lma 0x8000000
Start address 0x08002d38, load size 14904
Transfer rate: 18 KB/sec, 14904 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]
0x080008d0 in ?? ()
### Assembly ########################################################################################################
0x080008d0 ? b.n 0x80008d0
0x080008d2 ? nop
0x080008d4 ? subs r0, #168 ; 0xa8
0x080008d6 ? lsrs r0, r0, #32
0x080008d8 ? lsls r0, r3, #3
0x080008da ? movs r0, #0
0x080008dc ? subs r0, #204 ; 0xcc
0x080008de ? lsrs r0, r0, #32
0x080008e0 ? subs r0, #212 ; 0xd4
0x080008e2 ? lsrs r0, r0, #32
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080008d0 primask 0x00
r1 0x2000fdd8 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x0000000b r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x08002d89 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x080008d1 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008d0
### Threads #########################################################################################################
[1] id 0 from 0x080008d0
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x3a48 lma 0x8000000
Start address 0x08002d48, load size 14920
Transfer rate: 18 KB/sec, 14920 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]
0x080008d6 in ?? ()
### Assembly ########################################################################################################
0x080008d6 ? b.n 0x80008d6
0x080008d8 ? lsls r0, r3, #3
0x080008da ? movs r0, #0
0x080008dc ? subs r0, #184 ; 0xb8
0x080008de ? lsrs r0, r0, #32
0x080008e0 ? subs r0, #220 ; 0xdc
0x080008e2 ? lsrs r0, r0, #32
0x080008e4 ? subs r0, #228 ; 0xe4
0x080008e6 ? lsrs r0, r0, #32
0x080008e8 ? lsls r4, r1, #2
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x080038d8 r10 0x00000000 pc 0x080008d6 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00600090 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000020 r8 0x00000000 sp 0x2000fef8 msp 0x2000fef8 control 0x04
r4 0x2000008c r9 0x00000000 lr 0x080008d7 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008d6
### Threads #########################################################################################################
[1] id 0 from 0x080008d6
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x3c80 lma 0x8000000
Start address 0x08002fc4, load size 15488
Transfer rate: 18 KB/sec, 15488 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]
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x080008be in ?? ()
### Assembly ###############################################################################################################################################
0x080008be ? b.n 0x80008be
0x080008c0 ? lsls r0, r3, #3
0x080008c2 ? movs r0, #0
0x080008c4 ? lsls r4, r1, #2
0x080008c6 ? movs r0, #0
0x080008c8 ? lsls r4, r3, #5
0x080008ca ? movs r0, #0
0x080008cc ? b.n 0x80008cc
0x080008ce ? b.n 0x80008ce
0x080008d0 ? b.n 0x80008d0
### Breakpoints ############################################################################################################################################
### Expressions ############################################################################################################################################
### History ################################################################################################################################################
### Memory #################################################################################################################################################
### Registers ##############################################################################################################################################
r0 0x00000000 r4 0x200000d8 r8 0x00000000 r12 0x00001000 xPSR 0x61000000 primask 0x00
r1 0x00000000 r5 0x2000008c r9 0x00000000 sp 0x2000fff8 fpscr 0x00000010 basepri 0x00
r2 0x40004400 r6 0x00000000 r10 0x00000000 lr 0x08002f1d msp 0x2000fff8 faultmask 0x00
r3 0x40000000 r7 0x00000000 r11 0x00000000 pc 0x080008be psp 0x00000000 control 0x04
### Source #################################################################################################################################################
### Stack ##################################################################################################################################################
[0] from 0x080008be
[1] from 0x08002f1c
### Threads ################################################################################################################################################
[1] id 0 from 0x080008be
### Variables ##############################################################################################################################################
############################################################################################################################################################
generic_push.gdb:7: Error in sourced command file:
No executable file specified.
Use the "file" or "exec-file" command.
Please answer y or n.
Detaching from program: , Remote target
[Inferior 1 (Remote target) detached]
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x080008be in ?? ()
### Assembly ########################################################################################################
0x080008be ? b.n 0x80008be
0x080008c0 ? lsls r0, r3, #3
0x080008c2 ? movs r0, #0
0x080008c4 ? lsls r4, r1, #2
0x080008c6 ? movs r0, #0
0x080008c8 ? lsls r4, r3, #5
0x080008ca ? movs r0, #0
0x080008cc ? b.n 0x80008cc
0x080008ce ? b.n 0x80008ce
0x080008d0 ? b.n 0x80008d0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x2000008c r10 0x00000000 pc 0x080008be primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x40004400 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x200000d8 r9 0x00000000 lr 0x08002f1d psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008be
[1] from 0x08002f1c
### Threads #########################################################################################################
[1] id 0 from 0x080008be
### Variables #######################################################################################################
#####################################################################################################################
generic_push.gdb:7: Error in sourced command file:
No executable file specified.
Use the "file" or "exec-file" command.
Detaching from program: , Remote target
Remote connection closed
generic_push.gdb:6: Error in sourced command file:
localhost:3333: Connection timed out.
0x080008be in ?? ()
### Assembly ########################################################################################################
0x080008be ? b.n 0x80008be
0x080008c0 ? lsls r0, r3, #3
0x080008c2 ? movs r0, #0
0x080008c4 ? lsls r4, r1, #2
0x080008c6 ? movs r0, #0
0x080008c8 ? lsls r4, r3, #5
0x080008ca ? movs r0, #0
0x080008cc ? b.n 0x80008cc
0x080008ce ? b.n 0x80008ce
0x080008d0 ? b.n 0x80008d0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x2000008c r10 0x00000000 pc 0x080008be primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x40004400 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x200000d8 r9 0x00000000 lr 0x08002f1d psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080008be
[1] from 0x08002f1c
### Threads #########################################################################################################
[1] id 0 from 0x080008be
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x40d0 lma 0x8000000
Start address 0x08003414, load size 16592
Transfer rate: 19 KB/sec, 8296 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]
0x0800098e in ?? ()
### Assembly ########################################################################################################
0x0800098e ? cmp r3, #0
0x08000990 ? beq.n 0x8000986
0x08000992 ? ldr r3, [pc, #28] ; (0x80009b0)
0x08000994 ? movs r2, #0
0x08000996 ? strb r2, [r3, #0]
0x08000998 ? ldr r3, [pc, #24] ; (0x80009b4)
0x0800099a ? ldr r1, [r3, #0]
0x0800099c ? ldr r0, [pc, #24] ; (0x80009b8)
0x0800099e ? bl 0x800339c
0x080009a2 ? b.n 0x8000986
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800098e primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x40004400 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800098b psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x0800098e
[1] from 0x0800098a
### Threads #########################################################################################################
[1] id 0 from 0x0800098e
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x4148 lma 0x8000000
Start address 0x0800348c, load size 16712
Transfer rate: 19 KB/sec, 8356 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]
0x08000990 in ?? ()
### Assembly ########################################################################################################
0x08000990 ? ldr r3, [pc, #40] ; (0x80009bc)
0x08000992 ? ldrb r3, [r3, #0]
0x08000994 ? cmp r3, #0
0x08000996 ? beq.n 0x800098c
0x08000998 ? ldr r3, [pc, #32] ; (0x80009bc)
0x0800099a ? movs r2, #0
0x0800099c ? strb r2, [r3, #0]
0x0800099e ? ldr r3, [pc, #32] ; (0x80009c0)
0x080009a0 ? ldr r1, [r3, #0]
0x080009a2 ? ldr r0, [pc, #32] ; (0x80009c4)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000990 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08000990
### Threads #########################################################################################################
[1] id 0 from 0x08000990
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x4148 lma 0x8000000
Start address 0x0800348c, load size 16712
Transfer rate: 19 KB/sec, 8356 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]
0x0800098c in ?? ()
### Assembly ########################################################################################################
0x0800098c ? bl 0x800348a
0x08000990 ? ldr r3, [pc, #40] ; (0x80009bc)
0x08000992 ? ldrb r3, [r3, #0]
0x08000994 ? cmp r3, #0
0x08000996 ? beq.n 0x800098c
0x08000998 ? ldr r3, [pc, #32] ; (0x80009bc)
0x0800099a ? movs r2, #0
0x0800099c ? strb r2, [r3, #0]
0x0800099e ? ldr r3, [pc, #32] ; (0x80009c0)
0x080009a0 ? ldr r1, [r3, #0]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800098c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x0800098c
[1] from 0x08000990
### Threads #########################################################################################################
[1] id 0 from 0x0800098c
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x4148 lma 0x8000000
Start address 0x0800348c, load size 16712
Transfer rate: 19 KB/sec, 8356 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]
0x08000996 in ?? ()
### Assembly ########################################################################################################
0x08000996 ? beq.n 0x800098c
0x08000998 ? ldr r3, [pc, #32] ; (0x80009bc)
0x0800099a ? movs r2, #0
0x0800099c ? strb r2, [r3, #0]
0x0800099e ? ldr r3, [pc, #32] ; (0x80009c0)
0x080009a0 ? ldr r1, [r3, #0]
0x080009a2 ? ldr r0, [pc, #32] ; (0x80009c4)
0x080009a4 ? bl 0x8003414
0x080009a8 ? b.n 0x800098c
0x080009aa ? nop
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000996 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08000996
[1] from 0x08000990
### Threads #########################################################################################################
[1] id 0 from 0x08000996
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x4148 lma 0x8000000
Start address 0x0800348c, load size 16712
Transfer rate: 19 KB/sec, 8356 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]
0x0800348a in ?? ()
### Assembly ########################################################################################################
0x0800348a ? bx lr
0x0800348c ? ldr.w sp, [pc, #52] ; 0x80034c4
0x08003490 ? bl 0x8003400
0x08003494 ? ldr r0, [pc, #48] ; (0x80034c8)
0x08003496 ? ldr r1, [pc, #52] ; (0x80034cc)
0x08003498 ? ldr r2, [pc, #52] ; (0x80034d0)
0x0800349a ? movs r3, #0
0x0800349c ? b.n 0x80034a4
0x0800349e ? ldr r4, [r2, r3]
0x080034a0 ? str r4, [r0, r3]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800348a primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x0800348a
[1] from 0x08000990
### Threads #########################################################################################################
[1] id 0 from 0x0800348a
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x4148 lma 0x8000000
Start address 0x0800348c, load size 16712
Transfer rate: 19 KB/sec, 8356 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]
0x08000990 in ?? ()
### Assembly ########################################################################################################
0x08000990 ? ldr r3, [pc, #40] ; (0x80009bc)
0x08000992 ? ldrb r3, [r3, #0]
0x08000994 ? cmp r3, #0
0x08000996 ? beq.n 0x800098c
0x08000998 ? ldr r3, [pc, #32] ; (0x80009bc)
0x0800099a ? movs r2, #0
0x0800099c ? strb r2, [r3, #0]
0x0800099e ? ldr r3, [pc, #32] ; (0x80009c0)
0x080009a0 ? ldr r1, [r3, #0]
0x080009a2 ? ldr r0, [pc, #32] ; (0x80009c4)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000990 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08000990
### Threads #########################################################################################################
[1] id 0 from 0x08000990
### Variables #######################################################################################################
#####################################################################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800348c msp: 0x20010000
Loading section .sec1, size 0x4158 lma 0x8000000
Start address 0x08003494, load size 16728
Transfer rate: 19 KB/sec, 8364 bytes/write.
No symbol table is loaded. Use the "file" command.
Quit
Reading symbols from build/motor_controller.hex...
(No debugging symbols found in build/motor_controller.hex)
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.hex, Remote target
[Inferior 1 (Remote target) detached]
0x08003494 in ?? ()
### Assembly ########################################################################################################
0x08003494 ? ldr.w sp, [pc, #52] ; 0x80034cc
0x08003498 ? bl 0x8003400
0x0800349c ? ldr r0, [pc, #48] ; (0x80034d0)
0x0800349e ? ldr r1, [pc, #52] ; (0x80034d4)
0x080034a0 ? ldr r2, [pc, #52] ; (0x80034d8)
0x080034a2 ? movs r3, #0
0x080034a4 ? b.n 0x80034ac
0x080034a6 ? ldr r4, [r2, r3]
0x080034a8 ? str r4, [r0, r3]
0x080034aa ? adds r3, #4
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x08003494 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x20010000 msp 0x20010000 control 0x00
r4 0x00000000 r9 0x00000000 lr 0xffffffff psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08003494
[1] from 0xfffffffe
### Threads #########################################################################################################
[1] id 0 from 0x08003494
### Variables #######################################################################################################
#####################################################################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08003494 msp: 0x20010000
Loading section .sec1, size 0x4158 lma 0x8000000
Start address 0x08003494, load size 16728
Transfer rate: 19 KB/sec, 8364 bytes/write.
Starting program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.hex
### Output/messages #################################################################################################
Program received signal SIGINT, Interrupt.
0x08003492 in ?? ()
### Assembly ########################################################################################################
0x08003492 ? bx lr
0x08003494 ? ldr.w sp, [pc, #52] ; 0x80034cc
0x08003498 ? bl 0x8003400
0x0800349c ? ldr r0, [pc, #48] ; (0x80034d0)
0x0800349e ? ldr r1, [pc, #52] ; (0x80034d4)
0x080034a0 ? ldr r2, [pc, #52] ; (0x80034d8)
0x080034a2 ? movs r3, #0
0x080034a4 ? b.n 0x80034ac
0x080034a6 ? ldr r4, [r2, r3]
0x080034a8 ? str r4, [r0, r3]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08003492 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08003492
[1] from 0x08000990
### Threads #########################################################################################################
[1] id 0 from 0x08003492
### Variables #######################################################################################################
#####################################################################################################################
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.hex, Remote target
[Inferior 1 (Remote target) detached]
0x08003492 in ?? ()
### Assembly ########################################################################################################
0x08003492 ? bx lr
0x08003494 ? ldr.w sp, [pc, #52] ; 0x80034cc
0x08003498 ? bl 0x8003400
0x0800349c ? ldr r0, [pc, #48] ; (0x80034d0)
0x0800349e ? ldr r1, [pc, #52] ; (0x80034d4)
0x080034a0 ? ldr r2, [pc, #52] ; (0x80034d8)
0x080034a2 ? movs r3, #0
0x080034a4 ? b.n 0x80034ac
0x080034a6 ? ldr r4, [r2, r3]
0x080034a8 ? str r4, [r0, r3]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08003492 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08003492
[1] from 0x08000990
### Threads #########################################################################################################
[1] id 0 from 0x08003492
### Variables #######################################################################################################
#####################################################################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08003494 msp: 0x20010000
Loading section .sec1, size 0x4158 lma 0x8000000
Start address 0x08003494, load size 16728
Transfer rate: 19 KB/sec, 8364 bytes/write.
Starting program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.hex
### Output/messages #################################################################################################
Program received signal SIGINT, Interrupt.
0x08000990 in ?? ()
### Assembly ########################################################################################################
0x08000990 ? ldr r3, [pc, #40] ; (0x80009bc)
0x08000992 ? ldrb r3, [r3, #0]
0x08000994 ? cmp r3, #0
0x08000996 ? beq.n 0x800098c
0x08000998 ? ldr r3, [pc, #32] ; (0x80009bc)
0x0800099a ? movs r2, #0
0x0800099c ? strb r2, [r3, #0]
0x0800099e ? ldr r3, [pc, #32] ; (0x80009c0)
0x080009a0 ? ldr r1, [r3, #0]
0x080009a2 ? ldr r0, [pc, #32] ; (0x80009c4)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000990 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x08000990
### Threads #########################################################################################################
[1] id 0 from 0x08000990
### Variables #######################################################################################################
#####################################################################################################################
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.hex, Remote target
[Inferior 1 (Remote target) detached]
main () at Core/Src/main.c:127
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x08000980 main+88 mov r0, r4
0x08000982 main+90 bl 0x80033a0 <HAL_UART_Receive_IT>
0x08000986 main+94 ldr r0, [pc, #48] ; (0x80009b8 <main+144>)
0x08000988 main+96 bl 0x8000d94 <HAL_TIM_Base_Start_IT>
0x0800098c main+100 bl 0x8003492 <mc_service>
0x08000990 main+104 ldr r3, [pc, #40] ; (0x80009bc <main+148>)
0x08000992 main+106 ldrb r3, [r3, #0]
0x08000994 main+108 cmp r3, #0
0x08000996 main+110 beq.n 0x800098c <main+100>
0x08000998 main+112 ldr r3, [pc, #32] ; (0x80009bc <main+148>)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000990 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x08000990 in main+104 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x08000990 in main+104 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08003494 msp: 0x20010000
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3e78 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8004008
Loading section .ARM, size 0x8 lma 0x80040d0
Loading section .init_array, size 0x8 lma 0x80040d8
Loading section .fini_array, size 0x8 lma 0x80040e0
Loading section .data, size 0x70 lma 0x80040e8
Start address 0x08003494, load size 16728
Transfer rate: 19 KB/sec, 2091 bytes/write.
Breakpoint 1 at 0x8000928: file Core/Src/main.c, line 80.
Note: automatically using hardware breakpoints for read-only addresses.
Starting program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.elf
### Output/messages #################################################################################################
Breakpoint 1, main () at Core/Src/main.c:80
80 {
### Assembly ########################################################################################################
~
~
~
~
~
!0x08000928 main+0 push {r3, lr}
0x0800092a main+2 bl 0x800165c <HAL_Init>
0x0800092e main+6 bl 0x800088c <SystemClock_Config>
0x08000932 main+10 bl 0x80005dc <MX_GPIO_Init>
0x08000936 main+14 bl 0x8000708 <MX_TIM2_Init>
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x20000070 r5 0x00000000 r10 0x00000000 pc 0x08000928 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x200001cc r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x20010000 msp 0x20010000 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x080034cb psp 0x00000000
### Source ##########################################################################################################
70 /* Private user code ---------------------------------------------------------*/
71 /* USER CODE BEGIN 0 */
72
73 /* USER CODE END 0 */
74
75 /**
76 * @brief The application entry point.
77 * @retval int
78 */
79 int main(void)
!80 {
81 /* USER CODE BEGIN 1 */
82
83 /* USER CODE END 1 */
84
85 /* MCU Configuration--------------------------------------------------------*/
86
87 /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
88 HAL_Init();
89
### Stack ###########################################################################################################
[0] from 0x08000928 in main+0 at Core/Src/main.c:80
### Threads #########################################################################################################
[1] id 0 from 0x08000928 in main+0 at Core/Src/main.c:80
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800092a
88 HAL_Init();
### Assembly ########################################################################################################
~
~
~
~
!0x08000928 main+0 push {r3, lr}
0x0800092a main+2 bl 0x800165c <HAL_Init>
0x0800092e main+6 bl 0x800088c <SystemClock_Config>
0x08000932 main+10 bl 0x80005dc <MX_GPIO_Init>
0x08000936 main+14 bl 0x8000708 <MX_TIM2_Init>
0x0800093a main+18 bl 0x800079c <MX_USART2_UART_Init>
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x20000070 r5 0x00000000 r10 0x00000000 pc 0x0800092a primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x200001cc r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x080034cb psp 0x00000000
### Source ##########################################################################################################
78 */
79 int main(void)
!80 {
81 /* USER CODE BEGIN 1 */
82
83 /* USER CODE END 1 */
84
85 /* MCU Configuration--------------------------------------------------------*/
86
87 /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
88 HAL_Init();
89
90 /* USER CODE BEGIN Init */
91
92 /* USER CODE END Init */
93
94 /* Configure the system clock */
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
### Stack ###########################################################################################################
[0] from 0x0800092a in main+2 at Core/Src/main.c:88
### Threads #########################################################################################################
[1] id 0 from 0x0800092a in main+2 at Core/Src/main.c:88
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800165c
95 SystemClock_Config();
### Assembly ########################################################################################################
~
~
~
!0x08000928 main+0 push {r3, lr}
0x0800092a main+2 bl 0x800165c <HAL_Init>
0x0800092e main+6 bl 0x800088c <SystemClock_Config>
0x08000932 main+10 bl 0x80005dc <MX_GPIO_Init>
0x08000936 main+14 bl 0x8000708 <MX_TIM2_Init>
0x0800093a main+18 bl 0x800079c <MX_USART2_UART_Init>
0x0800093e main+22 bl 0x80007d4 <MX_TIM1_Init>
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x0800092e primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x10000400 r7 0x00000000 r12 0xfffffff0 fpscr 0x00000000 faultmask 0x00
r3 0x10000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x08001679 psp 0x00000000
### Source ##########################################################################################################
85 /* MCU Configuration--------------------------------------------------------*/
86
87 /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
88 HAL_Init();
89
90 /* USER CODE BEGIN Init */
91
92 /* USER CODE END Init */
93
94 /* Configure the system clock */
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
### Stack ###########################################################################################################
[0] from 0x0800092e in main+6 at Core/Src/main.c:95
### Threads #########################################################################################################
[1] id 0 from 0x0800092e in main+6 at Core/Src/main.c:95
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800088c
102 MX_GPIO_Init();
### Assembly ########################################################################################################
~
~
!0x08000928 main+0 push {r3, lr}
0x0800092a main+2 bl 0x800165c <HAL_Init>
0x0800092e main+6 bl 0x800088c <SystemClock_Config>
0x08000932 main+10 bl 0x80005dc <MX_GPIO_Init>
0x08000936 main+14 bl 0x8000708 <MX_TIM2_Init>
0x0800093a main+18 bl 0x800079c <MX_USART2_UART_Init>
0x0800093e main+22 bl 0x80007d4 <MX_TIM1_Init>
0x08000942 main+26 ldr r4, [pc, #104] ; (0x80009ac <main+132>)
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x08000932 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x40021000 r7 0x00000000 r12 0xfffffff0 fpscr 0x00000000 faultmask 0x00
r3 0x0300006f r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x08000911 psp 0x00000000
### Source ##########################################################################################################
92 /* USER CODE END Init */
93
94 /* Configure the system clock */
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
### Stack ###########################################################################################################
[0] from 0x08000932 in main+10 at Core/Src/main.c:102
### Threads #########################################################################################################
[1] id 0 from 0x08000932 in main+10 at Core/Src/main.c:102
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080005dc
103 MX_TIM2_Init();
### Assembly ########################################################################################################
~
!0x08000928 main+0 push {r3, lr}
0x0800092a main+2 bl 0x800165c <HAL_Init>
0x0800092e main+6 bl 0x800088c <SystemClock_Config>
0x08000932 main+10 bl 0x80005dc <MX_GPIO_Init>
0x08000936 main+14 bl 0x8000708 <MX_TIM2_Init>
0x0800093a main+18 bl 0x800079c <MX_USART2_UART_Init>
0x0800093e main+22 bl 0x80007d4 <MX_TIM1_Init>
0x08000942 main+26 ldr r4, [pc, #104] ; (0x80009ac <main+132>)
0x08000944 main+28 mov r0, r4
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000400 r5 0x00000000 r10 0x00000000 pc 0x08000936 primask 0x00
r1 0x2000ffd4 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000008 r7 0x00000000 r12 0xfffffe3f fpscr 0x00000000 faultmask 0x00
r3 0x00000004 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x00000006 psp 0x00000000
### Source ##########################################################################################################
93
94 /* Configure the system clock */
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
### Stack ###########################################################################################################
[0] from 0x08000936 in main+14 at Core/Src/main.c:103
### Threads #########################################################################################################
[1] id 0 from 0x08000936 in main+14 at Core/Src/main.c:103
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x08000708
104 MX_USART2_UART_Init();
### Assembly ########################################################################################################
!0x08000928 main+0 push {r3, lr}
0x0800092a main+2 bl 0x800165c <HAL_Init>
0x0800092e main+6 bl 0x800088c <SystemClock_Config>
0x08000932 main+10 bl 0x80005dc <MX_GPIO_Init>
0x08000936 main+14 bl 0x8000708 <MX_TIM2_Init>
0x0800093a main+18 bl 0x800079c <MX_USART2_UART_Init>
0x0800093e main+22 bl 0x80007d4 <MX_TIM1_Init>
0x08000942 main+26 ldr r4, [pc, #104] ; (0x80009ac <main+132>)
0x08000944 main+28 mov r0, r4
0x08000946 main+30 bl 0x8003470 <p_uart_init>
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x00000000 r10 0x00000000 pc 0x0800093a primask 0x00
r1 0x2000ffac r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x0000000a r7 0x00000000 r12 0xabf5f53b fpscr 0x00000000 faultmask 0x00
r3 0x00000004 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x00000006 psp 0x00000000
### Source ##########################################################################################################
94 /* Configure the system clock */
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
### Stack ###########################################################################################################
[0] from 0x0800093a in main+18 at Core/Src/main.c:104
### Threads #########################################################################################################
[1] id 0 from 0x0800093a in main+18 at Core/Src/main.c:104
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800079c
105 MX_TIM1_Init();
### Assembly ########################################################################################################
0x0800092a main+2 bl 0x800165c <HAL_Init>
0x0800092e main+6 bl 0x800088c <SystemClock_Config>
0x08000932 main+10 bl 0x80005dc <MX_GPIO_Init>
0x08000936 main+14 bl 0x8000708 <MX_TIM2_Init>
0x0800093a main+18 bl 0x800079c <MX_USART2_UART_Init>
0x0800093e main+22 bl 0x80007d4 <MX_TIM1_Init>
0x08000942 main+26 ldr r4, [pc, #104] ; (0x80009ac <main+132>)
0x08000944 main+28 mov r0, r4
0x08000946 main+30 bl 0x8003470 <p_uart_init>
0x0800094a main+34 ldr r5, [pc, #100] ; (0x80009b0 <main+136>)
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x0800093e primask 0x00
r1 0x00400000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0xfffffff0 fpscr 0x00000000 faultmask 0x00
r3 0x00000004 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x0800325f psp 0x00000000
### Source ##########################################################################################################
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
### Stack ###########################################################################################################
[0] from 0x0800093e in main+22 at Core/Src/main.c:105
### Threads #########################################################################################################
[1] id 0 from 0x0800093e in main+22 at Core/Src/main.c:105
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080007d4
107 p_uart_init(&huart2);
### Assembly ########################################################################################################
0x0800092e main+6 bl 0x800088c <SystemClock_Config>
0x08000932 main+10 bl 0x80005dc <MX_GPIO_Init>
0x08000936 main+14 bl 0x8000708 <MX_TIM2_Init>
0x0800093a main+18 bl 0x800079c <MX_USART2_UART_Init>
0x0800093e main+22 bl 0x80007d4 <MX_TIM1_Init>
0x08000942 main+26 ldr r4, [pc, #104] ; (0x80009ac <main+132>)
0x08000944 main+28 mov r0, r4
0x08000946 main+30 bl 0x8003470 <p_uart_init>
0x0800094a main+34 ldr r5, [pc, #100] ; (0x80009b0 <main+136>)
0x0800094c main+36 movs r2, #50 ; 0x32
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x08000942 primask 0x00
r1 0x02000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x20000090 r7 0x00000000 r12 0xfffffff0 fpscr 0x00000000 faultmask 0x00
r3 0x02002000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x0800086f psp 0x00000000
### Source ##########################################################################################################
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
### Stack ###########################################################################################################
[0] from 0x08000942 in main+26 at Core/Src/main.c:107
### Threads #########################################################################################################
[1] id 0 from 0x08000942 in main+26 at Core/Src/main.c:107
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x08000944
halted: PC: 0x08000946
halted: PC: 0x08003470
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
### Assembly ########################################################################################################
0x0800093a main+18 bl 0x800079c <MX_USART2_UART_Init>
0x0800093e main+22 bl 0x80007d4 <MX_TIM1_Init>
0x08000942 main+26 ldr r4, [pc, #104] ; (0x80009ac <main+132>)
0x08000944 main+28 mov r0, r4
0x08000946 main+30 bl 0x8003470 <p_uart_init>
0x0800094a main+34 ldr r5, [pc, #100] ; (0x80009b0 <main+136>)
0x0800094c main+36 movs r2, #50 ; 0x32
0x0800094e main+38 movs r1, #4
0x08000950 main+40 mov r0, r5
0x08000952 main+42 bl 0x80006a8 <setPWM>
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x0800094a primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0xfffffff0 fpscr 0x00000000 faultmask 0x00
r3 0x02002000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x20000128 r9 0x00000000 lr 0x08003483 psp 0x00000000
### Source ##########################################################################################################
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
### Stack ###########################################################################################################
[0] from 0x0800094a in main+34 at Core/Src/main.c:111
### Threads #########################################################################################################
[1] id 0 from 0x0800094a in main+34 at Core/Src/main.c:111
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800094c
halted: PC: 0x0800094e
halted: PC: 0x08000950
halted: PC: 0x08000952
halted: PC: 0x080006a8
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
### Assembly ########################################################################################################
0x0800094a main+34 ldr r5, [pc, #100] ; (0x80009b0 <main+136>)
0x0800094c main+36 movs r2, #50 ; 0x32
0x0800094e main+38 movs r1, #4
0x08000950 main+40 mov r0, r5
0x08000952 main+42 bl 0x80006a8 <setPWM>
0x08000956 main+46 movs r2, #25
0x08000958 main+48 movs r1, #12
0x0800095a main+50 mov r0, r5
0x0800095c main+52 bl 0x80006a8 <setPWM>
0x08000960 main+56 movs r2, #1
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000956 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00000010 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x080013bd psp 0x00000000
### Source ##########################################################################################################
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
### Stack ###########################################################################################################
[0] from 0x08000956 in main+46 at Core/Src/main.c:112
### Threads #########################################################################################################
[1] id 0 from 0x08000956 in main+46 at Core/Src/main.c:112
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x08000958
halted: PC: 0x0800095a
halted: PC: 0x0800095c
halted: PC: 0x080006a8
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
### Assembly ########################################################################################################
0x08000952 main+42 bl 0x80006a8 <setPWM>
0x08000956 main+46 movs r2, #25
0x08000958 main+48 movs r1, #12
0x0800095a main+50 mov r0, r5
0x0800095c main+52 bl 0x80006a8 <setPWM>
0x08000960 main+56 movs r2, #1
0x08000962 main+58 movs r1, #16
0x08000964 main+60 mov.w r0, #1207959552 ; 0x48000000
0x08000968 main+64 bl 0x8002628 <HAL_GPIO_WritePin>
0x0800096c main+68 movs r2, #1
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000960 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x080013bd psp 0x00000000
### Source ##########################################################################################################
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
### Stack ###########################################################################################################
[0] from 0x08000960 in main+56 at Core/Src/main.c:114
### Threads #########################################################################################################
[1] id 0 from 0x08000960 in main+56 at Core/Src/main.c:114
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x08000962
halted: PC: 0x08000964
halted: PC: 0x08000968
halted: PC: 0x08002628
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
### Assembly ########################################################################################################
0x0800095c main+52 bl 0x80006a8 <setPWM>
0x08000960 main+56 movs r2, #1
0x08000962 main+58 movs r1, #16
0x08000964 main+60 mov.w r0, #1207959552 ; 0x48000000
0x08000968 main+64 bl 0x8002628 <HAL_GPIO_WritePin>
0x0800096c main+68 movs r2, #1
0x0800096e main+70 movs r1, #32
0x08000970 main+72 mov.w r0, #1207959552 ; 0x48000000
0x08000974 main+76 bl 0x8002628 <HAL_GPIO_WritePin>
0x08000978 main+80 bl 0x8003490 <mc_init>
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x200000dc r10 0x00000000 pc 0x0800096c primask 0x00
r1 0x00000010 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800096d psp 0x00000000
### Source ##########################################################################################################
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
### Stack ###########################################################################################################
[0] from 0x0800096c in main+68 at Core/Src/main.c:115
### Threads #########################################################################################################
[1] id 0 from 0x0800096c in main+68 at Core/Src/main.c:115
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800096e
halted: PC: 0x08000970
halted: PC: 0x08000974
halted: PC: 0x08002628
117 mc_init();
### Assembly ########################################################################################################
0x08000968 main+64 bl 0x8002628 <HAL_GPIO_WritePin>
0x0800096c main+68 movs r2, #1
0x0800096e main+70 movs r1, #32
0x08000970 main+72 mov.w r0, #1207959552 ; 0x48000000
0x08000974 main+76 bl 0x8002628 <HAL_GPIO_WritePin>
0x08000978 main+80 bl 0x8003490 <mc_init>
0x0800097c main+84 movs r2, #1
0x0800097e main+86 ldr r1, [pc, #52] ; (0x80009b4 <main+140>)
0x08000980 main+88 mov r0, r4
0x08000982 main+90 bl 0x80033a0 <HAL_UART_Receive_IT>
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x200000dc r10 0x00000000 pc 0x08000978 primask 0x00
r1 0x00000020 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000979 psp 0x00000000
### Source ##########################################################################################################
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
### Stack ###########################################################################################################
[0] from 0x08000978 in main+80 at Core/Src/main.c:117
### Threads #########################################################################################################
[1] id 0 from 0x08000978 in main+80 at Core/Src/main.c:117
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x08003490
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
### Assembly ########################################################################################################
0x0800096c main+68 movs r2, #1
0x0800096e main+70 movs r1, #32
0x08000970 main+72 mov.w r0, #1207959552 ; 0x48000000
0x08000974 main+76 bl 0x8002628 <HAL_GPIO_WritePin>
0x08000978 main+80 bl 0x8003490 <mc_init>
0x0800097c main+84 movs r2, #1
0x0800097e main+86 ldr r1, [pc, #52] ; (0x80009b4 <main+140>)
0x08000980 main+88 mov r0, r4
0x08000982 main+90 bl 0x80033a0 <HAL_UART_Receive_IT>
0x08000986 main+94 ldr r0, [pc, #48] ; (0x80009b8 <main+144>)
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x200000dc r10 0x00000000 pc 0x0800097c primask 0x00
r1 0x00000020 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800097d psp 0x00000000
### Source ##########################################################################################################
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
### Stack ###########################################################################################################
[0] from 0x0800097c in main+84 at Core/Src/main.c:118
### Threads #########################################################################################################
[1] id 0 from 0x0800097c in main+84 at Core/Src/main.c:118
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800097e
halted: PC: 0x08000980
halted: PC: 0x08000982
halted: PC: 0x080033a0
119 HAL_TIM_Base_Start_IT(&htim1);
### Assembly ########################################################################################################
0x08000978 main+80 bl 0x8003490 <mc_init>
0x0800097c main+84 movs r2, #1
0x0800097e main+86 ldr r1, [pc, #52] ; (0x80009b4 <main+140>)
0x08000980 main+88 mov r0, r4
0x08000982 main+90 bl 0x80033a0 <HAL_UART_Receive_IT>
0x08000986 main+94 ldr r0, [pc, #48] ; (0x80009b8 <main+144>)
0x08000988 main+96 bl 0x8000d94 <HAL_TIM_Base_Start_IT>
0x0800098c main+100 bl 0x8003492 <mc_service>
0x08000990 main+104 ldr r3, [pc, #40] ; (0x80009bc <main+148>)
0x08000992 main+106 ldrb r3, [r3, #0]
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000986 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x40004400 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x080033e5 psp 0x00000000
### Source ##########################################################################################################
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
### Stack ###########################################################################################################
[0] from 0x08000986 in main+94 at Core/Src/main.c:119
### Threads #########################################################################################################
[1] id 0 from 0x08000986 in main+94 at Core/Src/main.c:119
### Variables #######################################################################################################
#####################################################################################################################
Breakpoint 2 at 0x8000998: file Core/Src/main.c, line 129.
Continuing.
### Output/messages #################################################################################################
Program received signal SIGINT, Interrupt.
0x08000994 in main () at Core/Src/main.c:127
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x08000986 main+94 ldr r0, [pc, #48] ; (0x80009b8 <main+144>)
0x08000988 main+96 bl 0x8000d94 <HAL_TIM_Base_Start_IT>
0x0800098c main+100 bl 0x8003492 <mc_service>
0x08000990 main+104 ldr r3, [pc, #40] ; (0x80009bc <main+148>)
0x08000992 main+106 ldrb r3, [r3, #0]
0x08000994 main+108 cmp r3, #0
0x08000996 main+110 beq.n 0x800098c <main+100>
!0x08000998 main+112 ldr r3, [pc, #32] ; (0x80009bc <main+148>)
0x0800099a main+114 movs r2, #0
0x0800099c main+116 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
[1] break at 0x08000928 in Core/Src/main.c:80 for main hit 1 time
[2] break at 0x08000998 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:129
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000994 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
!129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x08000994 in main+108 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x08000994 in main+108 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
Quit
Quit
Undefined command: "qq". Try "help".
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.elf, Remote target
[Inferior 1 (Remote target) detached]
0x08000994 in USART2_IRQHandler () at Core/Src/stm32l4xx_it.c:213
213 }
### Assembly ########################################################################################################
~
~
0x0800098c USART2_IRQHandler+0 bl 0x8003492 <write+2>
0x08000990 USART2_IRQHandler+4 ldr r3, [pc, #40] ; (0x80009bc <HAL_MspInit+32>)
0x08000992 USART2_IRQHandler+6 ldrb r3, [r3, #0]
0x08000994 USART2_IRQHandler+8 cmp r3, #0
0x08000996 USART2_IRQHandler+10 beq.n 0x800098c <USART2_IRQHandler>
0x08000998 USART2_IRQHandler+12 ldr r3, [pc, #32] ; (0x80009bc <HAL_MspInit+32>)
0x0800099a USART2_IRQHandler+14 movs r2, #0
~
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000994 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000991 psp 0x00000000
### Source ##########################################################################################################
203 */
204 void USART2_IRQHandler(void)
205 {
206 /* USER CODE BEGIN USART2_IRQn 0 */
207
208 /* USER CODE END USART2_IRQn 0 */
209 HAL_UART_IRQHandler(&huart2);
210 /* USER CODE BEGIN USART2_IRQn 1 */
211
212 /* USER CODE END USART2_IRQn 1 */
213 }
214
215 /* USER CODE BEGIN 1 */
216
217 /* USER CODE END 1 */
~
~
~
~
~
### Stack ###########################################################################################################
[0] from 0x08000994 in USART2_IRQHandler+8 at Core/Src/stm32l4xx_it.c:213
[1] from 0x080034ca in _vsnprintf_r
### Threads #########################################################################################################
[1] id 0 from 0x08000994 in USART2_IRQHandler+8 at Core/Src/stm32l4xx_it.c:213
### Variables #######################################################################################################
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3cc8 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8003e58
Loading section .ARM, size 0x8 lma 0x8003f20
Loading section .init_array, size 0x8 lma 0x8003f28
Loading section .fini_array, size 0x8 lma 0x8003f30
Loading section .data, size 0x70 lma 0x8003f38
Start address 0x080032e8, load size 16296
Transfer rate: 19 KB/sec, 2328 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]
mc_service () at shared/devices/motor_controller.c:11
11 }
### Assembly ########################################################################################################
~
~
~
~
~
0x080032e6 mc_service+0 bx lr
~
~
~
~
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x080032e6 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
1 #include "motor_controller.h"
2
3 void mc_init()
4 {
5 //
6 }
7
8 void mc_service()
9 {
10
11 }
~
~
~
~
~
~
~
~
~
### Stack ###########################################################################################################
[0] from 0x080032e6 in mc_service+0 at shared/devices/motor_controller.c:11
[1] from 0x0800093c in main+104 at Core/Src/main.c:126
### Threads #########################################################################################################
[1] id 0 from 0x080032e6 in mc_service+0 at shared/devices/motor_controller.c:11
### Variables #######################################################################################################
#####################################################################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080032e8 msp: 0x20010000
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3cc8 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8003e58
Loading section .ARM, size 0x8 lma 0x8003f20
Loading section .init_array, size 0x8 lma 0x8003f28
Loading section .fini_array, size 0x8 lma 0x8003f30
Loading section .data, size 0x70 lma 0x8003f38
Start address 0x080032e8, load size 16296
Transfer rate: 19 KB/sec, 2328 bytes/write.
Breakpoint 1 at 0x80008d4: file Core/Src/main.c, line 80.
Note: automatically using hardware breakpoints for read-only addresses.
Starting program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.elf
### Output/messages #################################################################################################
Breakpoint 1, main () at Core/Src/main.c:80
80 {
### Assembly ########################################################################################################
~
~
~
~
~
!0x080008d4 main+0 push {r3, lr}
0x080008d6 main+2 bl 0x80014b0 <HAL_Init>
0x080008da main+6 bl 0x8000838 <SystemClock_Config>
0x080008de main+10 bl 0x80005dc <MX_GPIO_Init>
0x080008e2 main+14 bl 0x80006fc <MX_TIM2_Init>
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x20000070 r5 0x00000000 r10 0x00000000 pc 0x080008d4 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x200001cc r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x20010000 msp 0x20010000 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x0800331f psp 0x00000000
### Source ##########################################################################################################
70 /* Private user code ---------------------------------------------------------*/
71 /* USER CODE BEGIN 0 */
72
73 /* USER CODE END 0 */
74
75 /**
76 * @brief The application entry point.
77 * @retval int
78 */
79 int main(void)
!80 {
81 /* USER CODE BEGIN 1 */
82
83 /* USER CODE END 1 */
84
85 /* MCU Configuration--------------------------------------------------------*/
86
87 /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
88 HAL_Init();
89
### Stack ###########################################################################################################
[0] from 0x080008d4 in main+0 at Core/Src/main.c:80
### Threads #########################################################################################################
[1] id 0 from 0x080008d4 in main+0 at Core/Src/main.c:80
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080008d6
88 HAL_Init();
### Assembly ########################################################################################################
~
~
~
~
!0x080008d4 main+0 push {r3, lr}
0x080008d6 main+2 bl 0x80014b0 <HAL_Init>
0x080008da main+6 bl 0x8000838 <SystemClock_Config>
0x080008de main+10 bl 0x80005dc <MX_GPIO_Init>
0x080008e2 main+14 bl 0x80006fc <MX_TIM2_Init>
0x080008e6 main+18 bl 0x8000790 <MX_USART2_UART_Init>
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x20000070 r5 0x00000000 r10 0x00000000 pc 0x080008d6 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x200001cc r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x0800331f psp 0x00000000
### Source ##########################################################################################################
78 */
79 int main(void)
!80 {
81 /* USER CODE BEGIN 1 */
82
83 /* USER CODE END 1 */
84
85 /* MCU Configuration--------------------------------------------------------*/
86
87 /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
88 HAL_Init();
89
90 /* USER CODE BEGIN Init */
91
92 /* USER CODE END Init */
93
94 /* Configure the system clock */
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
### Stack ###########################################################################################################
[0] from 0x080008d6 in main+2 at Core/Src/main.c:88
### Threads #########################################################################################################
[1] id 0 from 0x080008d6 in main+2 at Core/Src/main.c:88
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080014b0
95 SystemClock_Config();
### Assembly ########################################################################################################
~
~
~
!0x080008d4 main+0 push {r3, lr}
0x080008d6 main+2 bl 0x80014b0 <HAL_Init>
0x080008da main+6 bl 0x8000838 <SystemClock_Config>
0x080008de main+10 bl 0x80005dc <MX_GPIO_Init>
0x080008e2 main+14 bl 0x80006fc <MX_TIM2_Init>
0x080008e6 main+18 bl 0x8000790 <MX_USART2_UART_Init>
0x080008ea main+22 bl 0x80007c8 <MX_TIM1_Init>
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080008da primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x10000400 r7 0x00000000 r12 0xfffffff0 fpscr 0x00000000 faultmask 0x00
r3 0x10000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x080014cd psp 0x00000000
### Source ##########################################################################################################
85 /* MCU Configuration--------------------------------------------------------*/
86
87 /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
88 HAL_Init();
89
90 /* USER CODE BEGIN Init */
91
92 /* USER CODE END Init */
93
94 /* Configure the system clock */
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
### Stack ###########################################################################################################
[0] from 0x080008da in main+6 at Core/Src/main.c:95
### Threads #########################################################################################################
[1] id 0 from 0x080008da in main+6 at Core/Src/main.c:95
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x08000838
102 MX_GPIO_Init();
### Assembly ########################################################################################################
~
~
!0x080008d4 main+0 push {r3, lr}
0x080008d6 main+2 bl 0x80014b0 <HAL_Init>
0x080008da main+6 bl 0x8000838 <SystemClock_Config>
0x080008de main+10 bl 0x80005dc <MX_GPIO_Init>
0x080008e2 main+14 bl 0x80006fc <MX_TIM2_Init>
0x080008e6 main+18 bl 0x8000790 <MX_USART2_UART_Init>
0x080008ea main+22 bl 0x80007c8 <MX_TIM1_Init>
0x080008ee main+26 ldr r4, [pc, #104] ; (0x8000958 <main+132>)
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080008de primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x40021000 r7 0x00000000 r12 0xfffffff0 fpscr 0x00000000 faultmask 0x00
r3 0x0300006f r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x080008bd psp 0x00000000
### Source ##########################################################################################################
92 /* USER CODE END Init */
93
94 /* Configure the system clock */
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
### Stack ###########################################################################################################
[0] from 0x080008de in main+10 at Core/Src/main.c:102
### Threads #########################################################################################################
[1] id 0 from 0x080008de in main+10 at Core/Src/main.c:102
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080005dc
103 MX_TIM2_Init();
### Assembly ########################################################################################################
~
!0x080008d4 main+0 push {r3, lr}
0x080008d6 main+2 bl 0x80014b0 <HAL_Init>
0x080008da main+6 bl 0x8000838 <SystemClock_Config>
0x080008de main+10 bl 0x80005dc <MX_GPIO_Init>
0x080008e2 main+14 bl 0x80006fc <MX_TIM2_Init>
0x080008e6 main+18 bl 0x8000790 <MX_USART2_UART_Init>
0x080008ea main+22 bl 0x80007c8 <MX_TIM1_Init>
0x080008ee main+26 ldr r4, [pc, #104] ; (0x8000958 <main+132>)
0x080008f0 main+28 mov r0, r4
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000400 r5 0x00000000 r10 0x00000000 pc 0x080008e2 primask 0x00
r1 0x2000ffd4 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000008 r7 0x00000000 r12 0xfffffe3f fpscr 0x00000000 faultmask 0x00
r3 0x00000004 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x00000006 psp 0x00000000
### Source ##########################################################################################################
93
94 /* Configure the system clock */
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
### Stack ###########################################################################################################
[0] from 0x080008e2 in main+14 at Core/Src/main.c:103
### Threads #########################################################################################################
[1] id 0 from 0x080008e2 in main+14 at Core/Src/main.c:103
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080006fc
104 MX_USART2_UART_Init();
### Assembly ########################################################################################################
!0x080008d4 main+0 push {r3, lr}
0x080008d6 main+2 bl 0x80014b0 <HAL_Init>
0x080008da main+6 bl 0x8000838 <SystemClock_Config>
0x080008de main+10 bl 0x80005dc <MX_GPIO_Init>
0x080008e2 main+14 bl 0x80006fc <MX_TIM2_Init>
0x080008e6 main+18 bl 0x8000790 <MX_USART2_UART_Init>
0x080008ea main+22 bl 0x80007c8 <MX_TIM1_Init>
0x080008ee main+26 ldr r4, [pc, #104] ; (0x8000958 <main+132>)
0x080008f0 main+28 mov r0, r4
0x080008f2 main+30 bl 0x80032c4 <p_uart_init>
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x00000000 r10 0x00000000 pc 0x080008e6 primask 0x00
r1 0x2000ffac r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x0000000a r7 0x00000000 r12 0xabf5f53b fpscr 0x00000000 faultmask 0x00
r3 0x00000004 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x00000006 psp 0x00000000
### Source ##########################################################################################################
94 /* Configure the system clock */
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
### Stack ###########################################################################################################
[0] from 0x080008e6 in main+18 at Core/Src/main.c:104
### Threads #########################################################################################################
[1] id 0 from 0x080008e6 in main+18 at Core/Src/main.c:104
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x08000790
105 MX_TIM1_Init();
### Assembly ########################################################################################################
0x080008d6 main+2 bl 0x80014b0 <HAL_Init>
0x080008da main+6 bl 0x8000838 <SystemClock_Config>
0x080008de main+10 bl 0x80005dc <MX_GPIO_Init>
0x080008e2 main+14 bl 0x80006fc <MX_TIM2_Init>
0x080008e6 main+18 bl 0x8000790 <MX_USART2_UART_Init>
0x080008ea main+22 bl 0x80007c8 <MX_TIM1_Init>
0x080008ee main+26 ldr r4, [pc, #104] ; (0x8000958 <main+132>)
0x080008f0 main+28 mov r0, r4
0x080008f2 main+30 bl 0x80032c4 <p_uart_init>
0x080008f6 main+34 ldr r5, [pc, #100] ; (0x800095c <main+136>)
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080008ea primask 0x00
r1 0x00400000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0xfffffff0 fpscr 0x00000000 faultmask 0x00
r3 0x00000004 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x080030b3 psp 0x00000000
### Source ##########################################################################################################
95 SystemClock_Config();
96
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
### Stack ###########################################################################################################
[0] from 0x080008ea in main+22 at Core/Src/main.c:105
### Threads #########################################################################################################
[1] id 0 from 0x080008ea in main+22 at Core/Src/main.c:105
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080007c8
107 p_uart_init(&huart2);
### Assembly ########################################################################################################
0x080008da main+6 bl 0x8000838 <SystemClock_Config>
0x080008de main+10 bl 0x80005dc <MX_GPIO_Init>
0x080008e2 main+14 bl 0x80006fc <MX_TIM2_Init>
0x080008e6 main+18 bl 0x8000790 <MX_USART2_UART_Init>
0x080008ea main+22 bl 0x80007c8 <MX_TIM1_Init>
0x080008ee main+26 ldr r4, [pc, #104] ; (0x8000958 <main+132>)
0x080008f0 main+28 mov r0, r4
0x080008f2 main+30 bl 0x80032c4 <p_uart_init>
0x080008f6 main+34 ldr r5, [pc, #100] ; (0x800095c <main+136>)
0x080008f8 main+36 movs r2, #50 ; 0x32
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080008ee primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0xfffffff0 fpscr 0x00000000 faultmask 0x00
r3 0x20000090 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x200001cc r9 0x00000000 lr 0x0800081b psp 0x00000000
### Source ##########################################################################################################
97 /* USER CODE BEGIN SysInit */
98
99 /* USER CODE END SysInit */
100
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
### Stack ###########################################################################################################
[0] from 0x080008ee in main+26 at Core/Src/main.c:107
### Threads #########################################################################################################
[1] id 0 from 0x080008ee in main+26 at Core/Src/main.c:107
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080008f0
halted: PC: 0x080008f2
halted: PC: 0x080032c4
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
### Assembly ########################################################################################################
0x080008e6 main+18 bl 0x8000790 <MX_USART2_UART_Init>
0x080008ea main+22 bl 0x80007c8 <MX_TIM1_Init>
0x080008ee main+26 ldr r4, [pc, #104] ; (0x8000958 <main+132>)
0x080008f0 main+28 mov r0, r4
0x080008f2 main+30 bl 0x80032c4 <p_uart_init>
0x080008f6 main+34 ldr r5, [pc, #100] ; (0x800095c <main+136>)
0x080008f8 main+36 movs r2, #50 ; 0x32
0x080008fa main+38 movs r1, #4
0x080008fc main+40 mov r0, r5
0x080008fe main+42 bl 0x800069c <setPWM>
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080008f6 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0xfffffff0 fpscr 0x00000000 faultmask 0x00
r3 0x20000090 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x00
r4 0x20000128 r9 0x00000000 lr 0x080032d7 psp 0x00000000
### Source ##########################################################################################################
101 /* Initialize all configured peripherals */
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
### Stack ###########################################################################################################
[0] from 0x080008f6 in main+34 at Core/Src/main.c:111
### Threads #########################################################################################################
[1] id 0 from 0x080008f6 in main+34 at Core/Src/main.c:111
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080008f8
halted: PC: 0x080008fa
halted: PC: 0x080008fc
halted: PC: 0x080008fe
halted: PC: 0x0800069c
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
### Assembly ########################################################################################################
0x080008f6 main+34 ldr r5, [pc, #100] ; (0x800095c <main+136>)
0x080008f8 main+36 movs r2, #50 ; 0x32
0x080008fa main+38 movs r1, #4
0x080008fc main+40 mov r0, r5
0x080008fe main+42 bl 0x800069c <setPWM>
0x08000902 main+46 movs r2, #25
0x08000904 main+48 movs r1, #12
0x08000906 main+50 mov r0, r5
0x08000908 main+52 bl 0x800069c <setPWM>
0x0800090c main+56 movs r2, #1
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000902 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00000010 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x080012a1 psp 0x00000000
### Source ##########################################################################################################
102 MX_GPIO_Init();
103 MX_TIM2_Init();
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
### Stack ###########################################################################################################
[0] from 0x08000902 in main+46 at Core/Src/main.c:112
### Threads #########################################################################################################
[1] id 0 from 0x08000902 in main+46 at Core/Src/main.c:112
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x08000904
halted: PC: 0x08000906
halted: PC: 0x08000908
halted: PC: 0x0800069c
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
### Assembly ########################################################################################################
0x080008fe main+42 bl 0x800069c <setPWM>
0x08000902 main+46 movs r2, #25
0x08000904 main+48 movs r1, #12
0x08000906 main+50 mov r0, r5
0x08000908 main+52 bl 0x800069c <setPWM>
0x0800090c main+56 movs r2, #1
0x0800090e main+58 movs r1, #16
0x08000910 main+60 mov.w r0, #1207959552 ; 0x48000000
0x08000914 main+64 bl 0x800247c <HAL_GPIO_WritePin>
0x08000918 main+68 movs r2, #1
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800090c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x080012a1 psp 0x00000000
### Source ##########################################################################################################
104 MX_USART2_UART_Init();
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
### Stack ###########################################################################################################
[0] from 0x0800090c in main+56 at Core/Src/main.c:114
### Threads #########################################################################################################
[1] id 0 from 0x0800090c in main+56 at Core/Src/main.c:114
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800090e
halted: PC: 0x08000910
halted: PC: 0x08000914
halted: PC: 0x0800247c
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
### Assembly ########################################################################################################
0x08000908 main+52 bl 0x800069c <setPWM>
0x0800090c main+56 movs r2, #1
0x0800090e main+58 movs r1, #16
0x08000910 main+60 mov.w r0, #1207959552 ; 0x48000000
0x08000914 main+64 bl 0x800247c <HAL_GPIO_WritePin>
0x08000918 main+68 movs r2, #1
0x0800091a main+70 movs r1, #32
0x0800091c main+72 mov.w r0, #1207959552 ; 0x48000000
0x08000920 main+76 bl 0x800247c <HAL_GPIO_WritePin>
0x08000924 main+80 bl 0x80032e4 <mc_init>
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x200000dc r10 0x00000000 pc 0x08000918 primask 0x00
r1 0x00000010 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000919 psp 0x00000000
### Source ##########################################################################################################
105 MX_TIM1_Init();
106 /* USER CODE BEGIN 2 */
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
### Stack ###########################################################################################################
[0] from 0x08000918 in main+68 at Core/Src/main.c:115
### Threads #########################################################################################################
[1] id 0 from 0x08000918 in main+68 at Core/Src/main.c:115
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800091a
halted: PC: 0x0800091c
halted: PC: 0x08000920
halted: PC: 0x0800247c
117 mc_init();
### Assembly ########################################################################################################
0x08000914 main+64 bl 0x800247c <HAL_GPIO_WritePin>
0x08000918 main+68 movs r2, #1
0x0800091a main+70 movs r1, #32
0x0800091c main+72 mov.w r0, #1207959552 ; 0x48000000
0x08000920 main+76 bl 0x800247c <HAL_GPIO_WritePin>
0x08000924 main+80 bl 0x80032e4 <mc_init>
0x08000928 main+84 movs r2, #1
0x0800092a main+86 ldr r1, [pc, #52] ; (0x8000960 <main+140>)
0x0800092c main+88 mov r0, r4
0x0800092e main+90 bl 0x80031f4 <HAL_UART_Receive_IT>
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x200000dc r10 0x00000000 pc 0x08000924 primask 0x00
r1 0x00000020 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000925 psp 0x00000000
### Source ##########################################################################################################
107 p_uart_init(&huart2);
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
### Stack ###########################################################################################################
[0] from 0x08000924 in main+80 at Core/Src/main.c:117
### Threads #########################################################################################################
[1] id 0 from 0x08000924 in main+80 at Core/Src/main.c:117
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080032e4
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
### Assembly ########################################################################################################
0x08000918 main+68 movs r2, #1
0x0800091a main+70 movs r1, #32
0x0800091c main+72 mov.w r0, #1207959552 ; 0x48000000
0x08000920 main+76 bl 0x800247c <HAL_GPIO_WritePin>
0x08000924 main+80 bl 0x80032e4 <mc_init>
0x08000928 main+84 movs r2, #1
0x0800092a main+86 ldr r1, [pc, #52] ; (0x8000960 <main+140>)
0x0800092c main+88 mov r0, r4
0x0800092e main+90 bl 0x80031f4 <HAL_UART_Receive_IT>
0x08000932 main+94 ldr r0, [pc, #48] ; (0x8000964 <main+144>)
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x48000000 r5 0x200000dc r10 0x00000000 pc 0x08000928 primask 0x00
r1 0x00000020 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000929 psp 0x00000000
### Source ##########################################################################################################
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
### Stack ###########################################################################################################
[0] from 0x08000928 in main+84 at Core/Src/main.c:118
### Threads #########################################################################################################
[1] id 0 from 0x08000928 in main+84 at Core/Src/main.c:118
### Variables #######################################################################################################
#####################################################################################################################
Breakpoint 2 at 0x8000944: file Core/Src/main.c, line 129.
### Output/messages #################################################################################################
halted: PC: 0x0800092a
halted: PC: 0x0800092c
halted: PC: 0x0800092e
halted: PC: 0x080031f4
119 HAL_TIM_Base_Start_IT(&htim1);
### Assembly ########################################################################################################
0x08000924 main+80 bl 0x80032e4 <mc_init>
0x08000928 main+84 movs r2, #1
0x0800092a main+86 ldr r1, [pc, #52] ; (0x8000960 <main+140>)
0x0800092c main+88 mov r0, r4
0x0800092e main+90 bl 0x80031f4 <HAL_UART_Receive_IT>
0x08000932 main+94 ldr r0, [pc, #48] ; (0x8000964 <main+144>)
0x08000934 main+96 bl 0x8000d7c <HAL_TIM_Base_Start_IT>
0x08000938 main+100 bl 0x80032e6 <mc_service>
0x0800093c main+104 ldr r3, [pc, #40] ; (0x8000968 <main+148>)
0x0800093e main+106 ldrb r3, [r3, #0]
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
[2] break at 0x08000944 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:128
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000932 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x40004400 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08003239 psp 0x00000000
### Source ##########################################################################################################
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
### Stack ###########################################################################################################
[0] from 0x08000932 in main+94 at Core/Src/main.c:119
### Threads #########################################################################################################
[1] id 0 from 0x08000932 in main+94 at Core/Src/main.c:119
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x08000934
halted: PC: 0x08000d7c
126 mc_service();
### Assembly ########################################################################################################
0x0800092a main+86 ldr r1, [pc, #52] ; (0x8000960 <main+140>)
0x0800092c main+88 mov r0, r4
0x0800092e main+90 bl 0x80031f4 <HAL_UART_Receive_IT>
0x08000932 main+94 ldr r0, [pc, #48] ; (0x8000964 <main+144>)
0x08000934 main+96 bl 0x8000d7c <HAL_TIM_Base_Start_IT>
0x08000938 main+100 bl 0x80032e6 <mc_service>
0x0800093c main+104 ldr r3, [pc, #40] ; (0x8000968 <main+148>)
0x0800093e main+106 ldrb r3, [r3, #0]
0x08000940 main+108 cmp r3, #0
0x08000942 main+110 beq.n 0x8000938 <main+100>
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
[2] break at 0x08000944 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:128
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000938 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40012c00 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000939 psp 0x00000000
### Source ##########################################################################################################
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
!129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
### Stack ###########################################################################################################
[0] from 0x08000938 in main+100 at Core/Src/main.c:126
### Threads #########################################################################################################
[1] id 0 from 0x08000938 in main+100 at Core/Src/main.c:126
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080032e6
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x0800092c main+88 mov r0, r4
0x0800092e main+90 bl 0x80031f4 <HAL_UART_Receive_IT>
0x08000932 main+94 ldr r0, [pc, #48] ; (0x8000964 <main+144>)
0x08000934 main+96 bl 0x8000d7c <HAL_TIM_Base_Start_IT>
0x08000938 main+100 bl 0x80032e6 <mc_service>
0x0800093c main+104 ldr r3, [pc, #40] ; (0x8000968 <main+148>)
0x0800093e main+106 ldrb r3, [r3, #0]
0x08000940 main+108 cmp r3, #0
0x08000942 main+110 beq.n 0x8000938 <main+100>
!0x08000944 main+112 ldr r3, [pc, #32] ; (0x8000968 <main+148>)
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
[2] break at 0x08000944 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:128
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800093c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x40012c00 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
!129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x0800093c in main+104 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x0800093c in main+104 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800093e
halted: PC: 0x08000940
halted: PC: 0x08000942
halted: PC: 0x08000938
126 mc_service();
### Assembly ########################################################################################################
0x0800092a main+86 ldr r1, [pc, #52] ; (0x8000960 <main+140>)
0x0800092c main+88 mov r0, r4
0x0800092e main+90 bl 0x80031f4 <HAL_UART_Receive_IT>
0x08000932 main+94 ldr r0, [pc, #48] ; (0x8000964 <main+144>)
0x08000934 main+96 bl 0x8000d7c <HAL_TIM_Base_Start_IT>
0x08000938 main+100 bl 0x80032e6 <mc_service>
0x0800093c main+104 ldr r3, [pc, #40] ; (0x8000968 <main+148>)
0x0800093e main+106 ldrb r3, [r3, #0]
0x08000940 main+108 cmp r3, #0
0x08000942 main+110 beq.n 0x8000938 <main+100>
### Breakpoints #####################################################################################################
[1] break at 0x080008d4 in Core/Src/main.c:80 for main hit 1 time
[2] break at 0x08000944 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:128
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000938 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
!129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
### Stack ###########################################################################################################
[0] from 0x08000938 in main+100 at Core/Src/main.c:126
### Threads #########################################################################################################
[1] id 0 from 0x08000938 in main+100 at Core/Src/main.c:126
### Variables #######################################################################################################
#####################################################################################################################
Note: breakpoint 2 also set at pc 0x8000944.
Breakpoint 3 at 0x8000944: file Core/Src/main.c, line 129.
Ambiguous command "de": define, define-prefix, del, delete, demangle, detach.
Breakpoint 4 at 0x8000944: file Core/Src/main.c, line 129.
Program not restarted.
Continuing.
### Output/messages #################################################################################################
Program received signal SIGINT, Interrupt.
mc_service () at shared/devices/motor_controller.c:11
11 }
### Assembly ########################################################################################################
~
~
~
~
~
0x080032e6 mc_service+0 bx lr
~
~
~
~
### Breakpoints #####################################################################################################
[4] break at 0x08000944 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:129
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x080032e6 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
1 #include "motor_controller.h"
2
3 void mc_init()
4 {
5 //
6 }
7
8 void mc_service()
9 {
10
11 }
~
~
~
~
~
~
~
~
~
### Stack ###########################################################################################################
[0] from 0x080032e6 in mc_service+0 at shared/devices/motor_controller.c:11
[1] from 0x0800093c in main+104 at Core/Src/main.c:126
### Threads #########################################################################################################
[1] id 0 from 0x080032e6 in mc_service+0 at shared/devices/motor_controller.c:11
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800093c
main () at Core/Src/main.c:127
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x0800092c main+88 mov r0, r4
0x0800092e main+90 bl 0x80031f4 <HAL_UART_Receive_IT>
0x08000932 main+94 ldr r0, [pc, #48] ; (0x8000964 <main+144>)
0x08000934 main+96 bl 0x8000d7c <HAL_TIM_Base_Start_IT>
0x08000938 main+100 bl 0x80032e6 <mc_service>
0x0800093c main+104 ldr r3, [pc, #40] ; (0x8000968 <main+148>)
0x0800093e main+106 ldrb r3, [r3, #0]
0x08000940 main+108 cmp r3, #0
0x08000942 main+110 beq.n 0x8000938 <main+100>
!0x08000944 main+112 ldr r3, [pc, #32] ; (0x8000968 <main+148>)
### Breakpoints #####################################################################################################
[4] break at 0x08000944 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:129
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800093c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
!129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x0800093c in main+104 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x0800093c in main+104 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800093e
halted: PC: 0x08000940
halted: PC: 0x08000942
halted: PC: 0x08000938
126 mc_service();
### Assembly ########################################################################################################
0x0800092a main+86 ldr r1, [pc, #52] ; (0x8000960 <main+140>)
0x0800092c main+88 mov r0, r4
0x0800092e main+90 bl 0x80031f4 <HAL_UART_Receive_IT>
0x08000932 main+94 ldr r0, [pc, #48] ; (0x8000964 <main+144>)
0x08000934 main+96 bl 0x8000d7c <HAL_TIM_Base_Start_IT>
0x08000938 main+100 bl 0x80032e6 <mc_service>
0x0800093c main+104 ldr r3, [pc, #40] ; (0x8000968 <main+148>)
0x0800093e main+106 ldrb r3, [r3, #0]
0x08000940 main+108 cmp r3, #0
0x08000942 main+110 beq.n 0x8000938 <main+100>
### Breakpoints #####################################################################################################
[4] break at 0x08000944 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:129
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000938 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
!129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
### Stack ###########################################################################################################
[0] from 0x08000938 in main+100 at Core/Src/main.c:126
### Threads #########################################################################################################
[1] id 0 from 0x08000938 in main+100 at Core/Src/main.c:126
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x080032e6
mc_service () at shared/devices/motor_controller.c:11
11 }
### Assembly ########################################################################################################
~
~
~
~
~
0x080032e6 mc_service+0 bx lr
~
~
~
~
### Breakpoints #####################################################################################################
[4] break at 0x08000944 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:129
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x080032e6 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
1 #include "motor_controller.h"
2
3 void mc_init()
4 {
5 //
6 }
7
8 void mc_service()
9 {
10
11 }
~
~
~
~
~
~
~
~
~
### Stack ###########################################################################################################
[0] from 0x080032e6 in mc_service+0 at shared/devices/motor_controller.c:11
[1] from 0x0800093c in main+104 at Core/Src/main.c:126
### Threads #########################################################################################################
[1] id 0 from 0x080032e6 in mc_service+0 at shared/devices/motor_controller.c:11
### Variables #######################################################################################################
#####################################################################################################################
### Output/messages #################################################################################################
halted: PC: 0x0800093c
main () at Core/Src/main.c:127
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x0800092c main+88 mov r0, r4
0x0800092e main+90 bl 0x80031f4 <HAL_UART_Receive_IT>
0x08000932 main+94 ldr r0, [pc, #48] ; (0x8000964 <main+144>)
0x08000934 main+96 bl 0x8000d7c <HAL_TIM_Base_Start_IT>
0x08000938 main+100 bl 0x80032e6 <mc_service>
0x0800093c main+104 ldr r3, [pc, #40] ; (0x8000968 <main+148>)
0x0800093e main+106 ldrb r3, [r3, #0]
0x08000940 main+108 cmp r3, #0
0x08000942 main+110 beq.n 0x8000938 <main+100>
!0x08000944 main+112 ldr r3, [pc, #32] ; (0x8000968 <main+148>)
### Breakpoints #####################################################################################################
[4] break at 0x08000944 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:129
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800093c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
!129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x0800093c in main+104 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x0800093c in main+104 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.elf, Remote target
[Inferior 1 (Remote target) detached]
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x0800093c in ?? ()
### Assembly ########################################################################################################
0x0800093c ? ldr r3, [pc, #40] ; (0x8000968)
0x0800093e ? ldrb r3, [r3, #0]
0x08000940 ? cmp r3, #0
0x08000942 ? beq.n 0x8000938
0x08000944 ? ldr r3, [pc, #32] ; (0x8000968)
0x08000946 ? movs r2, #0
0x08000948 ? strb r2, [r3, #0]
0x0800094a ? ldr r3, [pc, #32] ; (0x800096c)
0x0800094c ? ldr r1, [r3, #0]
0x0800094e ? ldr r0, [pc, #32] ; (0x8000970)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800093c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x0800093c
### Threads #########################################################################################################
[1] id 0 from 0x0800093c
### Variables #######################################################################################################
#####################################################################################################################
generic_push.gdb:7: Error in sourced command file:
No executable file specified.
Use the "file" or "exec-file" command.
Detaching from program: , Remote target
[Inferior 1 (Remote target) detached]
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x0800093c in ?? ()
### Assembly ########################################################################################################
0x0800093c ? ldr r3, [pc, #40] ; (0x8000968)
0x0800093e ? ldrb r3, [r3, #0]
0x08000940 ? cmp r3, #0
0x08000942 ? beq.n 0x8000938
0x08000944 ? ldr r3, [pc, #32] ; (0x8000968)
0x08000946 ? movs r2, #0
0x08000948 ? strb r2, [r3, #0]
0x0800094a ? ldr r3, [pc, #32] ; (0x800096c)
0x0800094c ? ldr r1, [r3, #0]
0x0800094e ? ldr r0, [pc, #32] ; (0x8000970)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800093c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x0800093c
### Threads #########################################################################################################
[1] id 0 from 0x0800093c
### Variables #######################################################################################################
#####################################################################################################################
generic_push.gdb:7: Error in sourced command file:
No executable file specified.
Use the "file" or "exec-file" command.
Detaching from program: , Remote target
[Inferior 1 (Remote target) detached]
0x0800093c in ?? ()
### Assembly ########################################################################################################
0x0800093c ? ldr r3, [pc, #40] ; (0x8000968)
0x0800093e ? ldrb r3, [r3, #0]
0x08000940 ? cmp r3, #0
0x08000942 ? beq.n 0x8000938
0x08000944 ? ldr r3, [pc, #32] ; (0x8000968)
0x08000946 ? movs r2, #0
0x08000948 ? strb r2, [r3, #0]
0x0800094a ? ldr r3, [pc, #32] ; (0x800096c)
0x0800094c ? ldr r1, [r3, #0]
0x0800094e ? ldr r0, [pc, #32] ; (0x8000970)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800093c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x0800093d psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x0800093c
### Threads #########################################################################################################
[1] id 0 from 0x0800093c
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x4188 lma 0x8000000
Start address 0x080034c4, load size 16776
Transfer rate: 19 KB/sec, 8388 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]
main () at Core/Src/main.c:126
126 mc_service();
### Assembly ########################################################################################################
0x08000936 main+86 ldr r1, [pc, #52] ; (0x800096c <main+140>)
0x08000938 main+88 mov r0, r4
0x0800093a main+90 bl 0x80033d0 <HAL_UART_Receive_IT>
0x0800093e main+94 ldr r0, [pc, #48] ; (0x8000970 <main+144>)
0x08000940 main+96 bl 0x8000dac <HAL_TIM_Base_Start_IT>
0x08000944 main+100 bl 0x80034c2 <mc_service>
0x08000948 main+104 ldr r3, [pc, #40] ; (0x8000974 <main+148>)
0x0800094a main+106 ldrb r3, [r3, #0]
0x0800094c main+108 cmp r3, #0
0x0800094e main+110 beq.n 0x8000944 <main+100>
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000944 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000949 psp 0x00000000
### Source ##########################################################################################################
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
### Stack ###########################################################################################################
[0] from 0x08000944 in main+100 at Core/Src/main.c:126
### Threads #########################################################################################################
[1] id 0 from 0x08000944 in main+100 at Core/Src/main.c:126
### Variables #######################################################################################################
#####################################################################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080034c4 msp: 0x20010000
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3ea8 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8004038
Loading section .ARM, size 0x8 lma 0x8004100
Loading section .init_array, size 0x8 lma 0x8004108
Loading section .fini_array, size 0x8 lma 0x8004110
Loading section .data, size 0x70 lma 0x8004118
Start address 0x080034c4, load size 16776
Transfer rate: 19 KB/sec, 2097 bytes/write.
Breakpoint 1 at 0x8000950: file Core/Src/main.c, line 129.
Note: automatically using hardware breakpoints for read-only addresses.
Starting program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.elf
### Output/messages #################################################################################################
Program received signal SIGINT, Interrupt.
0x0800094c in main () at Core/Src/main.c:127
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x0800093e main+94 ldr r0, [pc, #48] ; (0x8000970 <main+144>)
0x08000940 main+96 bl 0x8000dac <HAL_TIM_Base_Start_IT>
0x08000944 main+100 bl 0x80034c2 <mc_service>
0x08000948 main+104 ldr r3, [pc, #40] ; (0x8000974 <main+148>)
0x0800094a main+106 ldrb r3, [r3, #0]
0x0800094c main+108 cmp r3, #0
0x0800094e main+110 beq.n 0x8000944 <main+100>
!0x08000950 main+112 ldr r3, [pc, #32] ; (0x8000974 <main+148>)
0x08000952 main+114 movs r2, #0
0x08000954 main+116 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
[1] break at 0x08000950 in Core/Src/main.c:129 for /storage/Shared/Projects/stm32_projects/motor_controller/Core/Src/main.c:129
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800094c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000949 psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
!129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x0800094c in main+108 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x0800094c in main+108 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.elf, Remote target
[Inferior 1 (Remote target) detached]
0x0800094c in main () at Core/Src/main.c:127
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x0800093e main+94 ldr r0, [pc, #48] ; (0x8000970 <main+144>)
0x08000940 main+96 bl 0x8000dac <HAL_TIM_Base_Start_IT>
0x08000944 main+100 bl 0x80034c2 <mc_service>
0x08000948 main+104 ldr r3, [pc, #40] ; (0x8000974 <main+148>)
0x0800094a main+106 ldrb r3, [r3, #0]
0x0800094c main+108 cmp r3, #0
0x0800094e main+110 beq.n 0x8000944 <main+100>
0x08000950 main+112 ldr r3, [pc, #32] ; (0x8000974 <main+148>)
0x08000952 main+114 movs r2, #0
0x08000954 main+116 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800094c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000949 psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x0800094c in main+108 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x0800094c in main+108 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080034c4 msp: 0x20010000
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3ea8 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8004038
Loading section .ARM, size 0x8 lma 0x8004100
Loading section .init_array, size 0x8 lma 0x8004108
Loading section .fini_array, size 0x8 lma 0x8004110
Loading section .data, size 0x70 lma 0x8004118
Start address 0x080034c4, load size 16776
Transfer rate: 19 KB/sec, 2097 bytes/write.
Breakpoint 1 at 0x800069c: file Core/Src/main.c, line 380.
Note: automatically using hardware breakpoints for read-only addresses.
Starting program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.elf
### Output/messages #################################################################################################
Program received signal SIGINT, Interrupt.
0x0800094c in main () at Core/Src/main.c:127
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x0800093e main+94 ldr r0, [pc, #48] ; (0x8000970 <main+144>)
0x08000940 main+96 bl 0x8000dac <HAL_TIM_Base_Start_IT>
0x08000944 main+100 bl 0x80034c2 <mc_service>
0x08000948 main+104 ldr r3, [pc, #40] ; (0x8000974 <main+148>)
0x0800094a main+106 ldrb r3, [r3, #0]
0x0800094c main+108 cmp r3, #0
0x0800094e main+110 beq.n 0x8000944 <main+100>
0x08000950 main+112 ldr r3, [pc, #32] ; (0x8000974 <main+148>)
0x08000952 main+114 movs r2, #0
0x08000954 main+116 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
[1] break at 0x0800069c in Core/Src/main.c:380 for Core/Src/main.c:380
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800094c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000949 psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x0800094c in main+108 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x0800094c in main+108 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.elf, Remote target
[Inferior 1 (Remote target) detached]
0x0800094c in main () at Core/Src/main.c:127
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x0800093e main+94 ldr r0, [pc, #48] ; (0x8000970 <main+144>)
0x08000940 main+96 bl 0x8000dac <HAL_TIM_Base_Start_IT>
0x08000944 main+100 bl 0x80034c2 <mc_service>
0x08000948 main+104 ldr r3, [pc, #40] ; (0x8000974 <main+148>)
0x0800094a main+106 ldrb r3, [r3, #0]
0x0800094c main+108 cmp r3, #0
0x0800094e main+110 beq.n 0x8000944 <main+100>
0x08000950 main+112 ldr r3, [pc, #32] ; (0x8000974 <main+148>)
0x08000952 main+114 movs r2, #0
0x08000954 main+116 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800094c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000949 psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x0800094c in main+108 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x0800094c in main+108 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080034c4 msp: 0x20010000
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3ea8 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8004038
Loading section .ARM, size 0x8 lma 0x8004100
Loading section .init_array, size 0x8 lma 0x8004108
Loading section .fini_array, size 0x8 lma 0x8004110
Loading section .data, size 0x70 lma 0x8004118
Start address 0x080034c4, load size 16776
Transfer rate: 19 KB/sec, 2097 bytes/write.
Detaching from program: /storage/Shared/Projects/stm32_projects/motor_controller/build/motor_controller.elf, Remote target
[Inferior 1 (Remote target) detached]
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x080034c4 in ?? ()
### Assembly ########################################################################################################
0x080034c4 ? ldr.w sp, [pc, #52] ; 0x80034fc
0x080034c8 ? bl 0x8003430
0x080034cc ? ldr r0, [pc, #48] ; (0x8003500)
0x080034ce ? ldr r1, [pc, #52] ; (0x8003504)
0x080034d0 ? ldr r2, [pc, #52] ; (0x8003508)
0x080034d2 ? movs r3, #0
0x080034d4 ? b.n 0x80034dc
0x080034d6 ? ldr r4, [r2, r3]
0x080034d8 ? str r4, [r0, r3]
0x080034da ? adds r3, #4
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080034c4 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x20010000 msp 0x20010000 control 0x00
r4 0x00000000 r9 0x00000000 lr 0xffffffff psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080034c4
[1] from 0xfffffffe
### Threads #########################################################################################################
[1] id 0 from 0x080034c4
### Variables #######################################################################################################
#####################################################################################################################
generic_push.gdb:7: Error in sourced command file:
No executable file specified.
Use the "file" or "exec-file" command.
Detaching from program: , Remote target
[Inferior 1 (Remote target) detached]
0x080034c4 in ?? ()
### Assembly ########################################################################################################
0x080034c4 ? ldr.w sp, [pc, #52] ; 0x80034fc
0x080034c8 ? bl 0x8003430
0x080034cc ? ldr r0, [pc, #48] ; (0x8003500)
0x080034ce ? ldr r1, [pc, #52] ; (0x8003504)
0x080034d0 ? ldr r2, [pc, #52] ; (0x8003508)
0x080034d2 ? movs r3, #0
0x080034d4 ? b.n 0x80034dc
0x080034d6 ? ldr r4, [r2, r3]
0x080034d8 ? str r4, [r0, r3]
0x080034da ? adds r3, #4
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x00000000 r10 0x00000000 pc 0x080034c4 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x01000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0x00000000 fpscr 0x00000000 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x20010000 msp 0x20010000 control 0x00
r4 0x00000000 r9 0x00000000 lr 0xffffffff psp 0x00000000
### Source ##########################################################################################################
### Stack ###########################################################################################################
[0] from 0x080034c4
[1] from 0xfffffffe
### Threads #########################################################################################################
[1] id 0 from 0x080034c4
### Variables #######################################################################################################
#####################################################################################################################
Loading section .sec1, size 0x4188 lma 0x8000000
Start address 0x080034c4, load size 16776
Transfer rate: 19 KB/sec, 8388 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]
0x0800094a in main () at Core/Src/main.c:127
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x0800093a main+90 bl 0x80033d0 <HAL_UART_Receive_IT>
0x0800093e main+94 ldr r0, [pc, #48] ; (0x8000970 <main+144>)
0x08000940 main+96 bl 0x8000dac <HAL_TIM_Base_Start_IT>
0x08000944 main+100 bl 0x80034c2 <mc_service>
0x08000948 main+104 ldr r3, [pc, #40] ; (0x8000974 <main+148>)
0x0800094a main+106 ldrb r3, [r3, #0]
0x0800094c main+108 cmp r3, #0
0x0800094e main+110 beq.n 0x8000944 <main+100>
0x08000950 main+112 ldr r3, [pc, #32] ; (0x8000974 <main+148>)
0x08000952 main+114 movs r2, #0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x0800094a primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x2000008c r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000949 psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim1);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x0800094a in main+106 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x0800094a in main+106 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3ea8 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8004038
Loading section .ARM, size 0x8 lma 0x8004100
Loading section .init_array, size 0x8 lma 0x8004108
Loading section .fini_array, size 0x8 lma 0x8004110
Loading section .data, size 0x70 lma 0x8004118
Start address 0x080034c4, load size 16776
Transfer rate: 19 KB/sec, 2097 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]
0x08000944 in main () at Core/Src/main.c:130
130 PDEBUG("%d\n", sys_time);
### Assembly ########################################################################################################
0x08000936 main+118 ldr r1, [pc, #52] ; (0x800096c <DebugMon_Handler>)
0x08000938 main+120 mov r0, r4
0x0800093a main+122 bl 0x80033d0 <memset+12>
0x0800093e main+126 ldr r0, [pc, #48] ; (0x8000970 <SysTick_Handler>)
0x08000940 main+128 bl 0x8000dac <HAL_TIM_IRQHandler+12>
0x08000944 main+132 bl 0x80034c2 <_kill_r+26>
0x08000948 main+136 ldr r3, [pc, #40] ; (0x8000974 <SysTick_Handler+4>)
0x0800094a main+138 ldrb r3, [r3, #0]
0x0800094c main+140 cmp r3, #0
0x0800094e main+142 beq.n 0x8000944 <main+132>
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200000dc r10 0x00000000 pc 0x08000944 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000081 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000949 psp 0x00000000
### Source ##########################################################################################################
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
137 }
138
139 /**
### Stack ###########################################################################################################
[0] from 0x08000944 in main+132 at Core/Src/main.c:130
### Threads #########################################################################################################
[1] id 0 from 0x08000944 in main+132 at Core/Src/main.c:130
### Variables #######################################################################################################
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3d08 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8003e98
Loading section .ARM, size 0x8 lma 0x8003f60
Loading section .init_array, size 0x8 lma 0x8003f68
Loading section .fini_array, size 0x8 lma 0x8003f70
Loading section .data, size 0x70 lma 0x8003f78
Start address 0x08003328, load size 16360
Transfer rate: 19 KB/sec, 2337 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]
0x08000924 in main () at Core/Src/main.c:118
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
### Assembly ########################################################################################################
0x08000916 main+74 ldr r1, [pc, #52] ; (0x800094c <main+128>)
0x08000918 main+76 mov r0, r4
0x0800091a main+78 bl 0x8003234 <UART_Start_Receive_IT+204>
0x0800091e main+82 ldr r0, [pc, #48] ; (0x8000950 <main+132>)
0x08000920 main+84 bl 0x8000d2c <TIM_OC6_SetConfig+80>
0x08000924 main+88 bl 0x8003326 <p_uart_init+22>
0x08000928 main+92 ldr r3, [pc, #40] ; (0x8000954 <main+136>)
0x0800092a main+94 ldrb r3, [r3, #0]
0x0800092c main+96 cmp r3, #0
0x0800092e main+98 beq.n 0x8000924 <main+88>
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000090 r10 0x00000000 pc 0x08000924 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0x0000000a fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000929 psp 0x00000000
### Source ##########################################################################################################
108
109 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
110 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
111 setPWM(&htim2, TIM_CHANNEL_2, 50);
112 setPWM(&htim2, TIM_CHANNEL_4, 25);
113
114 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
115 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
116
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim6);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
### Stack ###########################################################################################################
[0] from 0x08000924 in main+88 at Core/Src/main.c:118
### Threads #########################################################################################################
[1] id 0 from 0x08000924 in main+88 at Core/Src/main.c:118
### Variables #######################################################################################################
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3d18 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8003ea8
Loading section .ARM, size 0x8 lma 0x8003f70
Loading section .init_array, size 0x8 lma 0x8003f78
Loading section .fini_array, size 0x8 lma 0x8003f80
Loading section .data, size 0x70 lma 0x8003f88
Start address 0x08003334, load size 16376
Transfer rate: 19 KB/sec, 2339 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]
main () at Core/Src/main.c:127
127 if(b_timer_struck)
### Assembly ########################################################################################################
0x08000924 main+88 mov r0, r4
0x08000926 main+90 bl 0x8003240 <HAL_UART_Receive_IT>
0x0800092a main+94 ldr r0, [pc, #48] ; (0x800095c <main+144>)
0x0800092c main+96 bl 0x8000d38 <HAL_TIM_Base_Start_IT>
0x08000930 main+100 bl 0x8003332 <mc_service>
0x08000934 main+104 ldr r3, [pc, #40] ; (0x8000960 <main+148>)
0x08000936 main+106 ldrb r3, [r3, #0]
0x08000938 main+108 cmp r3, #0
0x0800093a main+110 beq.n 0x8000930 <main+100>
0x0800093c main+112 ldr r3, [pc, #32] ; (0x8000960 <main+148>)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000090 r10 0x00000000 pc 0x08000934 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0x0000000a fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000935 psp 0x00000000
### Source ##########################################################################################################
117 mc_init();
118 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
119 HAL_TIM_Base_Start_IT(&htim6);
120 /* USER CODE END 2 */
121
122 /* Infinite loop */
123 /* USER CODE BEGIN WHILE */
124 while (1)
125 {
126 mc_service();
127 if(b_timer_struck)
128 {
129 b_timer_struck = false;
130 PDEBUG("%d\n", sys_time);
131 }
132 /* USER CODE END WHILE */
133
134 /* USER CODE BEGIN 3 */
135 }
136 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x08000934 in main+104 at Core/Src/main.c:127
### Threads #########################################################################################################
[1] id 0 from 0x08000934 in main+104 at Core/Src/main.c:127
### Variables #######################################################################################################
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3d18 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8003ea8
Loading section .ARM, size 0x8 lma 0x8003f70
Loading section .init_array, size 0x8 lma 0x8003f78
Loading section .fini_array, size 0x8 lma 0x8003f80
Loading section .data, size 0x70 lma 0x8003f88
Start address 0x08003334, load size 16376
Transfer rate: 19 KB/sec, 2339 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]
main () at Core/Src/main.c:128
128 mc_service();
### Assembly ########################################################################################################
0x08000924 main+92 mov r0, r4
0x08000926 main+94 bl 0x8003240 <HAL_UART_Receive_IT+20>
0x0800092a main+98 ldr r0, [pc, #48] ; (0x800095c <MemManage_Handler>)
0x0800092c main+100 bl 0x8000d38 <HAL_TIM_Base_Start_IT+20>
0x08000930 main+104 bl 0x8003332 <Reset_Handler+18>
0x08000934 main+108 ldr r3, [pc, #40] ; (0x8000960 <UsageFault_Handler>)
0x08000936 main+110 ldrb r3, [r3, #0]
0x08000938 main+112 cmp r3, #0
0x0800093a main+114 beq.n 0x8000930 <main+104>
0x0800093c main+116 ldr r3, [pc, #32] ; (0x8000960 <UsageFault_Handler>)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000090 r10 0x00000000 pc 0x08000934 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x006010d0 r7 0x00000000 r12 0x0000000a fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000935 psp 0x00000000
### Source ##########################################################################################################
118
119 mc_init();
120 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
121 HAL_TIM_Base_Start_IT(&htim6);
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 mc_service();
129 if (b_timer_struck)
130 {
131 b_timer_struck = false;
132 }
133 /* USER CODE END WHILE */
134
135 /* USER CODE BEGIN 3 */
136 }
137 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x08000934 in main+108 at Core/Src/main.c:128
### Threads #########################################################################################################
[1] id 0 from 0x08000934 in main+108 at Core/Src/main.c:128
### Variables #######################################################################################################
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3d00 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8003e90
Loading section .ARM, size 0x8 lma 0x8003f58
Loading section .init_array, size 0x8 lma 0x8003f60
Loading section .fini_array, size 0x8 lma 0x8003f68
Loading section .data, size 0x70 lma 0x8003f70
Start address 0x08003320, load size 16352
Transfer rate: 19 KB/sec, 2336 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]
0x0800093a in main () at Core/Src/main.c:129
warning: Source file is more recent than executable.
129 if (b_timer_struck)
### Assembly ########################################################################################################
0x0800092e main+102 ldr r3, [pc, #36] ; (0x8000954 <main+140>)
0x08000930 main+104 movs r2, #0
0x08000932 main+106 strb r2, [r3, #0]
0x08000934 main+108 bl 0x800331e <mc_service>
0x08000938 main+112 ldr r3, [pc, #24] ; (0x8000954 <main+140>)
0x0800093a main+114 ldrb r3, [r3, #0]
0x0800093c main+116 cmp r3, #0
0x0800093e main+118 beq.n 0x8000934 <main+108>
0x08000940 main+120 b.n 0x800092e <main+102>
0x08000942 main+122 nop
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000090 r10 0x00000000 pc 0x0800093a primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x2000008c r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000939 psp 0x00000000
### Source ##########################################################################################################
119 mc_init();
120 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
121 HAL_TIM_Base_Start_IT(&htim6);
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 mc_service();
129 if (b_timer_struck)
130 {
131 PDEBUG("%d\n", sys_time);
132 b_timer_struck = false;
133 }
134 /* USER CODE END WHILE */
135
136 /* USER CODE BEGIN 3 */
137 }
138 /* USER CODE END 3 */
### Stack ###########################################################################################################
[0] from 0x0800093a in main+114 at Core/Src/main.c:129
### Threads #########################################################################################################
[1] id 0 from 0x0800093a in main+114 at Core/Src/main.c:129
### Variables #######################################################################################################
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3d00 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8003e90
Loading section .ARM, size 0x8 lma 0x8003f58
Loading section .init_array, size 0x8 lma 0x8003f60
Loading section .fini_array, size 0x8 lma 0x8003f68
Loading section .data, size 0x70 lma 0x8003f70
Start address 0x08003320, load size 16352
Transfer rate: 19 KB/sec, 2336 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]
0x0800093a in main () at Core/Src/main.c:131
131 PDEBUG("%d\n", sys_time);
### Assembly ########################################################################################################
0x0800092e main+102 ldr r3, [pc, #36] ; (0x8000954 <main+140>)
0x08000930 main+104 movs r2, #0
0x08000932 main+106 strb r2, [r3, #0]
0x08000934 main+108 bl 0x800331e <p_uart_init+18>
0x08000938 main+112 ldr r3, [pc, #24] ; (0x8000954 <main+140>)
0x0800093a main+114 ldrb r3, [r3, #0]
0x0800093c main+116 cmp r3, #0
0x0800093e main+118 beq.n 0x8000934 <main+108>
0x08000940 main+120 b.n 0x800092e <main+102>
0x08000942 main+122 nop
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000090 r10 0x00000000 pc 0x0800093a primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000000 r7 0x00000000 r12 0x00001000 fpscr 0x00000010 faultmask 0x00
r3 0x2000008c r8 0x00000000 sp 0x2000fff8 msp 0x2000fff8 control 0x04
r4 0x20000128 r9 0x00000000 lr 0x08000939 psp 0x00000000
### Source ##########################################################################################################
121 HAL_TIM_Base_Start_IT(&htim6);
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 mc_service();
129 if (b_timer_struck)
130 {
131 PDEBUG("%d\n", sys_time);
132 b_timer_struck = false;
133 }
134 /* USER CODE END WHILE */
135
136 /* USER CODE BEGIN 3 */
137 }
138 /* USER CODE END 3 */
139 }
140
### Stack ###########################################################################################################
[0] from 0x0800093a in main+114 at Core/Src/main.c:131
### Threads #########################################################################################################
[1] id 0 from 0x0800093a in main+114 at Core/Src/main.c:131
### Variables #######################################################################################################
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x3d10 lma 0x8000190
Loading section .rodata, size 0xc8 lma 0x8003ea0
Loading section .ARM, size 0x8 lma 0x8003f68
Loading section .init_array, size 0x8 lma 0x8003f70
Loading section .fini_array, size 0x8 lma 0x8003f78
Loading section .data, size 0x70 lma 0x8003f80
Start address 0x08003330, load size 16368
Transfer rate: 19 KB/sec, 2338 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]
0x08002efe in __LDREXW (addr=0x600018) at Drivers/CMSIS/Include/cmsis_gcc.h:1155
1155 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
### Assembly ########################################################################################################
~
~
~
~
0x08002efc __LDREXW+0 ldr r4, [r3, #28]
0x08002efe __LDREXW+2 bics.w r4, r7, r4
0x08002f02 __LDREXW+6 ite eq
~
~
~
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000128 r10 0x00000000 pc 0x08002efe primask 0x00
r1 0x00000080 r6 0x00000000 r11 0x00000000 xPSR 0x41000000 basepri 0x00
r2 0x00600010 r7 0x00000080 r12 0x0000000a fpscr 0x00000010 faultmask 0x00
r3 0x40004400 r8 0x00000064 sp 0x2000fe88 msp 0x2000fe88 control 0x04
r4 0x00600010 r9 0x001a3656 lr 0x08002f17 psp 0x00000000
### Source ##########################################################################################################
1145 /**
1146 \brief LDR Exclusive (32 bit)
1147 \details Executes a exclusive LDR instruction for 32 bit values.
1148 \param [in] ptr Pointer to data
1149 \return value of type uint32_t at (*ptr)
1150 */
1151 __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
1152 {
1153 uint32_t result;
1154
1155 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
1156 return(result);
1157 }
1158
1159
1160 /**
1161 \brief STR Exclusive (8 bit)
1162 \details Executes a exclusive STR instruction for 8 bit values.
1163 \param [in] value Value to store
1164 \param [in] ptr Pointer to location
### Stack ###########################################################################################################
[0] from 0x08002efe in __LDREXW+2 at Drivers/CMSIS/Include/cmsis_gcc.h:1155
[1] from 0x08002efe in UART_EndRxTransfer+22 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:3788
### Threads #########################################################################################################
[1] id 0 from 0x08002efe in __LDREXW+2 at Drivers/CMSIS/Include/cmsis_gcc.h:1155
### Variables #######################################################################################################
arg addr = 0x600018: 0
loc result = <optimized out>, val = <optimized out>
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x58b0 lma 0x8000190
Loading section .rodata, size 0x2b0 lma 0x8005a40
Loading section .ARM, size 0x8 lma 0x8005cf0
Loading section .init_array, size 0x8 lma 0x8005cf8
Loading section .fini_array, size 0x8 lma 0x8005d00
Loading section .data, size 0x70 lma 0x8005d08
Start address 0x08003b54, load size 23928
Transfer rate: 23 KB/sec, 2991 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]
__udivmoddi4 (n=<optimized out>, d=<optimized out>, rp=0x0) at /var/tmp/portage/cross-arm-none-eabi/gcc-11.2.1_p20220115/work/gcc-11-20220115/libgcc/libgcc2.c:1181
1181 /var/tmp/portage/cross-arm-none-eabi/gcc-11.2.1_p20220115/work/gcc-11-20220115/libgcc/libgcc2.c: No such file or directory.
### Assembly ########################################################################################################
0x08001108 __udivmoddi4+476 mov r0, r4
0x0800110a __udivmoddi4+478 bl 0x8003a34 <UART_SetConfig+540>
0x0800110e __udivmoddi4+482 ldr r0, [pc, #68] ; (0x8001154 <__udivmoddi4+552>)
0x08001110 __udivmoddi4+484 bl 0x800152c <main+28>
0x08001114 __udivmoddi4+488 movs r4, #0
0x08001116 __udivmoddi4+490 ldr r3, [pc, #64] ; (0x8001158 <__udivmoddi4+556>)
0x08001118 __udivmoddi4+492 ldrb r3, [r3, #0]
0x0800111a __udivmoddi4+494 cmp r3, #0
0x0800111c __udivmoddi4+496 beq.n 0x8001116 <__udivmoddi4+490>
0x0800111e __udivmoddi4+498 ldr r3, [pc, #56] ; (0x8001158 <__udivmoddi4+556>)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000090 r10 0x00000000 pc 0x08001116 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0x0000000a fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x000000cf r9 0x00000000 lr 0x08003b4d psp 0x00000000
### Source ##########################################################################################################
Cannot display "libgcc2.c"
### Stack ###########################################################################################################
[0] from 0x08001116 in __udivmoddi4+490 at /var/tmp/portage/cross-arm-none-eabi/gcc-11.2.1_p20220115/work/gcc-11-20220115/libgcc/libgcc2.c:1181
[1] from 0x00000000
### Threads #########################################################################################################
[1] id 0 from 0x08001116 in __udivmoddi4+490 at /var/tmp/portage/cross-arm-none-eabi/gcc-11.2.1_p20220115/work/gcc-11-20220115/libgcc/libgcc2.c:1181
### Variables #######################################################################################################
arg n = <optimized out>, d = <optimized out>, rp = 0x0: 576525989098618880
loc __t0 = <optimized out>, m1 = <optimized out>, m0 = <optimized out>, d0 = 6291664, d1 = 10, n0 = 0, n1 = 207, n2 = <optimized out>, q0 = 0, q1 = <optimized out>, b = 0, bm = 64
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa6d0 lma 0x80001c0
Loading section .rodata, size 0x660 lma 0x800a890
Loading section .ARM, size 0x8 lma 0x800aef0
Loading section .init_array, size 0x8 lma 0x800aef8
Loading section .fini_array, size 0x8 lma 0x800af00
Loading section .data, size 0x9a8 lma 0x800af08
Start address 0x08003fb4, load size 47232
Transfer rate: 30 KB/sec, 5248 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]
0x08001578 in HAL_MspInit () at Core/Src/stm32l4xx_hal_msp.c:72
72 __HAL_RCC_PWR_CLK_ENABLE();
### Assembly ########################################################################################################
0x0800156a HAL_MspInit+18 bl 0x8003e94 <p_printf+44>
0x0800156e HAL_MspInit+22 ldr r0, [pc, #68] ; (0x80015b4 <HAL_TIM_Base_MspInit+4>)
0x08001570 HAL_MspInit+24 bl 0x800198c <HAL_TIM_IRQHandler+44>
0x08001574 HAL_MspInit+28 movs r4, #0
0x08001576 HAL_MspInit+30 ldr r3, [pc, #64] ; (0x80015b8 <HAL_TIM_Base_MspInit+8>)
0x08001578 HAL_MspInit+32 ldrb r3, [r3, #0]
0x0800157a HAL_MspInit+34 cmp r3, #0
0x0800157c HAL_MspInit+36 beq.n 0x8001576 <HAL_MspInit+30>
0x0800157e HAL_MspInit+38 ldr r3, [pc, #56] ; (0x80015b8 <HAL_TIM_Base_MspInit+8>)
0x08001580 HAL_MspInit+40 movs r2, #0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200009c8 r10 0x00000000 pc 0x08001578 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0xffffffff fpscr 0x00000010 faultmask 0x00
r3 0x200009c4 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x000000c0 r9 0x00000000 lr 0x08003fad psp 0x00000000
### Source ##########################################################################################################
62 /**
63 * Initializes the Global MSP.
64 */
65 void HAL_MspInit(void)
66 {
67 /* USER CODE BEGIN MspInit 0 */
68
69 /* USER CODE END MspInit 0 */
70
71 __HAL_RCC_SYSCFG_CLK_ENABLE();
72 __HAL_RCC_PWR_CLK_ENABLE();
73
74 /* System interrupt init*/
75
76 /* USER CODE BEGIN MspInit 1 */
77
78 /* USER CODE END MspInit 1 */
79 }
80
81 /**
### Stack ###########################################################################################################
[0] from 0x08001578 in HAL_MspInit+32 at Core/Src/stm32l4xx_hal_msp.c:72
[1] from 0x08003fac in memset
### Threads #########################################################################################################
[1] id 0 from 0x08001578 in HAL_MspInit+32 at Core/Src/stm32l4xx_hal_msp.c:72
### Variables #######################################################################################################
loc tmpreg = 536873776
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0x92a8 lma 0x80001c0
Loading section .rodata, size 0x4a8 lma 0x8009468
Loading section .ARM, size 0x8 lma 0x8009910
Loading section .init_array, size 0x8 lma 0x8009918
Loading section .fini_array, size 0x8 lma 0x8009920
Loading section .data, size 0x9a8 lma 0x8009928
Start address 0x08003f00, load size 41632
Transfer rate: 29 KB/sec, 4625 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]
SystemClock_Config () at Core/Src/main.c:186
186 RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
### Assembly ########################################################################################################
0x080014ce SystemClock_Config+90 ldr r0, [pc, #68] ; (0x8001514 <main+4>)
0x080014d0 SystemClock_Config+92 bl 0x80018ec <TIM_OC5_SetConfig+20>
0x080014d4 SystemClock_Config+96 movs r4, #0
0x080014d6 SystemClock_Config+98 ldr r3, [pc, #64] ; (0x8001518 <main+8>)
0x080014d8 SystemClock_Config+100 ldrb r3, [r3, #0]
0x080014da SystemClock_Config+102 cmp r3, #0
0x080014dc SystemClock_Config+104 beq.n 0x80014d6 <SystemClock_Config+98>
0x080014de SystemClock_Config+106 ldr r3, [pc, #56] ; (0x8001518 <main+8>)
0x080014e0 SystemClock_Config+108 movs r2, #0
0x080014e2 SystemClock_Config+110 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200009c8 r10 0x00000000 pc 0x080014da primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0xffffffff fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x00000062 r9 0x00000000 lr 0x08003ef7 psp 0x00000000
### Source ##########################################################################################################
176 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV7;
177 RCC_OscInitStruct.PLL.PLLQ = RCC_PLLQ_DIV2;
178 RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV2;
179 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
180 {
181 Error_Handler();
182 }
183
184 /** Initializes the CPU, AHB and APB buses clocks
185 */
186 RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
187 |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
188 RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
189 RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
190 RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
191 RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
192
193 if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK)
194 {
195 Error_Handler();
### Stack ###########################################################################################################
[0] from 0x080014da in SystemClock_Config+102 at Core/Src/main.c:186
[1] from 0x00000000
### Threads #########################################################################################################
[1] id 0 from 0x080014da in SystemClock_Config+102 at Core/Src/main.c:186
### Variables #######################################################################################################
loc RCC_OscInitStruct = {OscillatorType = 0,HSEState = 0,LSEState = 0,HSIState = 0,HSICalibrationValue = 0,LSIState = 0,MSIS…, RCC_ClkInitStruct = {ClockType = 0,SYSCLKSource = 536873776,AHBCLKDivider = 0,APB1CLKDivider = 134233911,APB2CLKDivider …
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa7a8 lma 0x80001c0
Loading section .rodata, size 0x680 lma 0x800a968
Loading section .ARM, size 0x8 lma 0x800afe8
Loading section .init_array, size 0x8 lma 0x800aff0
Loading section .fini_array, size 0x8 lma 0x800aff8
Loading section .data, size 0x9a8 lma 0x800b000
Start address 0x08003ff8, load size 47480
Transfer rate: 30 KB/sec, 5275 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]
main () at Core/Src/main.c:129
129 if (b_timer_struck)
### Assembly ########################################################################################################
0x08001568 main+88 mov r0, r4
0x0800156a main+90 bl 0x8003e94 <HAL_UART_Receive_IT>
0x0800156e main+94 ldr r0, [pc, #68] ; (0x80015b4 <main+164>)
0x08001570 main+96 bl 0x800198c <HAL_TIM_Base_Start_IT>
0x08001574 main+100 movs r4, #0
0x08001576 main+102 ldr r3, [pc, #64] ; (0x80015b8 <main+168>)
0x08001578 main+104 ldrb r3, [r3, #0]
0x0800157a main+106 cmp r3, #0
0x0800157c main+108 beq.n 0x8001576 <main+102>
0x0800157e main+110 ldr r3, [pc, #56] ; (0x80015b8 <main+168>)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200009c8 r10 0x00000000 pc 0x08001576 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0xffffffff fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x00000079 r9 0x00000000 lr 0x08003fe9 psp 0x00000000
### Source ##########################################################################################################
119 mc_init();
120 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
121 HAL_TIM_Base_Start_IT(&htim6);
122 uint16_t motor_degrees = 0;
123 /* USER CODE END 2 */
124
125 /* Infinite loop */
126 /* USER CODE BEGIN WHILE */
127 while (1)
128 {
129 if (b_timer_struck)
130 {
131 // PDEBUG("%d\n", sys_time);
132 b_timer_struck = false;
133 motor_degrees = (motor_degrees + 1) % 360;
134 mc_service(motor_degrees, 50);
135 }
136 /* USER CODE END WHILE */
137
138 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x08001576 in main+102 at Core/Src/main.c:129
### Threads #########################################################################################################
[1] id 0 from 0x08001576 in main+102 at Core/Src/main.c:129
### Variables #######################################################################################################
loc motor_degrees = 121
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa7a8 lma 0x80001c0
Loading section .rodata, size 0x680 lma 0x800a968
Loading section .ARM, size 0x8 lma 0x800afe8
Loading section .init_array, size 0x8 lma 0x800aff0
Loading section .fini_array, size 0x8 lma 0x800aff8
Loading section .data, size 0x9a8 lma 0x800b000
Start address 0x08003ff8, load size 47480
Transfer rate: 30 KB/sec, 5275 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]
main () at Core/Src/main.c:129
129 if (b_timer_struck)
### Assembly ########################################################################################################
0x08001568 main+88 mov r0, r4
0x0800156a main+90 bl 0x8003e94 <HAL_UART_Receive_IT>
0x0800156e main+94 ldr r0, [pc, #68] ; (0x80015b4 <main+164>)
0x08001570 main+96 bl 0x800198c <HAL_TIM_Base_Start_IT>
0x08001574 main+100 movs r4, #0
0x08001576 main+102 ldr r3, [pc, #64] ; (0x80015b8 <main+168>)
0x08001578 main+104 ldrb r3, [r3, #0]
0x0800157a main+106 cmp r3, #0
0x0800157c main+108 beq.n 0x8001576 <main+102>
0x0800157e main+110 ldr r3, [pc, #56] ; (0x80015b8 <main+168>)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200009c8 r10 0x00000000 pc 0x08001576 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0xffffffff fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x0000002d r9 0x00000000 lr 0x08003fe9 psp 0x00000000
### Source ##########################################################################################################
119 mc_init();
120 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
121 HAL_TIM_Base_Start_IT(&htim6);
122 uint16_t motor_degrees = 0;
123 /* USER CODE END 2 */
124
125 /* Infinite loop */
126 /* USER CODE BEGIN WHILE */
127 while (1)
128 {
129 if (b_timer_struck)
130 {
131 // PDEBUG("%d\n", sys_time);
132 b_timer_struck = false;
133 motor_degrees = (motor_degrees + 1) % 360;
134 mc_service(motor_degrees, 50);
135 }
136 /* USER CODE END WHILE */
137
138 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x08001576 in main+102 at Core/Src/main.c:129
### Threads #########################################################################################################
[1] id 0 from 0x08001576 in main+102 at Core/Src/main.c:129
### Variables #######################################################################################################
loc motor_degrees = 45
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa7a8 lma 0x80001c0
Loading section .rodata, size 0x680 lma 0x800a968
Loading section .ARM, size 0x8 lma 0x800afe8
Loading section .init_array, size 0x8 lma 0x800aff0
Loading section .fini_array, size 0x8 lma 0x800aff8
Loading section .data, size 0x9a8 lma 0x800b000
Start address 0x08003ff8, load size 47480
Transfer rate: 30 KB/sec, 5275 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]
0x08003b80 in UART_WaitOnFlagUntilTimeout (huart=huart@entry=0x20000a60 <huart2>, Flag=Flag@entry=128, Status=Status@entry=RESET, Tickstart=Tickstart@entry=18128, Timeout=Timeout@entry=100) at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:3556
3556 if (READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U)
### Assembly ########################################################################################################
0x08003b74 UART_WaitOnFlagUntilTimeout+50 bhi.n 0x8003bd2 <UART_WaitOnFlagUntilTimeout+144>
0x08003b76 UART_WaitOnFlagUntilTimeout+52 cmp.w r8, #0
0x08003b7a UART_WaitOnFlagUntilTimeout+56 beq.n 0x8003bd2 <UART_WaitOnFlagUntilTimeout+144>
0x08003b7c UART_WaitOnFlagUntilTimeout+58 ldr r3, [r5, #0]
0x08003b7e UART_WaitOnFlagUntilTimeout+60 ldr r2, [r3, #0]
0x08003b80 UART_WaitOnFlagUntilTimeout+62 tst.w r2, #4
0x08003b84 UART_WaitOnFlagUntilTimeout+66 beq.n 0x8003b52 <UART_WaitOnFlagUntilTimeout+16>
0x08003b86 UART_WaitOnFlagUntilTimeout+68 ldr r2, [r3, #28]
0x08003b88 UART_WaitOnFlagUntilTimeout+70 tst.w r2, #2048 ; 0x800
0x08003b8c UART_WaitOnFlagUntilTimeout+74 beq.n 0x8003b52 <UART_WaitOnFlagUntilTimeout+16>
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000002 r5 0x20000a60 r10 0x00000000 pc 0x08003b80 primask 0x00
r1 0x00000080 r6 0x00000000 r11 0x00000000 xPSR 0x21010000 basepri 0x00
r2 0x0000002d r7 0x00000080 r12 0xffffffff fpscr 0x00000010 faultmask 0x00
r3 0x40004400 r8 0x00000064 sp 0x2000fe58 msp 0x2000fe58 control 0x04
r4 0x00000000 r9 0x000046d0 lr 0x08003b6f psp 0x00000000
### Source ##########################################################################################################
3546 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
3547
3548 huart->gState = HAL_UART_STATE_READY;
3549 huart->RxState = HAL_UART_STATE_READY;
3550
3551 __HAL_UNLOCK(huart);
3552
3553 return HAL_TIMEOUT;
3554 }
3555
3556 if (READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U)
3557 {
3558 if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
3559 {
3560 /* Clear Receiver Timeout flag*/
3561 __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
3562
3563 /* Disable TXE, RXNE, PE and ERR (Frame error, noise error, overrun error)
3564 interrupts for the interrupt process */
3565 #if defined(USART_CR1_FIFOEN)
### Stack ###########################################################################################################
[0] from 0x08003b80 in UART_WaitOnFlagUntilTimeout+62 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:3556
[1] from 0x08003ca8 in HAL_UART_Transmit+150 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1190
[2] from 0x08003f4e in p_printf+70 at shared/util/putil.c:23
[3] from 0x08003fe8 in mc_service+96 at shared/devices/motor_controller.c:16
[4] from 0x080015a6 in main+150 at Core/Src/main.c:134
### Threads #########################################################################################################
[1] id 0 from 0x08003b80 in UART_WaitOnFlagUntilTimeout+62 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:3556
### Variables #######################################################################################################
arg huart = 0x20000a60 <huart2>: {Instance = 0x40004400,Init = {BaudRate = 115200,WordLength = 0,StopBi…, Flag = 128, Status = RESET, Tickstart = 18128, Timeout = 100
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa7a8 lma 0x80001c0
Loading section .rodata, size 0x680 lma 0x800a968
Loading section .ARM, size 0x8 lma 0x800afe8
Loading section .init_array, size 0x8 lma 0x800aff0
Loading section .fini_array, size 0x8 lma 0x800aff8
Loading section .data, size 0x9a8 lma 0x800b000
Start address 0x08003ff8, load size 47480
Transfer rate: 30 KB/sec, 5275 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]
0x08001578 in main () at Core/Src/main.c:129
129 if (b_timer_struck)
### Assembly ########################################################################################################
0x0800156a main+90 bl 0x8003e94 <HAL_UART_Receive_IT>
0x0800156e main+94 ldr r0, [pc, #68] ; (0x80015b4 <main+164>)
0x08001570 main+96 bl 0x800198c <HAL_TIM_Base_Start_IT>
0x08001574 main+100 movs r4, #0
0x08001576 main+102 ldr r3, [pc, #64] ; (0x80015b8 <main+168>)
0x08001578 main+104 ldrb r3, [r3, #0]
0x0800157a main+106 cmp r3, #0
0x0800157c main+108 beq.n 0x8001576 <main+102>
0x0800157e main+110 ldr r3, [pc, #56] ; (0x80015b8 <main+168>)
0x08001580 main+112 movs r2, #0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200009c8 r10 0x00000000 pc 0x08001578 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61010000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0xffffffff fpscr 0x00000010 faultmask 0x00
r3 0x200009c4 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x000000b8 r9 0x00000000 lr 0x08003fe9 psp 0x00000000
### Source ##########################################################################################################
119 mc_init();
120 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
121 HAL_TIM_Base_Start_IT(&htim6);
122 uint16_t motor_degrees = 0;
123 /* USER CODE END 2 */
124
125 /* Infinite loop */
126 /* USER CODE BEGIN WHILE */
127 while (1)
128 {
129 if (b_timer_struck)
130 {
131 // PDEBUG("%d\n", sys_time);
132 b_timer_struck = false;
133 motor_degrees = (motor_degrees + 1) % 360;
134 mc_service(motor_degrees, 50);
135 }
136 /* USER CODE END WHILE */
137
138 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x08001578 in main+104 at Core/Src/main.c:129
### Threads #########################################################################################################
[1] id 0 from 0x08001578 in main+104 at Core/Src/main.c:129
### Variables #######################################################################################################
loc motor_degrees = 184
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa7a8 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a968
Loading section .ARM, size 0x8 lma 0x800aff0
Loading section .init_array, size 0x8 lma 0x800aff8
Loading section .fini_array, size 0x8 lma 0x800b000
Loading section .data, size 0x9a8 lma 0x800b008
Start address 0x08003ff8, load size 47488
Transfer rate: 30 KB/sec, 5276 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]
0x0800157a in main () at Core/Src/main.c:129
129 if (b_timer_struck)
### Assembly ########################################################################################################
0x0800156e main+94 ldr r0, [pc, #68] ; (0x80015b4 <main+164>)
0x08001570 main+96 bl 0x800198c <HAL_TIM_Base_Start_IT>
0x08001574 main+100 movs r4, #0
0x08001576 main+102 ldr r3, [pc, #64] ; (0x80015b8 <main+168>)
0x08001578 main+104 ldrb r3, [r3, #0]
0x0800157a main+106 cmp r3, #0
0x0800157c main+108 beq.n 0x8001576 <main+102>
0x0800157e main+110 ldr r3, [pc, #56] ; (0x80015b8 <main+168>)
0x08001580 main+112 movs r2, #0
0x08001582 main+114 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200009c8 r10 0x00000000 pc 0x0800157a primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61070000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0xffffffff fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x0000006f r9 0x00000000 lr 0x08003fe9 psp 0x00000000
### Source ##########################################################################################################
119 mc_init();
120 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
121 HAL_TIM_Base_Start_IT(&htim6);
122 uint16_t motor_degrees = 0;
123 /* USER CODE END 2 */
124
125 /* Infinite loop */
126 /* USER CODE BEGIN WHILE */
127 while (1)
128 {
129 if (b_timer_struck)
130 {
131 // PDEBUG("%d\n", sys_time);
132 b_timer_struck = false;
133 motor_degrees = (motor_degrees + 1) % 360;
134 mc_service(motor_degrees, 50);
135 }
136 /* USER CODE END WHILE */
137
138 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x0800157a in main+106 at Core/Src/main.c:129
### Threads #########################################################################################################
[1] id 0 from 0x0800157a in main+106 at Core/Src/main.c:129
### Variables #######################################################################################################
loc motor_degrees = 111
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa7a8 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a968
Loading section .ARM, size 0x8 lma 0x800aff0
Loading section .init_array, size 0x8 lma 0x800aff8
Loading section .fini_array, size 0x8 lma 0x800b000
Loading section .data, size 0x9a8 lma 0x800b008
Start address 0x08003ff8, load size 47488
Transfer rate: 30 KB/sec, 5276 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]
0x0800157c in main () at Core/Src/main.c:129
129 if (b_timer_struck)
### Assembly ########################################################################################################
0x08001570 main+96 bl 0x800198c <HAL_TIM_Base_Start_IT>
0x08001574 main+100 movs r4, #0
0x08001576 main+102 ldr r3, [pc, #64] ; (0x80015b8 <main+168>)
0x08001578 main+104 ldrb r3, [r3, #0]
0x0800157a main+106 cmp r3, #0
0x0800157c main+108 beq.n 0x8001576 <main+102>
0x0800157e main+110 ldr r3, [pc, #56] ; (0x80015b8 <main+168>)
0x08001580 main+112 movs r2, #0
0x08001582 main+114 strb r2, [r3, #0]
0x08001584 main+116 adds r3, r4, #1
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200009c8 r10 0x00000000 pc 0x0800157c primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61030000 basepri 0x00
r2 0x006000d0 r7 0x00000000 r12 0xffffffff fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x0000001c r9 0x00000000 lr 0x08003fe9 psp 0x00000000
### Source ##########################################################################################################
119 mc_init();
120 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
121 HAL_TIM_Base_Start_IT(&htim6);
122 uint16_t motor_degrees = 0;
123 /* USER CODE END 2 */
124
125 /* Infinite loop */
126 /* USER CODE BEGIN WHILE */
127 while (1)
128 {
129 if (b_timer_struck)
130 {
131 // PDEBUG("%d\n", sys_time);
132 b_timer_struck = false;
133 motor_degrees = (motor_degrees + 1) % 360;
134 mc_service(motor_degrees, 50);
135 }
136 /* USER CODE END WHILE */
137
138 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x0800157c in main+108 at Core/Src/main.c:129
### Threads #########################################################################################################
[1] id 0 from 0x0800157c in main+108 at Core/Src/main.c:129
### Variables #######################################################################################################
loc motor_degrees = 28
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa7c0 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a980
Loading section .ARM, size 0x8 lma 0x800b008
Loading section .init_array, size 0x8 lma 0x800b010
Loading section .fini_array, size 0x8 lma 0x800b018
Loading section .data, size 0x9a8 lma 0x800b020
Start address 0x08004010, load size 47512
Transfer rate: 30 KB/sec, 5279 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]
main () at Core/Src/main.c:121
121 uint16_t motor_degrees = 0;
### Assembly ########################################################################################################
0x08001568 main+88 mov r0, r4
0x0800156a main+90 bl 0x8003e94 <UART_Start_Receive_IT+212>
0x0800156e main+94 ldr r0, [pc, #68] ; (0x80015b4 <main+164>)
0x08001570 main+96 bl 0x800198c <TIM_OC6_SetConfig+88>
0x08001574 main+100 movs r4, #0
0x08001576 main+102 ldr r3, [pc, #64] ; (0x80015b8 <main+168>)
0x08001578 main+104 ldrb r3, [r3, #0]
0x0800157a main+106 cmp r3, #0
0x0800157c main+108 beq.n 0x8001576 <main+102>
0x0800157e main+110 ldr r3, [pc, #56] ; (0x80015b8 <main+168>)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x200009c8 r10 0x00000000 pc 0x08001576 primask 0x00
r1 0x00000040 r6 0x00000000 r11 0x00000000 xPSR 0x61010000 basepri 0x00
r2 0x00600090 r7 0x00000000 r12 0xffffffff fpscr 0x00000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x0000005a r9 0x00000000 lr 0x08003ff3 psp 0x00000000
### Source ##########################################################################################################
111 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
112 setPWM(&htim2, TIM_CHANNEL_2, 50);
113 setPWM(&htim2, TIM_CHANNEL_4, 25);
114
115 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
116 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
117
118 mc_init(&htim2);
119 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
120 HAL_TIM_Base_Start_IT(&htim6);
121 uint16_t motor_degrees = 0;
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 if (b_timer_struck)
129 {
130 // PDEBUG("%d\n", sys_time);
### Stack ###########################################################################################################
[0] from 0x08001576 in main+102 at Core/Src/main.c:121
### Threads #########################################################################################################
[1] id 0 from 0x08001576 in main+102 at Core/Src/main.c:121
### Variables #######################################################################################################
loc motor_degrees = 0
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa858 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800aa18
Loading section .ARM, size 0x8 lma 0x800b0a0
Loading section .init_array, size 0x8 lma 0x800b0a8
Loading section .fini_array, size 0x8 lma 0x800b0b0
Loading section .data, size 0x9a8 lma 0x800b0b8
Start address 0x080040a8, load size 47664
Transfer rate: 30 KB/sec, 5296 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]
main () at Core/Src/main.c:128
128 if (b_timer_struck)
### Assembly ########################################################################################################
0x0800156a main+90 mov r0, r5
0x0800156c main+92 bl 0x8003e98 <HAL_UART_Receive_IT>
0x08001570 main+96 ldr r0, [pc, #68] ; (0x80015b8 <main+168>)
0x08001572 main+98 bl 0x8001990 <HAL_TIM_Base_Start_IT>
0x08001576 main+102 movs r4, #0
0x08001578 main+104 ldr r3, [pc, #64] ; (0x80015bc <main+172>)
0x0800157a main+106 ldrb r3, [r3, #0]
0x0800157c main+108 cmp r3, #0
0x0800157e main+110 beq.n 0x8001578 <main+104>
0x08001580 main+112 ldr r3, [pc, #56] ; (0x80015bc <main+172>)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000a60 r10 0x00000000 pc 0x08001578 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61010000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x20000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x00000004 r9 0x00000000 lr 0x08001f3d psp 0x00000000
### Source ##########################################################################################################
118 mc_init(&htim2);
119 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
120 HAL_TIM_Base_Start_IT(&htim6);
121 uint16_t motor_degrees = 0;
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 if (b_timer_struck)
129 {
130 // PDEBUG("%d\n", sys_time);
131 b_timer_struck = false;
132 motor_degrees = (motor_degrees + 1) % 360;
133 mc_service(motor_degrees, 50);
134 }
135 /* USER CODE END WHILE */
136
137 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x08001578 in main+104 at Core/Src/main.c:128
### Threads #########################################################################################################
[1] id 0 from 0x08001578 in main+104 at Core/Src/main.c:128
### Variables #######################################################################################################
loc motor_degrees = 4
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa858 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800aa18
Loading section .ARM, size 0x8 lma 0x800b0a0
Loading section .init_array, size 0x8 lma 0x800b0a8
Loading section .fini_array, size 0x8 lma 0x800b0b0
Loading section .data, size 0x9a8 lma 0x800b0b8
Start address 0x080040a8, load size 47664
Transfer rate: 30 KB/sec, 5296 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]
0x0800157c in main () at Core/Src/main.c:128
128 if (b_timer_struck)
### Assembly ########################################################################################################
0x08001570 main+96 ldr r0, [pc, #68] ; (0x80015b8 <main+168>)
0x08001572 main+98 bl 0x8001990 <HAL_TIM_Base_Start_IT>
0x08001576 main+102 movs r4, #0
0x08001578 main+104 ldr r3, [pc, #64] ; (0x80015bc <main+172>)
0x0800157a main+106 ldrb r3, [r3, #0]
0x0800157c main+108 cmp r3, #0
0x0800157e main+110 beq.n 0x8001578 <main+104>
0x08001580 main+112 ldr r3, [pc, #56] ; (0x80015bc <main+172>)
0x08001582 main+114 movs r2, #0
0x08001584 main+116 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000a60 r10 0x00000000 pc 0x0800157c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61030000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x20000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x00000097 r9 0x00000000 lr 0x08001f3d psp 0x00000000
### Source ##########################################################################################################
118 mc_init(&htim2);
119 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
120 HAL_TIM_Base_Start_IT(&htim6);
121 uint16_t motor_degrees = 0;
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 if (b_timer_struck)
129 {
130 // PDEBUG("%d\n", sys_time);
131 b_timer_struck = false;
132 motor_degrees = (motor_degrees + 1) % 360;
133 mc_service(motor_degrees, 50);
134 }
135 /* USER CODE END WHILE */
136
137 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x0800157c in main+108 at Core/Src/main.c:128
### Threads #########################################################################################################
[1] id 0 from 0x0800157c in main+108 at Core/Src/main.c:128
### Variables #######################################################################################################
loc motor_degrees = 151
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa780 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a940
Loading section .ARM, size 0x8 lma 0x800afc8
Loading section .init_array, size 0x8 lma 0x800afd0
Loading section .fini_array, size 0x8 lma 0x800afd8
Loading section .data, size 0x9a8 lma 0x800afe0
Start address 0x08004060, load size 47448
Transfer rate: 30 KB/sec, 5272 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]
0x0800157a in main () at Core/Src/main.c:128
128 if (b_timer_struck)
### Assembly ########################################################################################################
0x0800156c main+92 bl 0x8003e98 <HAL_UART_Receive_IT>
0x08001570 main+96 ldr r0, [pc, #68] ; (0x80015b8 <main+168>)
0x08001572 main+98 bl 0x8001990 <HAL_TIM_Base_Start_IT>
0x08001576 main+102 movs r4, #0
0x08001578 main+104 ldr r3, [pc, #64] ; (0x80015bc <main+172>)
0x0800157a main+106 ldrb r3, [r3, #0]
0x0800157c main+108 cmp r3, #0
0x0800157e main+110 beq.n 0x8001578 <main+104>
0x08001580 main+112 ldr r3, [pc, #56] ; (0x80015bc <main+172>)
0x08001582 main+114 movs r2, #0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000a60 r10 0x00000000 pc 0x0800157a primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61070000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x80000010 faultmask 0x00
r3 0x200009c4 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x000000f3 r9 0x00000000 lr 0x08001f3d psp 0x00000000
### Source ##########################################################################################################
118 mc_init(&htim2);
119 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
120 HAL_TIM_Base_Start_IT(&htim6);
121 uint16_t motor_degrees = 0;
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 if (b_timer_struck)
129 {
130 // PDEBUG("%d\n", sys_time);
131 b_timer_struck = false;
132 motor_degrees = (motor_degrees + 1) % 360;
133 mc_service(motor_degrees, 50);
134 }
135 /* USER CODE END WHILE */
136
137 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x0800157a in main+106 at Core/Src/main.c:128
### Threads #########################################################################################################
[1] id 0 from 0x0800157a in main+106 at Core/Src/main.c:128
### Variables #######################################################################################################
loc motor_degrees = 243
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa780 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a940
Loading section .ARM, size 0x8 lma 0x800afc8
Loading section .init_array, size 0x8 lma 0x800afd0
Loading section .fini_array, size 0x8 lma 0x800afd8
Loading section .data, size 0x9a8 lma 0x800afe0
Start address 0x08004060, load size 47448
Transfer rate: 30 KB/sec, 5272 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]
main () at Core/Src/main.c:128
128 if (b_timer_struck)
### Assembly ########################################################################################################
0x0800156a main+90 mov r0, r5
0x0800156c main+92 bl 0x8003e98 <HAL_UART_Receive_IT>
0x08001570 main+96 ldr r0, [pc, #68] ; (0x80015b8 <main+168>)
0x08001572 main+98 bl 0x8001990 <HAL_TIM_Base_Start_IT>
0x08001576 main+102 movs r4, #0
0x08001578 main+104 ldr r3, [pc, #64] ; (0x80015bc <main+172>)
0x0800157a main+106 ldrb r3, [r3, #0]
0x0800157c main+108 cmp r3, #0
0x0800157e main+110 beq.n 0x8001578 <main+104>
0x08001580 main+112 ldr r3, [pc, #56] ; (0x80015bc <main+172>)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000a60 r10 0x00000000 pc 0x08001578 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61070000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x80000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x00000073 r9 0x00000000 lr 0x08001f3d psp 0x00000000
### Source ##########################################################################################################
118 mc_init(&htim2);
119 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
120 HAL_TIM_Base_Start_IT(&htim6);
121 uint16_t motor_degrees = 0;
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 if (b_timer_struck)
129 {
130 // PDEBUG("%d\n", sys_time);
131 b_timer_struck = false;
132 motor_degrees = (motor_degrees + 1) % 360;
133 mc_service(motor_degrees, 50);
134 }
135 /* USER CODE END WHILE */
136
137 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x08001578 in main+104 at Core/Src/main.c:128
### Threads #########################################################################################################
[1] id 0 from 0x08001578 in main+104 at Core/Src/main.c:128
### Variables #######################################################################################################
loc motor_degrees = 115
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa780 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a940
Loading section .ARM, size 0x8 lma 0x800afc8
Loading section .init_array, size 0x8 lma 0x800afd0
Loading section .fini_array, size 0x8 lma 0x800afd8
Loading section .data, size 0x9a8 lma 0x800afe0
Start address 0x08004060, load size 47448
Transfer rate: 30 KB/sec, 5272 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]
0x0800157c in main () at Core/Src/main.c:128
128 if (b_timer_struck)
### Assembly ########################################################################################################
0x08001570 main+96 ldr r0, [pc, #68] ; (0x80015b8 <main+168>)
0x08001572 main+98 bl 0x8001990 <HAL_TIM_Base_Start_IT>
0x08001576 main+102 movs r4, #0
0x08001578 main+104 ldr r3, [pc, #64] ; (0x80015bc <main+172>)
0x0800157a main+106 ldrb r3, [r3, #0]
0x0800157c main+108 cmp r3, #0
0x0800157e main+110 beq.n 0x8001578 <main+104>
0x08001580 main+112 ldr r3, [pc, #56] ; (0x80015bc <main+172>)
0x08001582 main+114 movs r2, #0
0x08001584 main+116 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000a60 r10 0x00000000 pc 0x0800157c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61010000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x20000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x00000023 r9 0x00000000 lr 0x08001f3d psp 0x00000000
### Source ##########################################################################################################
118 mc_init(&htim2);
119 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
120 HAL_TIM_Base_Start_IT(&htim6);
121 uint16_t motor_degrees = 0;
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 if (b_timer_struck)
129 {
130 // PDEBUG("%d\n", sys_time);
131 b_timer_struck = false;
132 motor_degrees = (motor_degrees + 1) % 360;
133 mc_service(motor_degrees, 50);
134 }
135 /* USER CODE END WHILE */
136
137 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x0800157c in main+108 at Core/Src/main.c:128
### Threads #########################################################################################################
[1] id 0 from 0x0800157c in main+108 at Core/Src/main.c:128
### Variables #######################################################################################################
loc motor_degrees = 35
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa780 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a940
Loading section .ARM, size 0x8 lma 0x800afc8
Loading section .init_array, size 0x8 lma 0x800afd0
Loading section .fini_array, size 0x8 lma 0x800afd8
Loading section .data, size 0x9a8 lma 0x800afe0
Start address 0x08004060, load size 47448
Transfer rate: 30 KB/sec, 5272 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]
0x0800157c in main () at Core/Src/main.c:128
128 if (b_timer_struck)
### Assembly ########################################################################################################
0x08001570 main+96 ldr r0, [pc, #68] ; (0x80015b8 <main+168>)
0x08001572 main+98 bl 0x8001990 <HAL_TIM_Base_Start_IT>
0x08001576 main+102 movs r4, #0
0x08001578 main+104 ldr r3, [pc, #64] ; (0x80015bc <main+172>)
0x0800157a main+106 ldrb r3, [r3, #0]
0x0800157c main+108 cmp r3, #0
0x0800157e main+110 beq.n 0x8001578 <main+104>
0x08001580 main+112 ldr r3, [pc, #56] ; (0x80015bc <main+172>)
0x08001582 main+114 movs r2, #0
0x08001584 main+116 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000a60 r10 0x00000000 pc 0x0800157c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61070000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x80000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x00000089 r9 0x00000000 lr 0x08001f3d psp 0x00000000
### Source ##########################################################################################################
118 mc_init(&htim2);
119 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
120 HAL_TIM_Base_Start_IT(&htim6);
121 uint16_t motor_degrees = 0;
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 if (b_timer_struck)
129 {
130 // PDEBUG("%d\n", sys_time);
131 b_timer_struck = false;
132 motor_degrees = (motor_degrees + 1) % 360;
133 mc_service(motor_degrees, 50);
134 }
135 /* USER CODE END WHILE */
136
137 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x0800157c in main+108 at Core/Src/main.c:128
### Threads #########################################################################################################
[1] id 0 from 0x0800157c in main+108 at Core/Src/main.c:128
### Variables #######################################################################################################
loc motor_degrees = 137
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa780 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a940
Loading section .ARM, size 0x8 lma 0x800afc8
Loading section .init_array, size 0x8 lma 0x800afd0
Loading section .fini_array, size 0x8 lma 0x800afd8
Loading section .data, size 0x9a8 lma 0x800afe0
Start address 0x08004060, load size 47448
Transfer rate: 30 KB/sec, 5272 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]
0x0800157c in main () at Core/Src/main.c:128
128 if (b_timer_struck)
### Assembly ########################################################################################################
0x08001570 main+96 ldr r0, [pc, #68] ; (0x80015b8 <main+168>)
0x08001572 main+98 bl 0x8001990 <HAL_TIM_Base_Start_IT>
0x08001576 main+102 movs r4, #0
0x08001578 main+104 ldr r3, [pc, #64] ; (0x80015bc <main+172>)
0x0800157a main+106 ldrb r3, [r3, #0]
0x0800157c main+108 cmp r3, #0
0x0800157e main+110 beq.n 0x8001578 <main+104>
0x08001580 main+112 ldr r3, [pc, #56] ; (0x80015bc <main+172>)
0x08001582 main+114 movs r2, #0
0x08001584 main+116 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000a60 r10 0x00000000 pc 0x0800157c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61010000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x20000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x00000043 r9 0x00000000 lr 0x08001f3d psp 0x00000000
### Source ##########################################################################################################
118 mc_init(&htim2);
119 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
120 HAL_TIM_Base_Start_IT(&htim6);
121 uint16_t motor_degrees = 0;
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 if (b_timer_struck)
129 {
130 // PDEBUG("%d\n", sys_time);
131 b_timer_struck = false;
132 motor_degrees = (motor_degrees + 1) % 360;
133 mc_service(motor_degrees, 50);
134 }
135 /* USER CODE END WHILE */
136
137 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x0800157c in main+108 at Core/Src/main.c:128
### Threads #########################################################################################################
[1] id 0 from 0x0800157c in main+108 at Core/Src/main.c:128
### Variables #######################################################################################################
loc motor_degrees = 67
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa780 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a940
Loading section .ARM, size 0x8 lma 0x800afc8
Loading section .init_array, size 0x8 lma 0x800afd0
Loading section .fini_array, size 0x8 lma 0x800afd8
Loading section .data, size 0x9a8 lma 0x800afe0
Start address 0x08004060, load size 47448
Transfer rate: 30 KB/sec, 5272 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]
0x0800157c in main () at Core/Src/main.c:128
128 if (b_timer_struck)
### Assembly ########################################################################################################
0x08001570 main+96 ldr r0, [pc, #68] ; (0x80015b8 <main+168>)
0x08001572 main+98 bl 0x8001990 <HAL_TIM_Base_Start_IT>
0x08001576 main+102 movs r4, #0
0x08001578 main+104 ldr r3, [pc, #64] ; (0x80015bc <main+172>)
0x0800157a main+106 ldrb r3, [r3, #0]
0x0800157c main+108 cmp r3, #0
0x0800157e main+110 beq.n 0x8001578 <main+104>
0x08001580 main+112 ldr r3, [pc, #56] ; (0x80015bc <main+172>)
0x08001582 main+114 movs r2, #0
0x08001584 main+116 strb r2, [r3, #0]
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000a60 r10 0x00000000 pc 0x0800157c primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61070000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x80000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x0000008b r9 0x00000000 lr 0x08001f3d psp 0x00000000
### Source ##########################################################################################################
118 mc_init(&htim2);
119 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
120 HAL_TIM_Base_Start_IT(&htim6);
121 uint16_t motor_degrees = 0;
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 if (b_timer_struck)
129 {
130 // PDEBUG("%d\n", sys_time);
131 b_timer_struck = false;
132 motor_degrees = (motor_degrees + 1) % 360;
133 mc_service(motor_degrees, 50);
134 }
135 /* USER CODE END WHILE */
136
137 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x0800157c in main+108 at Core/Src/main.c:128
### Threads #########################################################################################################
[1] id 0 from 0x0800157c in main+108 at Core/Src/main.c:128
### Variables #######################################################################################################
loc motor_degrees = 139
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa780 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a940
Loading section .ARM, size 0x8 lma 0x800afc8
Loading section .init_array, size 0x8 lma 0x800afd0
Loading section .fini_array, size 0x8 lma 0x800afd8
Loading section .data, size 0x9a8 lma 0x800afe0
Start address 0x08004060, load size 47448
Transfer rate: 30 KB/sec, 5272 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]
0x0800157a in main () at Core/Src/main.c:128
128 if (b_timer_struck)
### Assembly ########################################################################################################
0x0800156c main+92 bl 0x8003e98 <HAL_UART_Receive_IT>
0x08001570 main+96 ldr r0, [pc, #68] ; (0x80015b8 <main+168>)
0x08001572 main+98 bl 0x8001990 <HAL_TIM_Base_Start_IT>
0x08001576 main+102 movs r4, #0
0x08001578 main+104 ldr r3, [pc, #64] ; (0x80015bc <main+172>)
0x0800157a main+106 ldrb r3, [r3, #0]
0x0800157c main+108 cmp r3, #0
0x0800157e main+110 beq.n 0x8001578 <main+104>
0x08001580 main+112 ldr r3, [pc, #56] ; (0x80015bc <main+172>)
0x08001582 main+114 movs r2, #0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000a60 r10 0x00000000 pc 0x0800157a primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61010000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x20000010 faultmask 0x00
r3 0x200009c4 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x00000021 r9 0x00000000 lr 0x08001f3d psp 0x00000000
### Source ##########################################################################################################
118 mc_init(&htim2);
119 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
120 HAL_TIM_Base_Start_IT(&htim6);
121 uint16_t motor_degrees = 0;
122 /* USER CODE END 2 */
123
124 /* Infinite loop */
125 /* USER CODE BEGIN WHILE */
126 while (1)
127 {
128 if (b_timer_struck)
129 {
130 // PDEBUG("%d\n", sys_time);
131 b_timer_struck = false;
132 motor_degrees = (motor_degrees + 1) % 360;
133 mc_service(motor_degrees, 50);
134 }
135 /* USER CODE END WHILE */
136
137 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x0800157a in main+106 at Core/Src/main.c:128
### Threads #########################################################################################################
[1] id 0 from 0x0800157a in main+106 at Core/Src/main.c:128
### Variables #######################################################################################################
loc motor_degrees = 33
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa780 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800a940
Loading section .ARM, size 0x8 lma 0x800afc8
Loading section .init_array, size 0x8 lma 0x800afd0
Loading section .fini_array, size 0x8 lma 0x800afd8
Loading section .data, size 0x9a8 lma 0x800afe0
Start address 0x08004060, load size 47448
Transfer rate: 30 KB/sec, 5272 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]
0x08001578 in main () at Core/Src/main.c:110
110 p_uart_init(&huart2);
### Assembly ###############################################################################################################################################################################################################################
0x0800156a main+18 mov r0, r5
0x0800156c main+20 bl 0x8003e98 <HAL_UART_Init+90>
0x08001570 main+24 ldr r0, [pc, #68] ; (0x80015b8 <main+96>)
0x08001572 main+26 bl 0x8001990 <TIM_OC4_SetConfig+48>
0x08001576 main+30 movs r4, #0
0x08001578 main+32 ldr r3, [pc, #64] ; (0x80015bc <main+100>)
0x0800157a main+34 ldrb r3, [r3, #0]
0x0800157c main+36 cmp r3, #0
0x0800157e main+38 beq.n 0x8001578 <main+32>
0x08001580 main+40 ldr r3, [pc, #56] ; (0x80015bc <main+100>)
### Breakpoints ############################################################################################################################################################################################################################
### Expressions ############################################################################################################################################################################################################################
### History ################################################################################################################################################################################################################################
### Memory #################################################################################################################################################################################################################################
### Registers ##############################################################################################################################################################################################################################
r0 0x00000000 r3 0x00000000 r6 0x00000000 r9 0x00000000 r12 0x00001000 pc 0x08001578 msp 0x2000fff0 basepri 0x00
r1 0x00000000 r4 0x0000012b r7 0x00000000 r10 0x00000000 sp 0x2000fff0 xPSR 0x61010000 psp 0x00000000 faultmask 0x00
r2 0x00000001 r5 0x20000a60 r8 0x00000000 r11 0x00000000 lr 0x08001f3d fpscr 0x20000010 primask 0x00 control 0x04
### Source #################################################################################################################################################################################################################################
100
101 /* USER CODE END SysInit */
102
103 /* Initialize all configured peripherals */
104 MX_GPIO_Init();
105 MX_TIM2_Init();
106 MX_USART2_UART_Init();
107 MX_TIM6_Init();
108 MX_USART1_UART_Init();
109 /* USER CODE BEGIN 2 */
110 p_uart_init(&huart2);
111
112 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
113 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
114 setPWM(&htim2, TIM_CHANNEL_2, 50);
115 setPWM(&htim2, TIM_CHANNEL_4, 25);
116
117 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
118 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
119
### Stack ##################################################################################################################################################################################################################################
[0] from 0x08001578 in main+32 at Core/Src/main.c:110
### Threads ################################################################################################################################################################################################################################
[1] id 0 from 0x08001578 in main+32 at Core/Src/main.c:110
### Variables ##############################################################################################################################################################################################################################
loc motor_degrees = <optimized out>
############################################################################################################################################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8e8 lma 0x80001c0
Loading section .rodata, size 0x688 lma 0x800aaa8
Loading section .ARM, size 0x8 lma 0x800b130
Loading section .init_array, size 0x8 lma 0x800b138
Loading section .fini_array, size 0x8 lma 0x800b140
Loading section .data, size 0x9a8 lma 0x800b148
Start address 0x080041c8, load size 47808
Transfer rate: 30 KB/sec, 5312 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]
main () at Core/Src/main.c:132
132 if (b_timer_struck)
### Assembly ########################################################################################################
0x080015c2 main+106 movs r2, #1
0x080015c4 main+108 ldr r1, [pc, #72] ; (0x8001610 <main+184>)
0x080015c6 main+110 ldr r0, [pc, #76] ; (0x8001614 <main+188>)
0x080015c8 main+112 bl 0x8003f78 <HAL_UART_Receive_IT>
0x080015cc main+116 movs r4, #0
0x080015ce main+118 ldr r3, [pc, #72] ; (0x8001618 <main+192>)
0x080015d0 main+120 ldrb r3, [r3, #0]
0x080015d2 main+122 cmp r3, #0
0x080015d4 main+124 beq.n 0x80015ce <main+118>
0x080015d6 main+126 ldr r3, [pc, #64] ; (0x8001618 <main+192>)
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000ae8 r10 0x00000000 pc 0x080015ce primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61010000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x20000010 faultmask 0x00
r3 0x00000000 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x0000015a r9 0x00000000 lr 0x0800201d psp 0x00000000
### Source ##########################################################################################################
122 HAL_TIM_Base_Start_IT(&htim6);
123
124 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
125 uint16_t motor_degrees = 0;
126 /* USER CODE END 2 */
127
128 /* Infinite loop */
129 /* USER CODE BEGIN WHILE */
130 while (1)
131 {
132 if (b_timer_struck)
133 {
134 // PDEBUG("%d\n", sys_time);
135 b_timer_struck = false;
136 motor_degrees = (motor_degrees + 1) % 360;
137 mc_service(motor_degrees, 50);
138 }
139 /* USER CODE END WHILE */
140
141 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x080015ce in main+118 at Core/Src/main.c:132
### Threads #########################################################################################################
[1] id 0 from 0x080015ce in main+118 at Core/Src/main.c:132
### Variables #######################################################################################################
loc motor_degrees = 346
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8c0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa80
Loading section .ARM, size 0x8 lma 0x800b0c8
Loading section .init_array, size 0x8 lma 0x800b0d0
Loading section .fini_array, size 0x8 lma 0x800b0d8
Loading section .data, size 0x9a8 lma 0x800b0e0
Start address 0x080041a0, load size 47704
Transfer rate: 30 KB/sec, 5300 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]
0x080015d0 in main () at Core/Src/main.c:132
132 if (b_timer_struck)
### Assembly ########################################################################################################
0x080015c4 main+108 ldr r1, [pc, #72] ; (0x8001610 <main+184>)
0x080015c6 main+110 ldr r0, [pc, #76] ; (0x8001614 <main+188>)
0x080015c8 main+112 bl 0x8003f78 <HAL_UART_Receive_IT>
0x080015cc main+116 movs r4, #0
0x080015ce main+118 ldr r3, [pc, #72] ; (0x8001618 <main+192>)
0x080015d0 main+120 ldrb r3, [r3, #0]
0x080015d2 main+122 cmp r3, #0
0x080015d4 main+124 beq.n 0x80015ce <main+118>
0x080015d6 main+126 ldr r3, [pc, #64] ; (0x8001618 <main+192>)
0x080015d8 main+128 movs r2, #0
### Breakpoints #####################################################################################################
### Expressions #####################################################################################################
### History #########################################################################################################
### Memory ##########################################################################################################
### Registers #######################################################################################################
r0 0x00000000 r5 0x20000ae8 r10 0x00000000 pc 0x080015d0 primask 0x00
r1 0x00000000 r6 0x00000000 r11 0x00000000 xPSR 0x61000000 basepri 0x00
r2 0x00000001 r7 0x00000000 r12 0x00001000 fpscr 0x80000010 faultmask 0x00
r3 0x200009c4 r8 0x00000000 sp 0x2000fff0 msp 0x2000fff0 control 0x04
r4 0x00000068 r9 0x00000000 lr 0x0800201d psp 0x00000000
### Source ##########################################################################################################
122 HAL_TIM_Base_Start_IT(&htim6);
123
124 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
125 uint16_t motor_degrees = 0;
126 /* USER CODE END 2 */
127
128 /* Infinite loop */
129 /* USER CODE BEGIN WHILE */
130 while (1)
131 {
132 if (b_timer_struck)
133 {
134 // PDEBUG("%d\n", sys_time);
135 b_timer_struck = false;
136 motor_degrees = (motor_degrees + 1) % 360;
137 mc_service(motor_degrees, 50);
138 }
139 /* USER CODE END WHILE */
140
141 /* USER CODE BEGIN 3 */
### Stack ###########################################################################################################
[0] from 0x080015d0 in main+120 at Core/Src/main.c:132
### Threads #########################################################################################################
[1] id 0 from 0x080015d0 in main+120 at Core/Src/main.c:132
### Variables #######################################################################################################
loc motor_degrees = 104
#####################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8c0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa80
Loading section .ARM, size 0x8 lma 0x800b0c8
Loading section .init_array, size 0x8 lma 0x800b0d0
Loading section .fini_array, size 0x8 lma 0x800b0d8
Loading section .data, size 0x9a8 lma 0x800b0e0
Start address 0x080041a0, load size 47704
Transfer rate: 30 KB/sec, 5300 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]
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x080015d2 in ?? ()
### Assembly ##################################################################
0x080015d2 ? cmp r3, #0
0x080015d4 ? beq.n 0x80015ce
0x080015d6 ? ldr r3, [pc, #64] ; (0x8001618)
0x080015d8 ? movs r2, #0
0x080015da ? strb r2, [r3, #0]
0x080015dc ? adds r3, r4, #1
0x080015de ? ldr r1, [pc, #60] ; (0x800161c)
0x080015e0 ? smull r2, r1, r1, r3
0x080015e4 ? add r1, r3
0x080015e6 ? asrs r2, r3, #31
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x0000000f r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800201d faultmask 0x00
r7 0x00000000 pc 0x080015d2 control 0x04
### Source ####################################################################
### Stack #####################################################################
[0] from 0x080015d2
[1] from 0x0800201c
### Threads ###################################################################
[1] id 0 from 0x080015d2
### Variables #################################################################
###############################################################################
generic_push.gdb:7: Error in sourced command file:
No executable file specified.
Use the "file" or "exec-file" command.
Detaching from program: , Remote target
[Inferior 1 (Remote target) detached]
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x080015d2 in ?? ()
### Assembly ##################################################################
0x080015d2 ? cmp r3, #0
0x080015d4 ? beq.n 0x80015ce
0x080015d6 ? ldr r3, [pc, #64] ; (0x8001618)
0x080015d8 ? movs r2, #0
0x080015da ? strb r2, [r3, #0]
0x080015dc ? adds r3, r4, #1
0x080015de ? ldr r1, [pc, #60] ; (0x800161c)
0x080015e0 ? smull r2, r1, r1, r3
0x080015e4 ? add r1, r3
0x080015e6 ? asrs r2, r3, #31
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x0000000f r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800201d faultmask 0x00
r7 0x00000000 pc 0x080015d2 control 0x04
### Source ####################################################################
### Stack #####################################################################
[0] from 0x080015d2
[1] from 0x0800201c
### Threads ###################################################################
[1] id 0 from 0x080015d2
### Variables #################################################################
###############################################################################
generic_push.gdb:7: Error in sourced command file:
No executable file specified.
Use the "file" or "exec-file" command.
Detaching from program: , Remote target
[Inferior 1 (Remote target) detached]
0x080015d2 in main () at Core/Src/main.c:125
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
### Assembly ##################################################################
0x080015c6 main+110 ldr r0, [pc, #76] ; (0x8001614 <main+188>)
0x080015c8 main+112 bl 0x8003f78 <UART_Start_Receive_IT+200>
0x080015cc main+116 movs r4, #0
0x080015ce main+118 ldr r3, [pc, #72] ; (0x8001618 <main+192>)
0x080015d0 main+120 ldrb r3, [r3, #0]
0x080015d2 main+122 cmp r3, #0
0x080015d4 main+124 beq.n 0x80015ce <main+118>
0x080015d6 main+126 ldr r3, [pc, #64] ; (0x8001618 <main+192>)
0x080015d8 main+128 movs r2, #0
0x080015da main+130 strb r2, [r3, #0]
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x0000000f r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800201d faultmask 0x00
r7 0x00000000 pc 0x080015d2 control 0x04
### Source ####################################################################
115 setPWM(&htim2, TIM_CHANNEL_4, 25);
116
117 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
118 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
119
120 mc_init(&htim2);
121 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
122 HAL_TIM_Base_Start_IT(&htim6);
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 0);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
### Stack #####################################################################
[0] from 0x080015d2 in main+122 at Core/Src/main.c:125
### Threads ###################################################################
[1] id 0 from 0x080015d2 in main+122 at Core/Src/main.c:125
### Variables #################################################################
loc motor_degrees = <optimized out>
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
0x080015de in main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015d2 main+122 bl 0x8003f88 <HAL_UART_Receive_IT>
0x080015d6 main+126 movs r4, #0
0x080015d8 main+128 ldr r3, [pc, #76] ; (0x8001628 <main+208>)
0x080015da main+130 ldrb r3, [r3, #0]
0x080015dc main+132 cmp r3, #0
0x080015de main+134 beq.n 0x80015d8 <main+128>
0x080015e0 main+136 ldr r3, [pc, #68] ; (0x8001628 <main+208>)
0x080015e2 main+138 movs r2, #0
0x080015e4 main+140 strb r2, [r3, #0]
0x080015e6 main+142 adds r3, r4, #1
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x0000001c r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015de control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 0);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015de in main+134 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015de in main+134 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 28
###############################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080041b0 msp: 0x20010000
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 bytes/write.
Breakpoint 1 at 0x800127e: file Core/Src/main.c, line 392.
Note: automatically using hardware breakpoints for read-only addresses.
Starting program: /storage/Shared/Projects/Penguinator/motor_controller/build/motor_controller.elf
### Output/messages ###########################################################
Breakpoint 1, HAL_UART_RxCpltCallback (huart=0x20000a60 <huart1>) at Core/Src/main.c:392
392 if (huart == &huart1)
### Assembly ##################################################################
~
~
~
~
0x0800127c HAL_UART_RxCpltCallback+0 push {r3, r4, r5, lr}
!0x0800127e HAL_UART_RxCpltCallback+2 ldr r3, [pc, #68] ; (0x80012c4 <HAL_UART_RxCpltCallback+72>)
0x08001280 HAL_UART_RxCpltCallback+4 cmp r0, r3
0x08001282 HAL_UART_RxCpltCallback+6 beq.n 0x800128c <HAL_UART_RxCpltCallback+16>
0x08001284 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012c8 <HAL_UART_RxCpltCallback+76>)
0x08001286 HAL_UART_RxCpltCallback+10 cmp r0, r3
### Breakpoints ###############################################################
[1] break at 0x0800127e in Core/Src/main.c:392 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 1 time
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x20000a60 r8 0x00000000 xPSR 0x81000035
r1 0x00000000 r9 0x00000000 fpscr 0x00000010
r2 0x40013808 r10 0x00000000 msp 0x2000ff48
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x20000a60 r12 0x00001000 primask 0x00
r5 0x00004001 sp 0x2000ff48 basepri 0x00
r6 0x00000000 lr 0x0800385b faultmask 0x00
r7 0x00000000 pc 0x0800127e control 0x00
### Source ####################################################################
382 GPIO_InitStruct.Pin = m1_dir_Pin | m2_dir_Pin;
383 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
384 GPIO_InitStruct.Pull = GPIO_NOPULL;
385 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
386 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
387 }
388
389 /* USER CODE BEGIN 4 */
390 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
391 {
!392 if (huart == &huart1)
393 {
394 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
395 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
396 }
397 else if (huart == &huart2)
398 {
399 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
401 }
### Stack #####################################################################
[0] from 0x0800127e in HAL_UART_RxCpltCallback+2 at Core/Src/main.c:392
[1] from 0x0800385a in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x08003534 in HAL_UART_IRQHandler+108 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2347
[3] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x08003f48 in UART_Start_Receive_IT+152 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:3685
[6] from 0x08003fcc in HAL_UART_Receive_IT+68 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1440
[7] from 0x080015d6 in main+126 at Core/Src/main.c:125
### Threads ###################################################################
[1] id 0 from 0x0800127e in HAL_UART_RxCpltCallback+2 at Core/Src/main.c:392
### Variables #################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
###############################################################################
### Output/messages #####################################################################################################################
halted: PC: 0x08001280
halted: PC: 0x08001282
halted: PC: 0x0800128c
394 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
### Assembly ############################################################################################################################
0x08001282 HAL_UART_RxCpltCallback+6 beq.n 0x800128c <HAL_UART_RxCpltCallback+16>
0x08001284 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012c8 <HAL_UART_RxCpltCallback+76>)
0x08001286 HAL_UART_RxCpltCallback+10 cmp r0, r3
0x08001288 HAL_UART_RxCpltCallback+12 beq.n 0x80012a6 <HAL_UART_RxCpltCallback+42>
0x0800128a HAL_UART_RxCpltCallback+14 pop {r3, r4, r5, pc}
0x0800128c HAL_UART_RxCpltCallback+16 ldr r4, [pc, #60] ; (0x80012cc <HAL_UART_RxCpltCallback+80>)
0x0800128e HAL_UART_RxCpltCallback+18 movs r3, #100 ; 0x64
0x08001290 HAL_UART_RxCpltCallback+20 movs r2, #1
0x08001292 HAL_UART_RxCpltCallback+22 mov r1, r4
0x08001294 HAL_UART_RxCpltCallback+24 ldr r0, [pc, #48] ; (0x80012c8 <HAL_UART_RxCpltCallback+76>)
### Breakpoints #########################################################################################################################
[1] break at 0x0800127e in Core/Src/main.c:392 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 1 time
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000a60 r4 0x20000a60 r8 0x00000000 r12 0x00001000 xPSR 0x61000035 primask 0x00
r1 0x00000000 r5 0x00004001 r9 0x00000000 sp 0x2000ff48 fpscr 0x00000010 basepri 0x00
r2 0x40013808 r6 0x00000000 r10 0x00000000 lr 0x0800385b msp 0x2000ff48 faultmask 0x00
r3 0x20000a60 r7 0x00000000 r11 0x00000000 pc 0x0800128c psp 0x00000000 control 0x00
### Source ##############################################################################################################################
384 GPIO_InitStruct.Pull = GPIO_NOPULL;
385 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
386 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
387 }
388
389 /* USER CODE BEGIN 4 */
390 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
391 {
!392 if (huart == &huart1)
393 {
394 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
395 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
396 }
397 else if (huart == &huart2)
398 {
399 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
401 }
402 }
403
### Stack ###############################################################################################################################
[0] from 0x0800128c in HAL_UART_RxCpltCallback+16 at Core/Src/main.c:394
[1] from 0x0800385a in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x08003534 in HAL_UART_IRQHandler+108 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2347
[3] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x08003f48 in UART_Start_Receive_IT+152 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:3685
[6] from 0x08003fcc in HAL_UART_Receive_IT+68 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1440
[7] from 0x080015d6 in main+126 at Core/Src/main.c:125
### Threads #############################################################################################################################
[1] id 0 from 0x0800128c in HAL_UART_RxCpltCallback+16 at Core/Src/main.c:394
### Variables ###########################################################################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
#########################################################################################################################################
### Output/messages #####################################################################################################################
halted: PC: 0x0800128e
halted: PC: 0x08001290
halted: PC: 0x08001292
halted: PC: 0x08001294
halted: PC: 0x08001296
halted: PC: 0x08003d06
HAL_UART_Transmit (huart=huart@entry=0x20000ae8 <huart2>, pData=pData@entry=0x20000ae4 <huart1_rxc> "", Size=Size@entry=1, Timeout=Timeout@entry=100) at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1150
1150 {
### Assembly ############################################################################################################################
~
~
~
~
~
0x08003d06 HAL_UART_Transmit+0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
0x08003d0a HAL_UART_Transmit+4 sub sp, #8
0x08003d0c HAL_UART_Transmit+6 mov r6, r3
0x08003d0e HAL_UART_Transmit+8 ldr r3, [r0, #120] ; 0x78
0x08003d10 HAL_UART_Transmit+10 cmp r3, #32
### Breakpoints #########################################################################################################################
[1] break at 0x0800127e in Core/Src/main.c:392 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 1 time
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000ae8 r4 0x20000ae4 r8 0x00000000 r12 0x00001000 xPSR 0x21000035 primask 0x00
r1 0x20000ae4 r5 0x00004001 r9 0x00000000 sp 0x2000ff48 fpscr 0x00000010 basepri 0x00
r2 0x00000001 r6 0x00000000 r10 0x00000000 lr 0x0800129b msp 0x2000ff48 faultmask 0x00
r3 0x00000064 r7 0x00000000 r11 0x00000000 pc 0x08003d06 psp 0x00000000 control 0x00
### Source ##############################################################################################################################
1140 * data to the TXFIFO. Write operations to the TDR register are performed
1141 * when TXFNF flag is set. From hardware perspective, TXFNF flag and
1142 * TXE are mapped on the same bit-field.
1143 * @param huart UART handle.
1144 * @param pData Pointer to data buffer (u8 or u16 data elements).
1145 * @param Size Amount of data elements (u8 or u16) to be sent.
1146 * @param Timeout Timeout duration.
1147 * @retval HAL status
1148 */
1149 HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
1150 {
1151 const uint8_t *pdata8bits;
1152 const uint16_t *pdata16bits;
1153 uint32_t tickstart;
1154
1155 /* Check that a Tx process is not already ongoing */
1156 if (huart->gState == HAL_UART_STATE_READY)
1157 {
1158 if ((pData == NULL) || (Size == 0U))
1159 {
### Stack ###############################################################################################################################
[0] from 0x08003d06 in HAL_UART_Transmit+0 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1150
[1] from 0x0800129a in HAL_UART_RxCpltCallback+30 at Core/Src/main.c:394
[2] from 0x0800385a in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[3] from 0x08003534 in HAL_UART_IRQHandler+108 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2347
[4] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[5] from 0xffffffe9
[6] from 0x08003f48 in UART_Start_Receive_IT+152 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:3685
[7] from 0x08003fcc in HAL_UART_Receive_IT+68 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1440
[8] from 0x080015d6 in main+126 at Core/Src/main.c:125
### Threads #############################################################################################################################
[1] id 0 from 0x08003d06 in HAL_UART_Transmit+0 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1150
### Variables ###########################################################################################################################
arg huart = 0x20000ae8 <huart2>: {Instance = 0x40004400,Init = {BaudRate = 115200,WordLength = 0,StopBi…, pData = 0x20000ae4 <huart1_rxc> "": 0 '\000', Size = 1, Timeout = 100
loc pdata8bits = <optimized out>, pdata16bits = <optimized out>, tickstart = <optimized out>
#########################################################################################################################################
Continuing.
### Output/messages #####################################################################################################################
Breakpoint 1, HAL_UART_RxCpltCallback (huart=0x20000a60 <huart1>) at Core/Src/main.c:392
392 if (huart == &huart1)
### Assembly ############################################################################################################################
~
~
~
~
0x0800127c HAL_UART_RxCpltCallback+0 push {r3, r4, r5, lr}
!0x0800127e HAL_UART_RxCpltCallback+2 ldr r3, [pc, #68] ; (0x80012c4 <HAL_UART_RxCpltCallback+72>)
0x08001280 HAL_UART_RxCpltCallback+4 cmp r0, r3
0x08001282 HAL_UART_RxCpltCallback+6 beq.n 0x800128c <HAL_UART_RxCpltCallback+16>
0x08001284 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012c8 <HAL_UART_RxCpltCallback+76>)
0x08001286 HAL_UART_RxCpltCallback+10 cmp r0, r3
### Breakpoints #########################################################################################################################
[1] break at 0x0800127e in Core/Src/main.c:392 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 2 times
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000a60 r4 0x20000a60 r8 0x00000000 r12 0x00001000 xPSR 0x81000035 primask 0x00
r1 0x00000000 r5 0x00000002 r9 0x00000000 sp 0x2000ff58 fpscr 0x20000010 basepri 0x00
r2 0x40013808 r6 0x00000000 r10 0x00000000 lr 0x0800385b msp 0x2000ff58 faultmask 0x00
r3 0x00000000 r7 0x00000000 r11 0x00000000 pc 0x0800127e psp 0x00000000 control 0x00
### Source ##############################################################################################################################
382 GPIO_InitStruct.Pin = m1_dir_Pin | m2_dir_Pin;
383 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
384 GPIO_InitStruct.Pull = GPIO_NOPULL;
385 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
386 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
387 }
388
389 /* USER CODE BEGIN 4 */
390 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
391 {
!392 if (huart == &huart1)
393 {
394 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
395 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
396 }
397 else if (huart == &huart2)
398 {
399 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
401 }
### Stack ###############################################################################################################################
[0] from 0x0800127e in HAL_UART_RxCpltCallback+2 at Core/Src/main.c:392
[1] from 0x0800385a in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x080035de in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[3] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x080015dc in main+132 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x0800127e in HAL_UART_RxCpltCallback+2 at Core/Src/main.c:392
### Variables ###########################################################################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
#########################################################################################################################################
$1 = 0 '\000'
### Output/messages #####################################################################################################################
halted: PC: 0x08001280
halted: PC: 0x08001282
halted: PC: 0x0800128c
394 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
### Assembly ############################################################################################################################
0x08001282 HAL_UART_RxCpltCallback+6 beq.n 0x800128c <HAL_UART_RxCpltCallback+16>
0x08001284 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012c8 <HAL_UART_RxCpltCallback+76>)
0x08001286 HAL_UART_RxCpltCallback+10 cmp r0, r3
0x08001288 HAL_UART_RxCpltCallback+12 beq.n 0x80012a6 <HAL_UART_RxCpltCallback+42>
0x0800128a HAL_UART_RxCpltCallback+14 pop {r3, r4, r5, pc}
0x0800128c HAL_UART_RxCpltCallback+16 ldr r4, [pc, #60] ; (0x80012cc <HAL_UART_RxCpltCallback+80>)
0x0800128e HAL_UART_RxCpltCallback+18 movs r3, #100 ; 0x64
0x08001290 HAL_UART_RxCpltCallback+20 movs r2, #1
0x08001292 HAL_UART_RxCpltCallback+22 mov r1, r4
0x08001294 HAL_UART_RxCpltCallback+24 ldr r0, [pc, #48] ; (0x80012c8 <HAL_UART_RxCpltCallback+76>)
### Breakpoints #########################################################################################################################
[1] break at 0x0800127e in Core/Src/main.c:392 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 2 times
### Expressions #########################################################################################################################
### History #############################################################################################################################
$$0 = 0 '\000'
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000a60 r4 0x20000a60 r8 0x00000000 r12 0x00001000 xPSR 0x61000035 primask 0x00
r1 0x00000000 r5 0x00000002 r9 0x00000000 sp 0x2000ff58 fpscr 0x20000010 basepri 0x00
r2 0x40013808 r6 0x00000000 r10 0x00000000 lr 0x0800385b msp 0x2000ff58 faultmask 0x00
r3 0x20000a60 r7 0x00000000 r11 0x00000000 pc 0x0800128c psp 0x00000000 control 0x00
### Source ##############################################################################################################################
384 GPIO_InitStruct.Pull = GPIO_NOPULL;
385 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
386 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
387 }
388
389 /* USER CODE BEGIN 4 */
390 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
391 {
!392 if (huart == &huart1)
393 {
394 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
395 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
396 }
397 else if (huart == &huart2)
398 {
399 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
401 }
402 }
403
### Stack ###############################################################################################################################
[0] from 0x0800128c in HAL_UART_RxCpltCallback+16 at Core/Src/main.c:394
[1] from 0x0800385a in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x080035de in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[3] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x080015dc in main+132 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x0800128c in HAL_UART_RxCpltCallback+16 at Core/Src/main.c:394
### Variables ###########################################################################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
#########################################################################################################################################
### Output/messages #####################################################################################################################
halted: PC: 0x0800128e
halted: PC: 0x08001290
halted: PC: 0x08001292
halted: PC: 0x08001294
halted: PC: 0x08001296
halted: PC: 0x08003d06
HAL_UART_Transmit (huart=huart@entry=0x20000ae8 <huart2>, pData=pData@entry=0x20000ae4 <huart1_rxc> "", Size=Size@entry=1, Timeout=Timeout@entry=100) at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1150
1150 {
### Assembly ############################################################################################################################
~
~
~
~
~
0x08003d06 HAL_UART_Transmit+0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
0x08003d0a HAL_UART_Transmit+4 sub sp, #8
0x08003d0c HAL_UART_Transmit+6 mov r6, r3
0x08003d0e HAL_UART_Transmit+8 ldr r3, [r0, #120] ; 0x78
0x08003d10 HAL_UART_Transmit+10 cmp r3, #32
### Breakpoints #########################################################################################################################
[1] break at 0x0800127e in Core/Src/main.c:392 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 2 times
### Expressions #########################################################################################################################
### History #############################################################################################################################
$$0 = 0 '\000'
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000ae8 r4 0x20000ae4 r8 0x00000000 r12 0x00001000 xPSR 0x21000035 primask 0x00
r1 0x20000ae4 r5 0x00000002 r9 0x00000000 sp 0x2000ff58 fpscr 0x20000010 basepri 0x00
r2 0x00000001 r6 0x00000000 r10 0x00000000 lr 0x0800129b msp 0x2000ff58 faultmask 0x00
r3 0x00000064 r7 0x00000000 r11 0x00000000 pc 0x08003d06 psp 0x00000000 control 0x00
### Source ##############################################################################################################################
1140 * data to the TXFIFO. Write operations to the TDR register are performed
1141 * when TXFNF flag is set. From hardware perspective, TXFNF flag and
1142 * TXE are mapped on the same bit-field.
1143 * @param huart UART handle.
1144 * @param pData Pointer to data buffer (u8 or u16 data elements).
1145 * @param Size Amount of data elements (u8 or u16) to be sent.
1146 * @param Timeout Timeout duration.
1147 * @retval HAL status
1148 */
1149 HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
1150 {
1151 const uint8_t *pdata8bits;
1152 const uint16_t *pdata16bits;
1153 uint32_t tickstart;
1154
1155 /* Check that a Tx process is not already ongoing */
1156 if (huart->gState == HAL_UART_STATE_READY)
1157 {
1158 if ((pData == NULL) || (Size == 0U))
1159 {
### Stack ###############################################################################################################################
[0] from 0x08003d06 in HAL_UART_Transmit+0 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1150
[1] from 0x0800129a in HAL_UART_RxCpltCallback+30 at Core/Src/main.c:394
[2] from 0x0800385a in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[3] from 0x080035de in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[4] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[5] from 0xffffffe9
[6] from 0x080015dc in main+132 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x08003d06 in HAL_UART_Transmit+0 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1150
### Variables ###########################################################################################################################
arg huart = 0x20000ae8 <huart2>: {Instance = 0x40004400,Init = {BaudRate = 115200,WordLength = 0,StopBi…, pData = 0x20000ae4 <huart1_rxc> "": 0 '\000', Size = 1, Timeout = 100
loc pdata8bits = <optimized out>, pdata16bits = <optimized out>, tickstart = <optimized out>
#########################################################################################################################################
### Output/messages #####################################################################################################################
halted: PC: 0x08003d0a
halted: PC: 0x08003d0c
halted: PC: 0x08003d0e
1156 if (huart->gState == HAL_UART_STATE_READY)
### Assembly ############################################################################################################################
~
~
0x08003d06 HAL_UART_Transmit+0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
0x08003d0a HAL_UART_Transmit+4 sub sp, #8
0x08003d0c HAL_UART_Transmit+6 mov r6, r3
0x08003d0e HAL_UART_Transmit+8 ldr r3, [r0, #120] ; 0x78
0x08003d10 HAL_UART_Transmit+10 cmp r3, #32
0x08003d12 HAL_UART_Transmit+12 bne.n 0x8003dc2 <HAL_UART_Transmit+188>
0x08003d14 HAL_UART_Transmit+14 mov r4, r0
0x08003d16 HAL_UART_Transmit+16 mov r5, r1
### Breakpoints #########################################################################################################################
[1] break at 0x0800127e in Core/Src/main.c:392 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 2 times
### Expressions #########################################################################################################################
### History #############################################################################################################################
$$0 = 0 '\000'
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000ae8 r4 0x20000ae4 r8 0x00000000 r12 0x00001000 xPSR 0x21000035 primask 0x00
r1 0x20000ae4 r5 0x00000002 r9 0x00000000 sp 0x2000ff38 fpscr 0x20000010 basepri 0x00
r2 0x00000001 r6 0x00000064 r10 0x00000000 lr 0x0800129b msp 0x2000ff38 faultmask 0x00
r3 0x00000064 r7 0x00000000 r11 0x00000000 pc 0x08003d0e psp 0x00000000 control 0x00
### Source ##############################################################################################################################
1146 * @param Timeout Timeout duration.
1147 * @retval HAL status
1148 */
1149 HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
1150 {
1151 const uint8_t *pdata8bits;
1152 const uint16_t *pdata16bits;
1153 uint32_t tickstart;
1154
1155 /* Check that a Tx process is not already ongoing */
1156 if (huart->gState == HAL_UART_STATE_READY)
1157 {
1158 if ((pData == NULL) || (Size == 0U))
1159 {
1160 return HAL_ERROR;
1161 }
1162
1163 __HAL_LOCK(huart);
1164
1165 huart->ErrorCode = HAL_UART_ERROR_NONE;
### Stack ###############################################################################################################################
[0] from 0x08003d0e in HAL_UART_Transmit+8 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1156
[1] from 0x0800129a in HAL_UART_RxCpltCallback+30 at Core/Src/main.c:394
[2] from 0x0800385a in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[3] from 0x080035de in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[4] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[5] from 0xffffffe9
[6] from 0x080015dc in main+132 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x08003d0e in HAL_UART_Transmit+8 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1156
### Variables ###########################################################################################################################
arg huart = 0x20000ae8 <huart2>: {Instance = 0x40004400,Init = {BaudRate = 115200,WordLength = 0,StopBi…, pData = 0x20000ae4 <huart1_rxc> "": 0 '\000', Size = 1, Timeout = 100
loc pdata8bits = <optimized out>, pdata16bits = <optimized out>, tickstart = <optimized out>
#########################################################################################################################################
Continuing.
### Output/messages #####################################################################################################################
Breakpoint 1, HAL_UART_RxCpltCallback (huart=0x20000a60 <huart1>) at Core/Src/main.c:392
392 if (huart == &huart1)
### Assembly ############################################################################################################################
~
~
~
~
0x0800127c HAL_UART_RxCpltCallback+0 push {r3, r4, r5, lr}
!0x0800127e HAL_UART_RxCpltCallback+2 ldr r3, [pc, #68] ; (0x80012c4 <HAL_UART_RxCpltCallback+72>)
0x08001280 HAL_UART_RxCpltCallback+4 cmp r0, r3
0x08001282 HAL_UART_RxCpltCallback+6 beq.n 0x800128c <HAL_UART_RxCpltCallback+16>
0x08001284 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012c8 <HAL_UART_RxCpltCallback+76>)
0x08001286 HAL_UART_RxCpltCallback+10 cmp r0, r3
### Breakpoints #########################################################################################################################
[1] break at 0x0800127e in Core/Src/main.c:392 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 3 times
### Expressions #########################################################################################################################
### History #############################################################################################################################
$$0 = 0 '\000'
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000a60 r4 0x20000a60 r8 0x00000000 r12 0x00001000 xPSR 0x81000035 primask 0x00
r1 0x00000000 r5 0x00000002 r9 0x00000000 sp 0x2000ff58 fpscr 0x20000010 basepri 0x00
r2 0x40013808 r6 0x00000000 r10 0x00000000 lr 0x0800385b msp 0x2000ff58 faultmask 0x00
r3 0x00000000 r7 0x00000000 r11 0x00000000 pc 0x0800127e psp 0x00000000 control 0x00
### Source ##############################################################################################################################
382 GPIO_InitStruct.Pin = m1_dir_Pin | m2_dir_Pin;
383 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
384 GPIO_InitStruct.Pull = GPIO_NOPULL;
385 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
386 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
387 }
388
389 /* USER CODE BEGIN 4 */
390 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
391 {
!392 if (huart == &huart1)
393 {
394 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
395 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
396 }
397 else if (huart == &huart2)
398 {
399 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
401 }
### Stack ###############################################################################################################################
[0] from 0x0800127e in HAL_UART_RxCpltCallback+2 at Core/Src/main.c:392
[1] from 0x0800385a in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x080035de in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[3] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x080015d8 in main+128 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x0800127e in HAL_UART_RxCpltCallback+2 at Core/Src/main.c:392
### Variables ###########################################################################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
#########################################################################################################################################
Detaching from program: /storage/Shared/Projects/Penguinator/motor_controller/build/motor_controller.elf, Remote target
[Inferior 1 (Remote target) detached]
HAL_UART_RxCpltCallback (huart=0x20000a60 <huart1>) at Core/Src/main.c:392
392 if (huart == &huart1)
### Assembly ############################################################################################################################
~
~
~
~
0x0800127c HAL_UART_RxCpltCallback+0 push {r3, r4, r5, lr}
0x0800127e HAL_UART_RxCpltCallback+2 ldr r3, [pc, #68] ; (0x80012c4 <HAL_UART_RxCpltCallback+72>)
0x08001280 HAL_UART_RxCpltCallback+4 cmp r0, r3
0x08001282 HAL_UART_RxCpltCallback+6 beq.n 0x800128c <HAL_UART_RxCpltCallback+16>
0x08001284 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012c8 <HAL_UART_RxCpltCallback+76>)
0x08001286 HAL_UART_RxCpltCallback+10 cmp r0, r3
### Breakpoints #########################################################################################################################
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000a60 r4 0x20000a60 r8 0x00000000 r12 0x00001000 xPSR 0x81000035 primask 0x00
r1 0x00000000 r5 0x00000002 r9 0x00000000 sp 0x2000ff58 fpscr 0x20000010 basepri 0x00
r2 0x40013808 r6 0x00000000 r10 0x00000000 lr 0x0800385b msp 0x2000ff58 faultmask 0x00
r3 0x00000000 r7 0x00000000 r11 0x00000000 pc 0x0800127e psp 0x00000000 control 0x00
### Source ##############################################################################################################################
382 GPIO_InitStruct.Pin = m1_dir_Pin | m2_dir_Pin;
383 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
384 GPIO_InitStruct.Pull = GPIO_NOPULL;
385 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
386 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
387 }
388
389 /* USER CODE BEGIN 4 */
390 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
391 {
392 if (huart == &huart1)
393 {
394 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
395 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
396 }
397 else if (huart == &huart2)
398 {
399 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
401 }
### Stack ###############################################################################################################################
[0] from 0x0800127e in HAL_UART_RxCpltCallback+2 at Core/Src/main.c:392
[1] from 0x0800385a in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x080035de in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[3] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x080015d8 in main+128 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x0800127e in HAL_UART_RxCpltCallback+2 at Core/Src/main.c:392
### Variables ###########################################################################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
#########################################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
0x080015da in main () at Core/Src/main.c:133
warning: Source file is more recent than executable.
133 if (b_timer_struck)
### Assembly ############################################################################################################################
0x080015ce main+118 ldr r1, [pc, #80] ; (0x8001620 <main+200>)
0x080015d0 main+120 ldr r0, [pc, #80] ; (0x8001624 <main+204>)
0x080015d2 main+122 bl 0x8003f88 <HAL_UART_Receive_IT>
0x080015d6 main+126 movs r4, #0
0x080015d8 main+128 ldr r3, [pc, #76] ; (0x8001628 <main+208>)
0x080015da main+130 ldrb r3, [r3, #0]
0x080015dc main+132 cmp r3, #0
0x080015de main+134 beq.n 0x80015d8 <main+128>
0x080015e0 main+136 ldr r3, [pc, #68] ; (0x8001628 <main+208>)
0x080015e2 main+138 movs r2, #0
### Breakpoints #########################################################################################################################
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x00000000 r4 0x00000111 r8 0x00000000 r12 0x00001000 xPSR 0x61000000 primask 0x00
r1 0x00000000 r5 0x20000ae8 r9 0x00000000 sp 0x2000fff0 fpscr 0x20000010 basepri 0x00
r2 0x00000001 r6 0x00000000 r10 0x00000000 lr 0x0800202d msp 0x2000fff0 faultmask 0x00
r3 0x200009c4 r7 0x00000000 r11 0x00000000 pc 0x080015da psp 0x00000000 control 0x04
### Source ##############################################################################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 0);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack ###############################################################################################################################
[0] from 0x080015da in main+130 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x080015da in main+130 at Core/Src/main.c:133
### Variables ###########################################################################################################################
loc motor_degrees = 273
#########################################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015cc main+116 movs r2, #1
0x080015ce main+118 ldr r1, [pc, #80] ; (0x8001620 <main+200>)
0x080015d0 main+120 ldr r0, [pc, #80] ; (0x8001624 <main+204>)
0x080015d2 main+122 bl 0x8003f88 <HAL_UART_Receive_IT>
0x080015d6 main+126 movs r4, #0
0x080015d8 main+128 ldr r3, [pc, #76] ; (0x8001628 <main+208>)
0x080015da main+130 ldrb r3, [r3, #0]
0x080015dc main+132 cmp r3, #0
0x080015de main+134 beq.n 0x80015d8 <main+128>
0x080015e0 main+136 ldr r3, [pc, #68] ; (0x8001628 <main+208>)
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x80000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x000000bd r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015d8 control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 0);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015d8 in main+128 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015d8 in main+128 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 189
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015cc main+116 movs r2, #1
0x080015ce main+118 ldr r1, [pc, #80] ; (0x8001620 <main+200>)
0x080015d0 main+120 ldr r0, [pc, #80] ; (0x8001624 <main+204>)
0x080015d2 main+122 bl 0x8003f88 <HAL_UART_Receive_IT>
0x080015d6 main+126 movs r4, #0
0x080015d8 main+128 ldr r3, [pc, #76] ; (0x8001628 <main+208>)
0x080015da main+130 ldrb r3, [r3, #0]
0x080015dc main+132 cmp r3, #0
0x080015de main+134 beq.n 0x80015d8 <main+128>
0x080015e0 main+136 ldr r3, [pc, #68] ; (0x8001628 <main+208>)
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x00000054 r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015d8 control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 0);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015d8 in main+128 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015d8 in main+128 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 84
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
Reset_Handler () at startup_stm32l432xx.s:62
62 ldr sp, =_estack /* Set stack pointer */
### Assembly ##################################################################
0x080041b0 ? movs r0, r0
0x080041b2 ? movs r0, r0
0x080041b4 ? movs r0, r0
0x080041b6 ? movs r0, r0
0x080041b8 ? movs r0, r0
0x080041ba ? movs r0, r0
0x080041bc ? movs r0, r0
0x080041be ? movs r0, r0
0x080041c0 ? movs r0, r0
0x080041c2 ? movs r0, r0
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x01000000
r1 0x00000000 r9 0x00000000 fpscr 0x00000000
r2 0x00000000 r10 0x00000000 msp 0x20010000
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x00000000 r12 0x00000000 primask 0x00
r5 0x00000000 sp 0x20010000 basepri 0x00
r6 0x00000000 lr 0xffffffff faultmask 0x00
r7 0x00000000 pc 0x080041b0 control 0x00
### Source ####################################################################
52 * necessary set is performed, after which the application
53 * supplied main() routine is called.
54 * @param None
55 * @retval : None
56 */
57
58 .section .text.Reset_Handler
59 .weak Reset_Handler
60 .type Reset_Handler, %function
61 Reset_Handler:
62 ldr sp, =_estack /* Set stack pointer */
63
64 /* Call the clock system initialization function.*/
65 bl SystemInit
66
67 /* Copy the data segment initializers from flash to SRAM */
68 ldr r0, =_sdata
69 ldr r1, =_edata
70 ldr r2, =_sidata
71 movs r3, #0
### Stack #####################################################################
[0] from 0x080041b0 in Reset_Handler at startup_stm32l432xx.s:62
### Threads ###################################################################
[1] id 0 from 0x080041b0 in Reset_Handler at startup_stm32l432xx.s:62
### Variables #################################################################
###############################################################################
generic_push.gdb:7: Error in sourced command file:
Error erasing flash with vFlashErase packet
Quit
Quit
Quit
Detaching from program: /storage/Shared/Projects/Penguinator/motor_controller/build/motor_controller.elf, Remote target
Remote connection closed
0x080015da in main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015ce main+118 ldr r1, [pc, #80] ; (0x8001620 <main+200>)
0x080015d0 main+120 ldr r0, [pc, #80] ; (0x8001624 <main+204>)
0x080015d2 main+122 bl 0x8003f88 <HAL_UART_Receive_IT>
0x080015d6 main+126 movs r4, #0
0x080015d8 main+128 ldr r3, [pc, #76] ; (0x8001628 <main+208>)
0x080015da main+130 ldrb r3, [r3, #0]
0x080015dc main+132 cmp r3, #0
0x080015de main+134 beq.n 0x80015d8 <main+128>
0x080015e0 main+136 ldr r3, [pc, #68] ; (0x8001628 <main+208>)
0x080015e2 main+138 movs r2, #0
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x200009c4 r11 0x00000000 psp 0x00000000
r4 0x00000125 r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015da control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 0);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015da in main+130 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015da in main+130 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 293
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
0x080015da in main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015ce main+118 ldr r1, [pc, #80] ; (0x8001620 <main+200>)
0x080015d0 main+120 ldr r0, [pc, #80] ; (0x8001624 <main+204>)
0x080015d2 main+122 bl 0x8003f88 <HAL_UART_Receive_IT>
0x080015d6 main+126 movs r4, #0
0x080015d8 main+128 ldr r3, [pc, #76] ; (0x8001628 <main+208>)
0x080015da main+130 ldrb r3, [r3, #0]
0x080015dc main+132 cmp r3, #0
0x080015de main+134 beq.n 0x80015d8 <main+128>
0x080015e0 main+136 ldr r3, [pc, #68] ; (0x8001628 <main+208>)
0x080015e2 main+138 movs r2, #0
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x200009c4 r11 0x00000000 psp 0x00000000
r4 0x0000015f r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015da control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 0);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015da in main+130 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015da in main+130 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 351
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
0x080015dc in main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015d0 main+120 ldr r0, [pc, #80] ; (0x8001624 <main+204>)
0x080015d2 main+122 bl 0x8003f88 <HAL_UART_Receive_IT>
0x080015d6 main+126 movs r4, #0
0x080015d8 main+128 ldr r3, [pc, #76] ; (0x8001628 <main+208>)
0x080015da main+130 ldrb r3, [r3, #0]
0x080015dc main+132 cmp r3, #0
0x080015de main+134 beq.n 0x80015d8 <main+128>
0x080015e0 main+136 ldr r3, [pc, #68] ; (0x8001628 <main+208>)
0x080015e2 main+138 movs r2, #0
0x080015e4 main+140 strb r2, [r3, #0]
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x80000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x0000007a r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015dc control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 0);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015dc in main+132 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015dc in main+132 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 122
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
0x080015de in main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015d2 main+122 bl 0x8003f88 <HAL_UART_Receive_IT>
0x080015d6 main+126 movs r4, #0
0x080015d8 main+128 ldr r3, [pc, #76] ; (0x8001628 <main+208>)
0x080015da main+130 ldrb r3, [r3, #0]
0x080015dc main+132 cmp r3, #0
0x080015de main+134 beq.n 0x80015d8 <main+128>
0x080015e0 main+136 ldr r3, [pc, #68] ; (0x8001628 <main+208>)
0x080015e2 main+138 movs r2, #0
0x080015e4 main+140 strb r2, [r3, #0]
0x080015e6 main+142 adds r3, r4, #1
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x00000023 r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015de control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 0);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015de in main+134 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015de in main+134 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 35
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
0x080015da in main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015ce main+118 ldr r1, [pc, #80] ; (0x8001620 <main+200>)
0x080015d0 main+120 ldr r0, [pc, #80] ; (0x8001624 <main+204>)
0x080015d2 main+122 bl 0x8003f88 <HAL_UART_Receive_IT>
0x080015d6 main+126 movs r4, #0
0x080015d8 main+128 ldr r3, [pc, #76] ; (0x8001628 <main+208>)
0x080015da main+130 ldrb r3, [r3, #0]
0x080015dc main+132 cmp r3, #0
0x080015de main+134 beq.n 0x80015d8 <main+128>
0x080015e0 main+136 ldr r3, [pc, #68] ; (0x8001628 <main+208>)
0x080015e2 main+138 movs r2, #0
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x80000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x200009c4 r11 0x00000000 psp 0x00000000
r4 0x000000da r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015da control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 0);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015da in main+130 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015da in main+130 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 218
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
0x080015da in main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015ce main+118 ldr r1, [pc, #80] ; (0x8001620 <main+200>)
0x080015d0 main+120 ldr r0, [pc, #80] ; (0x8001624 <main+204>)
0x080015d2 main+122 bl 0x8003f88 <HAL_UART_Receive_IT>
0x080015d6 main+126 movs r4, #0
0x080015d8 main+128 ldr r3, [pc, #76] ; (0x8001628 <main+208>)
0x080015da main+130 ldrb r3, [r3, #0]
0x080015dc main+132 cmp r3, #0
0x080015de main+134 beq.n 0x80015d8 <main+128>
0x080015e0 main+136 ldr r3, [pc, #68] ; (0x8001628 <main+208>)
0x080015e2 main+138 movs r2, #0
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x80000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x200009c4 r11 0x00000000 psp 0x00000000
r4 0x000000c3 r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015da control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 1);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015da in main+130 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015da in main+130 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 195
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
0x080015de in main () at Core/Src/main.c:136
136 b_timer_struck = false;
### Assembly ##################################################################
0x080015d2 main+126 bl 0x8003f88 <HAL_UART_Receive_IT+4>
0x080015d6 main+130 movs r4, #0
0x080015d8 main+132 ldr r3, [pc, #76] ; (0x8001628 <main+212>)
0x080015da main+134 ldrb r3, [r3, #0]
0x080015dc main+136 cmp r3, #0
0x080015de main+138 beq.n 0x80015d8 <main+132>
0x080015e0 main+140 ldr r3, [pc, #68] ; (0x8001628 <main+212>)
0x080015e2 main+142 movs r2, #0
0x080015e4 main+144 strb r2, [r3, #0]
0x080015e6 main+146 adds r3, r4, #1
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x00000021 r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015de control 0x04
### Source ####################################################################
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
143 }
144 /* USER CODE END 3 */
145 }
### Stack #####################################################################
[0] from 0x080015de in main+138 at Core/Src/main.c:136
### Threads ###################################################################
[1] id 0 from 0x080015de in main+138 at Core/Src/main.c:136
### Variables #################################################################
loc motor_degrees = 33
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa848 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa08
Loading section .ARM, size 0x8 lma 0x800b050
Loading section .init_array, size 0x8 lma 0x800b058
Loading section .fini_array, size 0x8 lma 0x800b060
Loading section .data, size 0x9a8 lma 0x800b068
Start address 0x08004128, load size 47584
Transfer rate: 30 KB/sec, 5287 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]
0x080015d6 in main () at Core/Src/main.c:125
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
### Assembly ##################################################################
0x080015ca main+114 ldr r1, [pc, #80] ; (0x800161c <main+196>)
0x080015cc main+116 ldr r0, [pc, #80] ; (0x8001620 <main+200>)
0x080015ce main+118 bl 0x8003f84 <UART_Start_Receive_IT+168>
0x080015d2 main+122 movs r4, #0
0x080015d4 main+124 ldr r3, [pc, #76] ; (0x8001624 <main+204>)
0x080015d6 main+126 ldrb r3, [r3, #0]
0x080015d8 main+128 cmp r3, #0
0x080015da main+130 beq.n 0x80015d4 <main+124>
0x080015dc main+132 ldr r3, [pc, #68] ; (0x8001624 <main+204>)
0x080015de main+134 movs r2, #0
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x200009c4 r11 0x00000000 psp 0x00000000
r4 0x0000004c r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x08002029 faultmask 0x00
r7 0x00000000 pc 0x080015d6 control 0x04
### Source ####################################################################
115 setPWM(&htim2, TIM_CHANNEL_4, 25);
116
117 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
118 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
119
120 mc_init(&htim2);
121 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
122 HAL_TIM_Base_Start_IT(&htim6);
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 1);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
### Stack #####################################################################
[0] from 0x080015d6 in main+126 at Core/Src/main.c:125
### Threads ###################################################################
[1] id 0 from 0x080015d6 in main+126 at Core/Src/main.c:125
### Variables #################################################################
loc motor_degrees = <optimized out>
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8f8 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aab8
Loading section .ARM, size 0x8 lma 0x800b100
Loading section .init_array, size 0x8 lma 0x800b108
Loading section .fini_array, size 0x8 lma 0x800b110
Loading section .data, size 0x9a8 lma 0x800b118
Start address 0x080041d8, load size 47760
Transfer rate: 30 KB/sec, 5306 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]
main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015d0 main+120 movs r2, #1
0x080015d2 main+122 ldr r1, [pc, #76] ; (0x8001620 <main+200>)
0x080015d4 main+124 ldr r0, [pc, #76] ; (0x8001624 <main+204>)
0x080015d6 main+126 bl 0x8003fb4 <HAL_UART_Receive_IT>
0x080015da main+130 movs r4, #0
0x080015dc main+132 ldr r3, [pc, #72] ; (0x8001628 <main+208>)
0x080015de main+134 ldrb r3, [r3, #0]
0x080015e0 main+136 cmp r3, #0
0x080015e2 main+138 beq.n 0x80015dc <main+132>
0x080015e4 main+140 ldr r3, [pc, #64] ; (0x8001628 <main+208>)
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x00000043 r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x08002059 faultmask 0x00
r7 0x00000000 pc 0x080015dc control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 1);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015dc in main+132 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015dc in main+132 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 67
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8f8 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aab8
Loading section .ARM, size 0x8 lma 0x800b100
Loading section .init_array, size 0x8 lma 0x800b108
Loading section .fini_array, size 0x8 lma 0x800b110
Loading section .data, size 0x9a8 lma 0x800b118
Start address 0x080041d8, load size 47760
Transfer rate: 30 KB/sec, 5306 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]
main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ##################################################################
0x080015d0 main+120 movs r2, #1
0x080015d2 main+122 ldr r1, [pc, #76] ; (0x8001620 <main+200>)
0x080015d4 main+124 ldr r0, [pc, #76] ; (0x8001624 <main+204>)
0x080015d6 main+126 bl 0x8003fb4 <HAL_UART_Receive_IT>
0x080015da main+130 movs r4, #0
0x080015dc main+132 ldr r3, [pc, #72] ; (0x8001628 <main+208>)
0x080015de main+134 ldrb r3, [r3, #0]
0x080015e0 main+136 cmp r3, #0
0x080015e2 main+138 beq.n 0x80015dc <main+132>
0x080015e4 main+140 ldr r3, [pc, #64] ; (0x8001628 <main+208>)
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x80000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x0000008d r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x08002059 faultmask 0x00
r7 0x00000000 pc 0x080015dc control 0x04
### Source ####################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 1);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015dc in main+132 at Core/Src/main.c:133
### Threads ###################################################################
[1] id 0 from 0x080015dc in main+132 at Core/Src/main.c:133
### Variables #################################################################
loc motor_degrees = 141
###############################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080041d8 msp: 0x20010000
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8f8 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aab8
Loading section .ARM, size 0x8 lma 0x800b100
Loading section .init_array, size 0x8 lma 0x800b108
Loading section .fini_array, size 0x8 lma 0x800b110
Loading section .data, size 0x9a8 lma 0x800b118
Start address 0x080041d8, load size 47760
Transfer rate: 30 KB/sec, 5306 bytes/write.
Breakpoint 1 at 0x800127c: file Core/Src/main.c, line 397.
Note: automatically using hardware breakpoints for read-only addresses.
Starting program: /storage/Shared/Projects/Penguinator/motor_controller/build/motor_controller.elf
### Output/messages ###########################################################
Breakpoint 1, HAL_UART_RxCpltCallback (huart=0x20000a60 <huart1>) at Core/Src/main.c:397
397 {
### Assembly ##################################################################
~
~
~
~
~
!0x0800127c HAL_UART_RxCpltCallback+0 push {r3, r4, r5, lr}
0x0800127e HAL_UART_RxCpltCallback+2 ldr r3, [pc, #68] ; (0x80012c4 <HAL_UART_RxCpltCallback+72>)
0x08001280 HAL_UART_RxCpltCallback+4 cmp r0, r3
0x08001282 HAL_UART_RxCpltCallback+6 beq.n 0x800128c <HAL_UART_RxCpltCallback+16>
0x08001284 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012c8 <HAL_UART_RxCpltCallback+76>)
### Breakpoints ###############################################################
[1] break at 0x0800127c in Core/Src/main.c:397 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 1 time
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x20000a60 r8 0x00000000 xPSR 0x81000035
r1 0x00000000 r9 0x00000000 fpscr 0x00000010
r2 0x40013808 r10 0x00000000 msp 0x2000ff58
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x20000a60 r12 0x00001000 primask 0x00
r5 0x00004001 sp 0x2000ff58 basepri 0x00
r6 0x00000000 lr 0x08003887 faultmask 0x00
r7 0x00000000 pc 0x0800127c control 0x00
### Source ####################################################################
387 }
388
389 /* USER CODE BEGIN 4 */
390 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
391 {
392 if (huart == &huart1)
393 {
394 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
395 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
396 }
!397 else if (huart == &huart2)
398 {
399 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
401 }
402 }
403
404 void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
405 {
406 sys_time += 1;
### Stack #####################################################################
[0] from 0x0800127c in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:397
[1] from 0x08003886 in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x08003560 in HAL_UART_IRQHandler+108 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2347
[3] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x08003f74 in UART_Start_Receive_IT+152 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:3685
[6] from 0x08003ff8 in HAL_UART_Receive_IT+68 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:1440
[7] from 0x080015da in main+130 at Core/Src/main.c:125
### Threads ###################################################################
[1] id 0 from 0x0800127c in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:397
### Variables #################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
###############################################################################
Continuing.
### Output/messages #####################################################################################################################
halted: PC: 0x0800127e
Breakpoint 1, HAL_UART_RxCpltCallback (huart=0x20000a60 <huart1>) at Core/Src/main.c:397
397 {
### Assembly ############################################################################################################################
~
~
~
~
~
!0x0800127c HAL_UART_RxCpltCallback+0 push {r3, r4, r5, lr}
0x0800127e HAL_UART_RxCpltCallback+2 ldr r3, [pc, #68] ; (0x80012c4 <HAL_UART_RxCpltCallback+72>)
0x08001280 HAL_UART_RxCpltCallback+4 cmp r0, r3
0x08001282 HAL_UART_RxCpltCallback+6 beq.n 0x800128c <HAL_UART_RxCpltCallback+16>
0x08001284 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012c8 <HAL_UART_RxCpltCallback+76>)
### Breakpoints #########################################################################################################################
[1] break at 0x0800127c in Core/Src/main.c:397 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 2 times
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000a60 r4 0x20000a60 r8 0x00000000 r12 0x00001000 xPSR 0x81000035 primask 0x00
r1 0x00000000 r5 0x00000002 r9 0x00000000 sp 0x2000ff68 fpscr 0x20000010 basepri 0x00
r2 0x40013808 r6 0x00000000 r10 0x00000000 lr 0x08003887 msp 0x2000ff68 faultmask 0x00
r3 0x00000000 r7 0x00000000 r11 0x00000000 pc 0x0800127c psp 0x00000000 control 0x00
### Source ##############################################################################################################################
387 }
388
389 /* USER CODE BEGIN 4 */
390 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
391 {
392 if (huart == &huart1)
393 {
394 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
395 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
396 }
!397 else if (huart == &huart2)
398 {
399 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
401 }
402 }
403
404 void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
405 {
406 sys_time += 1;
### Stack ###############################################################################################################################
[0] from 0x0800127c in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:397
[1] from 0x08003886 in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x0800360a in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[3] from 0x08001650 in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x080015de in main+134 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x0800127c in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:397
### Variables ###########################################################################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
#########################################################################################################################################
Continuing.
### Output/messages #####################################################################################################################
halted: PC: 0x0800127e
Program received signal SIGINT, Interrupt.
main () at Core/Src/main.c:133
133 if (b_timer_struck)
### Assembly ############################################################################################################################
0x080015d0 main+120 movs r2, #1
0x080015d2 main+122 ldr r1, [pc, #76] ; (0x8001620 <main+200>)
0x080015d4 main+124 ldr r0, [pc, #76] ; (0x8001624 <main+204>)
0x080015d6 main+126 bl 0x8003fb4 <HAL_UART_Receive_IT>
0x080015da main+130 movs r4, #0
0x080015dc main+132 ldr r3, [pc, #72] ; (0x8001628 <main+208>)
0x080015de main+134 ldrb r3, [r3, #0]
0x080015e0 main+136 cmp r3, #0
0x080015e2 main+138 beq.n 0x80015dc <main+132>
0x080015e4 main+140 ldr r3, [pc, #64] ; (0x8001628 <main+208>)
### Breakpoints #########################################################################################################################
[1] break at 0x0800127c in Core/Src/main.c:397 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 2 times
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x00000000 r4 0x00000039 r8 0x00000000 r12 0x00001000 xPSR 0x61000000 primask 0x00
r1 0x00000000 r5 0x20000ae8 r9 0x00000000 sp 0x2000fff0 fpscr 0x20000010 basepri 0x00
r2 0x00000001 r6 0x00000000 r10 0x00000000 lr 0x08002059 msp 0x2000fff0 faultmask 0x00
r3 0x00000000 r7 0x00000000 r11 0x00000000 pc 0x080015dc psp 0x00000000 control 0x04
### Source ##############################################################################################################################
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 1);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
### Stack ###############################################################################################################################
[0] from 0x080015dc in main+132 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x080015dc in main+132 at Core/Src/main.c:133
### Variables ###########################################################################################################################
loc motor_degrees = 57
#########################################################################################################################################
Function "main()" not defined.
Quit
Quit
Breakpoint 2 at 0x80015c2: file Core/Src/main.c, line 124.
Starting program: /storage/Shared/Projects/Penguinator/motor_controller/build/motor_controller.elf
### Output/messages #####################################################################################################################
Breakpoint 2, main () at Core/Src/main.c:124
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 1);
### Assembly ############################################################################################################################
0x080015b4 main+92 ldr r1, [pc, #96] ; (0x8001618 <main+192>)
0x080015b6 main+94 mov r0, r5
0x080015b8 main+96 bl 0x8003fb4 <HAL_UART_Receive_IT>
0x080015bc main+100 ldr r0, [pc, #92] ; (0x800161c <main+196>)
0x080015be main+102 bl 0x8001aac <HAL_TIM_Base_Start_IT>
!0x080015c2 main+106 movs r2, #1
0x080015c4 main+108 mov.w r1, #4096 ; 0x1000
0x080015c8 main+112 mov.w r0, #1207959552 ; 0x48000000
0x080015cc main+116 bl 0x800323c <HAL_GPIO_WritePin>
0x080015d0 main+120 movs r2, #1
### Breakpoints #########################################################################################################################
[2] break at 0x080015c2 in Core/Src/main.c:124 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:124 hit 1 time
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x00000000 r4 0x200009c8 r8 0x00000000 r12 0x00001000 xPSR 0x41000000 primask 0x00
r1 0x00000000 r5 0x20000ae8 r9 0x00000000 sp 0x2000fff0 fpscr 0x00000010 basepri 0x00
r2 0x00000081 r6 0x00000000 r10 0x00000000 lr 0x080015c3 msp 0x2000fff0 faultmask 0x00
r3 0x40001000 r7 0x00000000 r11 0x00000000 pc 0x080015c2 psp 0x00000000 control 0x04
### Source ##############################################################################################################################
114 setPWM(&htim2, TIM_CHANNEL_2, 50);
115 setPWM(&htim2, TIM_CHANNEL_4, 25);
116
117 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
118 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
119
120 mc_init(&htim2);
121 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
122 HAL_TIM_Base_Start_IT(&htim6);
123
!124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 1);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
### Stack ###############################################################################################################################
[0] from 0x080015c2 in main+106 at Core/Src/main.c:124
### Threads #############################################################################################################################
[1] id 0 from 0x080015c2 in main+106 at Core/Src/main.c:124
### Variables ###########################################################################################################################
loc motor_degrees = <optimized out>
#########################################################################################################################################
### Output/messages #####################################################################################################################
halted: PC: 0x080015c4
halted: PC: 0x080015c8
halted: PC: 0x080015cc
halted: PC: 0x0800323c
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
### Assembly ############################################################################################################################
0x080015be main+102 bl 0x8001aac <HAL_TIM_Base_Start_IT>
!0x080015c2 main+106 movs r2, #1
0x080015c4 main+108 mov.w r1, #4096 ; 0x1000
0x080015c8 main+112 mov.w r0, #1207959552 ; 0x48000000
0x080015cc main+116 bl 0x800323c <HAL_GPIO_WritePin>
0x080015d0 main+120 movs r2, #1
0x080015d2 main+122 ldr r1, [pc, #76] ; (0x8001620 <main+200>)
0x080015d4 main+124 ldr r0, [pc, #76] ; (0x8001624 <main+204>)
0x080015d6 main+126 bl 0x8003fb4 <HAL_UART_Receive_IT>
0x080015da main+130 movs r4, #0
### Breakpoints #########################################################################################################################
[2] break at 0x080015c2 in Core/Src/main.c:124 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:124 hit 1 time
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x48000000 r4 0x200009c8 r8 0x00000000 r12 0x00001000 xPSR 0x01000000 primask 0x00
r1 0x00001000 r5 0x20000ae8 r9 0x00000000 sp 0x2000fff0 fpscr 0x00000010 basepri 0x00
r2 0x00000001 r6 0x00000000 r10 0x00000000 lr 0x080015d1 msp 0x2000fff0 faultmask 0x00
r3 0x40001000 r7 0x00000000 r11 0x00000000 pc 0x080015d0 psp 0x00000000 control 0x04
### Source ##############################################################################################################################
115 setPWM(&htim2, TIM_CHANNEL_4, 25);
116
117 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
118 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
119
120 mc_init(&htim2);
121 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
122 HAL_TIM_Base_Start_IT(&htim6);
123
!124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 1);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
### Stack ###############################################################################################################################
[0] from 0x080015d0 in main+120 at Core/Src/main.c:125
### Threads #############################################################################################################################
[1] id 0 from 0x080015d0 in main+120 at Core/Src/main.c:125
### Variables ###########################################################################################################################
loc motor_degrees = <optimized out>
#########################################################################################################################################
Detaching from program: /storage/Shared/Projects/Penguinator/motor_controller/build/motor_controller.elf, Remote target
[Inferior 1 (Remote target) detached]
main () at Core/Src/main.c:136
136 b_timer_struck = false;
### Assembly ############################################################################################################################
0x080015be main+122 bl 0x8001aac <HAL_TIM_Base_Start_IT+64>
0x080015c2 main+126 movs r2, #1
0x080015c4 main+128 mov.w r1, #4096 ; 0x1000
0x080015c8 main+132 mov.w r0, #1207959552 ; 0x48000000
0x080015cc main+136 bl 0x800323c <HAL_DMA_Abort+54>
0x080015d0 main+140 movs r2, #1
0x080015d2 main+142 ldr r1, [pc, #76] ; (0x8001620 <MemManage_Handler>)
0x080015d4 main+144 ldr r0, [pc, #76] ; (0x8001624 <UsageFault_Handler>)
0x080015d6 main+146 bl 0x8003fb4 <HAL_UART_Receive_IT+64>
0x080015da main+150 movs r4, #0
### Breakpoints #########################################################################################################################
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x48000000 r4 0x200009c8 r8 0x00000000 r12 0x00001000 xPSR 0x01000000 primask 0x00
r1 0x00001000 r5 0x20000ae8 r9 0x00000000 sp 0x2000fff0 fpscr 0x00000010 basepri 0x00
r2 0x00000001 r6 0x00000000 r10 0x00000000 lr 0x080015d1 msp 0x2000fff0 faultmask 0x00
r3 0x40001000 r7 0x00000000 r11 0x00000000 pc 0x080015d0 psp 0x00000000 control 0x04
### Source ##############################################################################################################################
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
135 // PDEBUG("%d\n", sys_time);
136 b_timer_struck = false;
137 motor_degrees = (motor_degrees + 1) % 360;
138 mc_service(motor_degrees, 50);
139 }
140 /* USER CODE END WHILE */
141
142 /* USER CODE BEGIN 3 */
143 }
144 /* USER CODE END 3 */
145 }
### Stack ###############################################################################################################################
[0] from 0x080015d0 in main+140 at Core/Src/main.c:136
### Threads #############################################################################################################################
[1] id 0 from 0x080015d0 in main+140 at Core/Src/main.c:136
### Variables ###########################################################################################################################
loc motor_degrees = 2504
#########################################################################################################################################
Unable to match requested speed 500 kHz, using 480 kHz
Unable to match requested speed 500 kHz, using 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080041d8 msp: 0x20010000
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8b8 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa78
Loading section .ARM, size 0x8 lma 0x800b0c0
Loading section .init_array, size 0x8 lma 0x800b0c8
Loading section .fini_array, size 0x8 lma 0x800b0d0
Loading section .data, size 0x9a8 lma 0x800b0d8
Start address 0x08004198, load size 47696
Transfer rate: 30 KB/sec, 5299 bytes/write.
Breakpoint 1 at 0x8001268: file Core/Src/main.c, line 396.
Note: automatically using hardware breakpoints for read-only addresses.
Starting program: /storage/Shared/Projects/Penguinator/motor_controller/build/motor_controller.elf
### Output/messages #####################################################################################################################
Breakpoint 1, HAL_UART_RxCpltCallback (huart=0x20000a60 <huart1>) at Core/Src/main.c:396
396 {
### Assembly ############################################################################################################################
~
~
~
~
~
!0x08001268 HAL_UART_RxCpltCallback+0 push {r3, r4, r5, lr}
0x0800126a HAL_UART_RxCpltCallback+2 ldr r3, [pc, #68] ; (0x80012b0 <HAL_UART_RxCpltCallback+72>)
0x0800126c HAL_UART_RxCpltCallback+4 cmp r0, r3
0x0800126e HAL_UART_RxCpltCallback+6 beq.n 0x8001278 <HAL_UART_RxCpltCallback+16>
0x08001270 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012b4 <HAL_UART_RxCpltCallback+76>)
### Breakpoints #########################################################################################################################
[1] break at 0x08001268 in Core/Src/main.c:396 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 1 time
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000a60 r4 0x20000a60 r8 0x00000000 r12 0x00001000 xPSR 0x81000035 primask 0x00
r1 0x00000000 r5 0x00000004 r9 0x00000000 sp 0x2000ff68 fpscr 0x20000010 basepri 0x00
r2 0x40013808 r6 0x00000000 r10 0x00000000 lr 0x08003847 msp 0x2000ff68 faultmask 0x00
r3 0x00000000 r7 0x00000000 r11 0x00000000 pc 0x08001268 psp 0x00000000 control 0x00
### Source ##############################################################################################################################
386 GPIO_InitStruct.Pin = m1_dir_Pin|m2_dir_Pin;
387 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
388 GPIO_InitStruct.Pull = GPIO_NOPULL;
389 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
390 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
391
392 }
393
394 /* USER CODE BEGIN 4 */
395 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
!396 {
397 if (huart == &huart1)
398 {
399 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
401 }
402 else if (huart == &huart2)
403 {
404 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
405 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
### Stack ###############################################################################################################################
[0] from 0x08001268 in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:396
[1] from 0x08003846 in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x080035ca in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[3] from 0x0800163c in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x080015ce in main+138 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x08001268 in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:396
### Variables ###########################################################################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
#########################################################################################################################################
$1 = 32 ' '
Continuing.
### Output/messages #####################################################################################################################
halted: PC: 0x0800126a
Breakpoint 1, HAL_UART_RxCpltCallback (huart=0x20000a60 <huart1>) at Core/Src/main.c:396
396 {
### Assembly ############################################################################################################################
~
~
~
~
~
!0x08001268 HAL_UART_RxCpltCallback+0 push {r3, r4, r5, lr}
0x0800126a HAL_UART_RxCpltCallback+2 ldr r3, [pc, #68] ; (0x80012b0 <HAL_UART_RxCpltCallback+72>)
0x0800126c HAL_UART_RxCpltCallback+4 cmp r0, r3
0x0800126e HAL_UART_RxCpltCallback+6 beq.n 0x8001278 <HAL_UART_RxCpltCallback+16>
0x08001270 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012b4 <HAL_UART_RxCpltCallback+76>)
### Breakpoints #########################################################################################################################
[1] break at 0x08001268 in Core/Src/main.c:396 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 2 times
### Expressions #########################################################################################################################
### History #############################################################################################################################
$$0 = 32 ' '
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000a60 r4 0x20000a60 r8 0x00000000 r12 0x00001000 xPSR 0x81000035 primask 0x00
r1 0x00000000 r5 0x00000002 r9 0x00000000 sp 0x2000ff68 fpscr 0x20000010 basepri 0x00
r2 0x40013808 r6 0x00000000 r10 0x00000000 lr 0x08003847 msp 0x2000ff68 faultmask 0x00
r3 0x00000000 r7 0x00000000 r11 0x00000000 pc 0x08001268 psp 0x00000000 control 0x00
### Source ##############################################################################################################################
386 GPIO_InitStruct.Pin = m1_dir_Pin|m2_dir_Pin;
387 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
388 GPIO_InitStruct.Pull = GPIO_NOPULL;
389 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
390 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
391
392 }
393
394 /* USER CODE BEGIN 4 */
395 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
!396 {
397 if (huart == &huart1)
398 {
399 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
401 }
402 else if (huart == &huart2)
403 {
404 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
405 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
### Stack ###############################################################################################################################
[0] from 0x08001268 in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:396
[1] from 0x08003846 in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x080035ca in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[3] from 0x0800163c in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x080015ce in main+138 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x08001268 in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:396
### Variables ###########################################################################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
#########################################################################################################################################
$2 = 184 '\270'
$3 = 184 '\270'
Continuing.
### Output/messages #####################################################################################################################
halted: PC: 0x0800126a
Breakpoint 1, HAL_UART_RxCpltCallback (huart=0x20000a60 <huart1>) at Core/Src/main.c:396
396 {
### Assembly ############################################################################################################################
~
~
~
~
~
!0x08001268 HAL_UART_RxCpltCallback+0 push {r3, r4, r5, lr}
0x0800126a HAL_UART_RxCpltCallback+2 ldr r3, [pc, #68] ; (0x80012b0 <HAL_UART_RxCpltCallback+72>)
0x0800126c HAL_UART_RxCpltCallback+4 cmp r0, r3
0x0800126e HAL_UART_RxCpltCallback+6 beq.n 0x8001278 <HAL_UART_RxCpltCallback+16>
0x08001270 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012b4 <HAL_UART_RxCpltCallback+76>)
### Breakpoints #########################################################################################################################
[1] break at 0x08001268 in Core/Src/main.c:396 for /storage/Shared/Projects/Penguinator/motor_controller/Core/Src/main.c:392 hit 3 times
### Expressions #########################################################################################################################
### History #############################################################################################################################
$$2 = 32 ' '
$$1 = 184 '\270'
$$0 = 184 '\270'
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000a60 r4 0x20000a60 r8 0x00000000 r12 0x00001000 xPSR 0x81000035 primask 0x00
r1 0x00000000 r5 0x00000002 r9 0x00000000 sp 0x2000ff68 fpscr 0x20000010 basepri 0x00
r2 0x40013808 r6 0x00000000 r10 0x00000000 lr 0x08003847 msp 0x2000ff68 faultmask 0x00
r3 0x00000000 r7 0x00000000 r11 0x00000000 pc 0x08001268 psp 0x00000000 control 0x00
### Source ##############################################################################################################################
386 GPIO_InitStruct.Pin = m1_dir_Pin|m2_dir_Pin;
387 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
388 GPIO_InitStruct.Pull = GPIO_NOPULL;
389 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
390 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
391
392 }
393
394 /* USER CODE BEGIN 4 */
395 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
!396 {
397 if (huart == &huart1)
398 {
399 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
401 }
402 else if (huart == &huart2)
403 {
404 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
405 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
### Stack ###############################################################################################################################
[0] from 0x08001268 in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:396
[1] from 0x08003846 in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x080035ca in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[3] from 0x0800163c in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x080015ce in main+138 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x08001268 in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:396
### Variables ###########################################################################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
#########################################################################################################################################
$4 = 52 '4'
Quit
Detaching from program: /storage/Shared/Projects/Penguinator/motor_controller/build/motor_controller.elf, Remote target
[Inferior 1 (Remote target) detached]
HAL_UART_RxCpltCallback (huart=0x20000a60 <huart1>) at Core/Src/main.c:396
396 {
### Assembly ############################################################################################################################
~
~
~
~
~
0x08001268 HAL_UART_RxCpltCallback+0 push {r3, r4, r5, lr}
0x0800126a HAL_UART_RxCpltCallback+2 ldr r3, [pc, #68] ; (0x80012b0 <HAL_UART_RxCpltCallback+72>)
0x0800126c HAL_UART_RxCpltCallback+4 cmp r0, r3
0x0800126e HAL_UART_RxCpltCallback+6 beq.n 0x8001278 <HAL_UART_RxCpltCallback+16>
0x08001270 HAL_UART_RxCpltCallback+8 ldr r3, [pc, #64] ; (0x80012b4 <HAL_UART_RxCpltCallback+76>)
### Breakpoints #########################################################################################################################
### Expressions #########################################################################################################################
### History #############################################################################################################################
### Memory ##############################################################################################################################
### Registers ###########################################################################################################################
r0 0x20000a60 r4 0x20000a60 r8 0x00000000 r12 0x00001000 xPSR 0x81000035 primask 0x00
r1 0x00000000 r5 0x00000002 r9 0x00000000 sp 0x2000ff68 fpscr 0x20000010 basepri 0x00
r2 0x40013808 r6 0x00000000 r10 0x00000000 lr 0x08003847 msp 0x2000ff68 faultmask 0x00
r3 0x00000000 r7 0x00000000 r11 0x00000000 pc 0x08001268 psp 0x00000000 control 0x00
### Source ##############################################################################################################################
386 GPIO_InitStruct.Pin = m1_dir_Pin|m2_dir_Pin;
387 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
388 GPIO_InitStruct.Pull = GPIO_NOPULL;
389 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
390 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
391
392 }
393
394 /* USER CODE BEGIN 4 */
395 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
396 {
397 if (huart == &huart1)
398 {
399 HAL_UART_Transmit(&huart2, &huart1_rxc, 1, 100);
400 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
401 }
402 else if (huart == &huart2)
403 {
404 HAL_UART_Transmit(&huart2, &huart2_rxc, 1, 100);
405 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
### Stack ###############################################################################################################################
[0] from 0x08001268 in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:396
[1] from 0x08003846 in UART_RxISR_8BIT+174 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:4433
[2] from 0x080035ca in HAL_UART_IRQHandler+278 at Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c:2427
[3] from 0x0800163c in USART1_IRQHandler+8 at Core/Src/stm32l4xx_it.c:211
[4] from 0xffffffe9
[5] from 0x080015ce in main+138 at Core/Src/main.c:133
### Threads #############################################################################################################################
[1] id 0 from 0x08001268 in HAL_UART_RxCpltCallback+0 at Core/Src/main.c:396
### Variables ###########################################################################################################################
arg huart = 0x20000a60 <huart1>: {Instance = 0x40013800,Init = {BaudRate = 115200,WordLength = 0,StopBi…
#########################################################################################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8b8 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa78
Loading section .ARM, size 0x8 lma 0x800b0c0
Loading section .init_array, size 0x8 lma 0x800b0c8
Loading section .fini_array, size 0x8 lma 0x800b0d0
Loading section .data, size 0x9a8 lma 0x800b0d8
Start address 0x08004198, load size 47696
Transfer rate: 30 KB/sec, 5299 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]
0x080015c8 in main () at Core/Src/main.c:125
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
### Assembly ##################################################################
0x080015bc main+116 movs r2, #1
0x080015be main+118 ldr r1, [pc, #76] ; (0x800160c <main+196>)
0x080015c0 main+120 ldr r0, [pc, #76] ; (0x8001610 <main+200>)
0x080015c2 main+122 bl 0x8003f74 <HAL_UART_Init+10>
0x080015c6 main+126 movs r4, #0
0x080015c8 main+128 ldr r3, [pc, #72] ; (0x8001614 <main+204>)
0x080015ca main+130 ldrb r3, [r3, #0]
0x080015cc main+132 cmp r3, #0
0x080015ce main+134 beq.n 0x80015c8 <main+128>
0x080015d0 main+136 ldr r3, [pc, #64] ; (0x8001614 <main+204>)
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x00000137 r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x08002019 faultmask 0x00
r7 0x00000000 pc 0x080015c8 control 0x04
### Source ####################################################################
115 setPWM(&htim2, TIM_CHANNEL_4, 25);
116
117 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
118 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
119
120 mc_init(&htim2);
121 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
122 HAL_TIM_Base_Start_IT(&htim6);
123
124 HAL_GPIO_WritePin(USART1_DE_GPIO_Port, USART1_DE_Pin, 1);
125 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
126 uint16_t motor_degrees = 0;
127 /* USER CODE END 2 */
128
129 /* Infinite loop */
130 /* USER CODE BEGIN WHILE */
131 while (1)
132 {
133 if (b_timer_struck)
134 {
### Stack #####################################################################
[0] from 0x080015c8 in main+128 at Core/Src/main.c:125
### Threads ###################################################################
[1] id 0 from 0x080015c8 in main+128 at Core/Src/main.c:125
### Variables #################################################################
loc motor_degrees = <optimized out>
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa9e8 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aba8
Loading section .ARM, size 0x8 lma 0x800b1f0
Loading section .init_array, size 0x8 lma 0x800b1f8
Loading section .fini_array, size 0x8 lma 0x800b200
Loading section .data, size 0x9a8 lma 0x800b208
Start address 0x080042c8, load size 48000
Transfer rate: 30 KB/sec, 5333 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]
0x080015d0 in main () at Core/Src/main.c:136
136 motor_degrees = (motor_degrees + 1) % 360;
### Assembly ##################################################################
0x080015c4 main+124 ldr r0, [pc, #76] ; (0x8001614 <MemManage_Handler>)
0x080015c6 main+126 bl 0x80040a4 <HAL_UART_Receive_IT+16>
0x080015ca main+130 movs r4, #0
0x080015cc main+132 ldr r3, [pc, #72] ; (0x8001618 <UsageFault_Handler>)
0x080015ce main+134 ldrb r3, [r3, #0]
0x080015d0 main+136 cmp r3, #0
0x080015d2 main+138 beq.n 0x80015cc <main+132>
0x080015d4 main+140 ldr r3, [pc, #64] ; (0x8001618 <UsageFault_Handler>)
0x080015d6 main+142 movs r2, #0
0x080015d8 main+144 strb r2, [r3, #0]
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x80000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x00000096 r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800201d faultmask 0x00
r7 0x00000000 pc 0x080015d0 control 0x04
### Source ####################################################################
126 /* USER CODE END 2 */
127
128 /* Infinite loop */
129 /* USER CODE BEGIN WHILE */
130 while (1)
131 {
132 if (b_timer_struck)
133 {
134 // PDEBUG("%d\n", sys_time);
135 b_timer_struck = false;
136 motor_degrees = (motor_degrees + 1) % 360;
137 mc_service(motor_degrees, 50);
138 }
139 /* USER CODE END WHILE */
140
141 /* USER CODE BEGIN 3 */
142 }
143 /* USER CODE END 3 */
144 }
145
### Stack #####################################################################
[0] from 0x080015d0 in main+136 at Core/Src/main.c:136
### Threads ###################################################################
[1] id 0 from 0x080015d0 in main+136 at Core/Src/main.c:136
### Variables #################################################################
loc motor_degrees = 150
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa9d8 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800ab98
Loading section .ARM, size 0x8 lma 0x800b1e0
Loading section .init_array, size 0x8 lma 0x800b1e8
Loading section .fini_array, size 0x8 lma 0x800b1f0
Loading section .data, size 0x9a8 lma 0x800b1f8
Start address 0x080042b8, load size 47984
Transfer rate: 30 KB/sec, 5331 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]
0x080015c0 in main () at Core/Src/main.c:121
121 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
### Assembly ##################################################################
0x080015b4 main+80 ldr r1, [pc, #72] ; (0x8001600 <main+156>)
0x080015b6 main+82 ldr r0, [pc, #76] ; (0x8001604 <main+160>)
0x080015b8 main+84 bl 0x8004094 <UART_Start_Receive_IT+188>
0x080015bc main+88 movs r4, #0
0x080015be main+90 ldr r3, [pc, #72] ; (0x8001608 <main+164>)
0x080015c0 main+92 ldrb r3, [r3, #0]
0x080015c2 main+94 cmp r3, #0
0x080015c4 main+96 beq.n 0x80015be <main+90>
0x080015c6 main+98 ldr r3, [pc, #64] ; (0x8001608 <main+164>)
0x080015c8 main+100 movs r2, #0
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x80000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x200009c4 r11 0x00000000 psp 0x00000000
r4 0x000000a6 r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800200d faultmask 0x00
r7 0x00000000 pc 0x080015c0 control 0x04
### Source ####################################################################
111
112 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
113 // HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4);
114 setPWM(&htim2, TIM_CHANNEL_2, 50);
115 setPWM(&htim2, TIM_CHANNEL_4, 25);
116
117 HAL_GPIO_WritePin(m1_dir_GPIO_Port, m1_dir_Pin, 1);
118 HAL_GPIO_WritePin(m2_dir_GPIO_Port, m2_dir_Pin, 1);
119
120 mc_init(&htim2);
121 HAL_UART_Receive_IT(&huart2, &huart2_rxc, 1);
122 HAL_TIM_Base_Start_IT(&htim6);
123
124 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
125 uint16_t motor_degrees = 0;
126 /* USER CODE END 2 */
127
128 /* Infinite loop */
129 /* USER CODE BEGIN WHILE */
130 while (1)
### Stack #####################################################################
[0] from 0x080015c0 in main+92 at Core/Src/main.c:121
### Threads ###################################################################
[1] id 0 from 0x080015c0 in main+92 at Core/Src/main.c:121
### Variables #################################################################
loc motor_degrees = <optimized out>
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa9f8 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800abb8
Loading section .ARM, size 0x8 lma 0x800b200
Loading section .init_array, size 0x8 lma 0x800b208
Loading section .fini_array, size 0x8 lma 0x800b210
Loading section .data, size 0x9a8 lma 0x800b218
Start address 0x080042d8, load size 48016
Transfer rate: 30 KB/sec, 5335 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]
main () at Core/Src/main.c:132
132 if (b_timer_struck)
### Assembly ##################################################################
0x080015ce main+106 movs r2, #1
0x080015d0 main+108 ldr r1, [pc, #72] ; (0x800161c <main+184>)
0x080015d2 main+110 ldr r0, [pc, #76] ; (0x8001620 <main+188>)
0x080015d4 main+112 bl 0x80040b0 <p_printf+56>
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>)
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x0000000e r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x08002029 faultmask 0x00
r7 0x00000000 pc 0x080015da control 0x04
### Source ####################################################################
122 HAL_TIM_Base_Start_IT(&htim6);
123
124 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
125 uint16_t motor_degrees = 0;
126 /* USER CODE END 2 */
127
128 /* Infinite loop */
129 /* USER CODE BEGIN WHILE */
130 while (1)
131 {
132 if (b_timer_struck)
133 {
134 // PDEBUG("%d\n", sys_time);
135 b_timer_struck = false;
136 motor_degrees = (motor_degrees + 1) % 360;
137 mc_service(motor_degrees, 50);
138 }
139 /* USER CODE END WHILE */
140
141 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015da in main+118 at Core/Src/main.c:132
### Threads ###################################################################
[1] id 0 from 0x080015da in main+118 at Core/Src/main.c:132
### Variables #################################################################
loc motor_degrees = 14
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8c8 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa88
Loading section .ARM, size 0x8 lma 0x800b0d0
Loading section .init_array, size 0x8 lma 0x800b0d8
Loading section .fini_array, size 0x8 lma 0x800b0e0
Loading section .data, size 0x9a8 lma 0x800b0e8
Start address 0x080041a8, load size 47712
Transfer rate: 30 KB/sec, 5301 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]
0x080015e0 in main () at Core/Src/main.c:132
132 if (b_timer_struck)
### Assembly ##################################################################
0x080015d4 main+108 bl 0x8003f84 <UART_Start_Receive_IT+212>
0x080015d8 main+112 movs r4, #0
0x080015da main+114 ldr r3, [pc, #72] ; (0x8001624 <main+188>)
0x080015dc main+116 ldrb r3, [r3, #0]
0x080015de main+118 cmp r3, #0
0x080015e0 main+120 beq.n 0x80015da <main+114>
0x080015e2 main+122 ldr r3, [pc, #64] ; (0x8001624 <main+188>)
0x080015e4 main+124 movs r2, #0
0x080015e6 main+126 strb r2, [r3, #0]
0x080015e8 main+128 adds r3, r4, #1
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x80000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x000000df r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x08002029 faultmask 0x00
r7 0x00000000 pc 0x080015e0 control 0x04
### Source ####################################################################
122 HAL_TIM_Base_Start_IT(&htim6);
123
124 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
125 uint16_t motor_degrees = 0;
126 /* USER CODE END 2 */
127
128 /* Infinite loop */
129 /* USER CODE BEGIN WHILE */
130 while (1)
131 {
132 if (b_timer_struck)
133 {
134 // PDEBUG("%d\n", sys_time);
135 b_timer_struck = false;
136 motor_degrees = (motor_degrees + 1) % 360;
137 mc_service(motor_degrees, 50);
138 }
139 /* USER CODE END WHILE */
140
141 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015e0 in main+120 at Core/Src/main.c:132
### Threads ###################################################################
[1] id 0 from 0x080015e0 in main+120 at Core/Src/main.c:132
### Variables #################################################################
loc motor_degrees = 223
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8d0 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa90
Loading section .ARM, size 0x8 lma 0x800b0d8
Loading section .init_array, size 0x8 lma 0x800b0e0
Loading section .fini_array, size 0x8 lma 0x800b0e8
Loading section .data, size 0x9a8 lma 0x800b0f0
Start address 0x080041b0, load size 47720
Transfer rate: 30 KB/sec, 5302 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]
0x080015de in main () at Core/Src/main.c:132
132 if (b_timer_struck)
### Assembly ##################################################################
0x080015d2 main+110 movs r2, #1
0x080015d4 main+112 ldr r1, [pc, #72] ; (0x8001620 <main+188>)
0x080015d6 main+114 ldr r0, [pc, #76] ; (0x8001624 <main+192>)
0x080015d8 main+116 bl 0x8003f88 <HAL_UART_Receive_IT+4>
0x080015dc main+120 movs r4, #0
0x080015de main+122 ldr r3, [pc, #72] ; (0x8001628 <main+196>)
0x080015e0 main+124 ldrb r3, [r3, #0]
0x080015e2 main+126 cmp r3, #0
0x080015e4 main+128 beq.n 0x80015de <main+122>
0x080015e6 main+130 ldr r3, [pc, #64] ; (0x8001628 <main+196>)
### Breakpoints ###############################################################
### Expressions ###############################################################
### History ###################################################################
### Memory ####################################################################
### Registers #################################################################
r0 0x00000000 r8 0x00000000 xPSR 0x61000000
r1 0x00000000 r9 0x00000000 fpscr 0x20000010
r2 0x00000001 r10 0x00000000 msp 0x2000fff0
r3 0x00000000 r11 0x00000000 psp 0x00000000
r4 0x00000122 r12 0x00001000 primask 0x00
r5 0x20000ae8 sp 0x2000fff0 basepri 0x00
r6 0x00000000 lr 0x0800202d faultmask 0x00
r7 0x00000000 pc 0x080015de control 0x04
### Source ####################################################################
122 HAL_TIM_Base_Start_IT(&htim6);
123
124 HAL_UART_Receive_IT(&huart1, &huart1_rxc, 1);
125 uint16_t motor_degrees = 0;
126 /* USER CODE END 2 */
127
128 /* Infinite loop */
129 /* USER CODE BEGIN WHILE */
130 while (1)
131 {
132 if (b_timer_struck)
133 {
134 // PDEBUG("%d\n", sys_time);
135 b_timer_struck = false;
136 motor_degrees = (motor_degrees + 1) % 360;
137 mc_service(motor_degrees, 50);
138 }
139 /* USER CODE END WHILE */
140
141 /* USER CODE BEGIN 3 */
### Stack #####################################################################
[0] from 0x080015de in main+122 at Core/Src/main.c:132
### Threads ###################################################################
[1] id 0 from 0x080015de in main+122 at Core/Src/main.c:132
### Variables #################################################################
loc motor_degrees = 290
###############################################################################
Loading section .isr_vector, size 0x190 lma 0x8000000
Loading section .text, size 0xa8c8 lma 0x80001c0
Loading section .rodata, size 0x648 lma 0x800aa88
Loading section .ARM, size 0x8 lma 0x800b0d0
Loading section .init_array, size 0x8 lma 0x800b0d8
Loading section .fini_array, size 0x8 lma 0x800b0e0
Loading section .data, size 0x9a8 lma 0x800b0e8
Start address 0x080041a8, load size 47712
Transfer rate: 30 KB/sec, 5301 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]