|
|
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
|
|
|
[H[J[3J### 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
|
|
|
[H[J[3J### 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
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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.
|
|
|
[H[J[3J### 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
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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.
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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.
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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 #######################################################################################################
|
|
|
#####################################################################################################################
|
|
|
[H[J[3J### 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
|
|
|
[H[J[3J### 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
|
|
|
[H[J[3J### 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]
|