[fix] code

This commit is contained in:
stijn
2021-04-06 15:47:50 +02:00
parent 6b6657fe5d
commit 45ee9dc411
14 changed files with 1949 additions and 1979 deletions

View File

@@ -61,6 +61,8 @@ Discarded input sections
0x00000000 0x8 lcd_control.o
.text.lcd_write_int
0x00000000 0xb6 lcd_control.o
.text.lcd_write_double
0x00000000 0xf2 lcd_control.o
.text 0x00000000 0x0 main.o
.data 0x00000000 0x0 main.o
.bss 0x00000000 0x0 main.o
@@ -296,7 +298,7 @@ END GROUP
.rela.plt
*(.rela.plt)
.text 0x00000000 0xd18
.text 0x00000000 0xce4
*(.vectors)
.vectors 0x00000000 0x8c C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.6.364/gcc/dev/atmega128/avr51/crtatmega128.o
0x00000000 __vector_default
@@ -414,112 +416,112 @@ END GROUP
.text.lcd_write_string
0x000001ae 0x18 lcd_control.o
0x000001ae lcd_write_string
.text.lcd_write_double
0x000001c6 0xec lcd_control.o
0x000001c6 lcd_write_double
.text.lcd_write_ultrasonic_value
0x000001c6 0xc4 lcd_control.o
0x000001c6 lcd_write_ultrasonic_value
.text.ultrasoon_value_set_event
0x000002b2 0x1e main.o
0x0000028a 0x1e main.o
.text.snap_event_trigger
0x000002d0 0x4 main.o
0x000002a8 0x4 main.o
.text.__vector_3
0x000002d4 0x4e main.o
0x000002d4 __vector_3
.text.main 0x00000322 0x42 main.o
0x00000322 main
0x000002ac 0x4e main.o
0x000002ac __vector_3
.text.main 0x000002fa 0x36 main.o
0x000002fa main
.text.set_stepper_state
0x00000364 0x24 stepper_driver.o
0x00000364 set_stepper_state
0x00000330 0x24 stepper_driver.o
0x00000330 set_stepper_state
.text.set_snap_event
0x00000388 0xa stepper_driver.o
0x00000388 set_snap_event
0x00000354 0xa stepper_driver.o
0x00000354 set_snap_event
.text.__vector_9
0x00000392 0xc4 stepper_driver.o
0x00000392 __vector_9
0x0000035e 0xc4 stepper_driver.o
0x0000035e __vector_9
.text.stepper_rotate_angle
0x00000456 0x1a stepper_driver.o
0x00000456 stepper_rotate_angle
0x00000422 0x1a stepper_driver.o
0x00000422 stepper_rotate_angle
.text.stepper_rotate_stop
0x00000470 0x4 stepper_driver.o
0x00000470 stepper_rotate_stop
0x0000043c 0x4 stepper_driver.o
0x0000043c stepper_rotate_stop
.text.init_stepper_driver
0x00000474 0x1c stepper_driver.o
0x00000474 init_stepper_driver
.text.wait_us 0x00000490 0x1a ultrasonic_sensor.o
0x00000490 wait_us
.text.wait_ms 0x000004aa 0x1e ultrasonic_sensor.o
0x000004aa wait_ms
0x00000440 0x1c stepper_driver.o
0x00000440 init_stepper_driver
.text.wait_us 0x0000045c 0x1a ultrasonic_sensor.o
0x0000045c wait_us
.text.wait_ms 0x00000476 0x1e ultrasonic_sensor.o
0x00000476 wait_ms
.text.ultrasonic_init
0x000004c8 0x1e ultrasonic_sensor.o
0x000004c8 ultrasonic_init
0x00000494 0x1e ultrasonic_sensor.o
0x00000494 ultrasonic_init
.text.ultrasonic_send_pulse
0x000004e6 0x1a ultrasonic_sensor.o
0x000004e6 ultrasonic_send_pulse
0x000004b2 0x1a ultrasonic_sensor.o
0x000004b2 ultrasonic_send_pulse
.text.ultrasonic_handle_interrupt
0x00000500 0x3c ultrasonic_sensor.o
0x00000500 ultrasonic_handle_interrupt
0x000004cc 0x3c ultrasonic_sensor.o
0x000004cc ultrasonic_handle_interrupt
.text.set_value_trigger_event
0x0000053c 0xa ultrasonic_sensor.o
0x0000053c set_value_trigger_event
0x00000508 0xa ultrasonic_sensor.o
0x00000508 set_value_trigger_event
.text.ultrasonic_get_timer_dist
0x00000546 0x1a ultrasonic_sensor.o
0x00000546 ultrasonic_get_timer_dist
0x00000512 0x1a ultrasonic_sensor.o
0x00000512 ultrasonic_get_timer_dist
.text.avr-libc.fplib
0x00000560 0x7a c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(floatsisf.o)
0x00000560 __floatunsisf
0x00000564 __floatsisf
0x0000052c 0x7a c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(floatsisf.o)
0x0000052c __floatunsisf
0x00000530 __floatsisf
.text.avr-libc.fplib
0x000005da 0x4 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(mulsf3.o)
0x000005da __mulsf3
0x000005a6 0x4 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(mulsf3.o)
0x000005a6 __mulsf3
.text.avr-libc.fplib
0x000005de 0xc2 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(mulsf3x.o)
0x000005f2 __mulsf3x
0x000005f6 __mulsf3_pse
0x000005aa 0xc2 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(mulsf3x.o)
0x000005be __mulsf3x
0x000005c2 __mulsf3_pse
.text.avr-libc.fplib
0x000006a0 0xc c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_inf.o)
0x000006a0 __fp_inf
0x0000066c 0xc c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_inf.o)
0x0000066c __fp_inf
.text.avr-libc.fplib
0x000006ac 0x6 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_nan.o)
0x000006ac __fp_nan
0x00000678 0x6 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_nan.o)
0x00000678 __fp_nan
.text.avr-libc.fplib
0x000006b2 0xe c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_pscA.o)
0x000006b2 __fp_pscA
0x0000067e 0xe c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_pscA.o)
0x0000067e __fp_pscA
.text.avr-libc.fplib
0x000006c0 0xe c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_pscB.o)
0x000006c0 __fp_pscB
0x0000068c 0xe c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_pscB.o)
0x0000068c __fp_pscB
.text.avr-libc.fplib
0x000006ce 0x22 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_round.o)
0x000006ce __fp_round
0x0000069a 0x22 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_round.o)
0x0000069a __fp_round
.text.avr-libc.fplib
0x000006f0 0x44 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_split3.o)
0x000006f0 __fp_split3
0x00000700 __fp_splitA
0x000006bc 0x44 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_split3.o)
0x000006bc __fp_split3
0x000006cc __fp_splitA
.text.avr-libc.fplib
0x00000734 0xe c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_zero.o)
0x00000734 __fp_zero
0x00000736 __fp_szero
0x00000700 0xe c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libm.a(fp_zero.o)
0x00000700 __fp_zero
0x00000702 __fp_szero
.text.avr-libc
0x00000742 0x78 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(snprintf.o)
0x00000742 snprintf
0x0000070e 0x78 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(snprintf.o)
0x0000070e snprintf
.text.avr-libc
0x000007ba 0x3fa c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(vfprintf_std.o)
0x000007ba vfprintf
0x00000786 0x3fa c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(vfprintf_std.o)
0x00000786 vfprintf
.text.avr-libc
0x00000bb4 0x16 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(strnlen_P.o)
0x00000bb4 strnlen_P
0x00000b80 0x16 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(strnlen_P.o)
0x00000b80 strnlen_P
.text.avr-libc
0x00000bca 0x16 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(strnlen.o)
0x00000bca strnlen
0x00000b96 0x16 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(strnlen.o)
0x00000b96 strnlen
.text.avr-libc
0x00000be0 0x78 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(fputc.o)
0x00000be0 fputc
0x00000bac 0x78 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(fputc.o)
0x00000bac fputc
.text.avr-libc
0x00000c58 0xbc c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(ultoa_invert.o)
0x00000c58 __ultoa_invert
0x00000d14 . = ALIGN (0x2)
0x00000c24 0xbc c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/../../../../avr/lib/avr51\libc.a(ultoa_invert.o)
0x00000c24 __ultoa_invert
0x00000ce0 . = ALIGN (0x2)
*(.fini9)
.fini9 0x00000d14 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/avr51\libgcc.a(_exit.o)
0x00000d14 _exit
0x00000d14 exit
.fini9 0x00000ce0 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/avr51\libgcc.a(_exit.o)
0x00000ce0 _exit
0x00000ce0 exit
*(.fini9)
*(.fini8)
*(.fini8)
@@ -538,11 +540,11 @@ END GROUP
*(.fini1)
*(.fini1)
*(.fini0)
.fini0 0x00000d14 0x4 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/avr51\libgcc.a(_exit.o)
.fini0 0x00000ce0 0x4 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/5.4.0/avr51\libgcc.a(_exit.o)
*(.fini0)
0x00000d18 _etext = .
0x00000ce4 _etext = .
.data 0x00800100 0x2a load address 0x00000d18
.data 0x00800100 0x2a load address 0x00000ce4
0x00800100 PROVIDE (__data_start, .)
*(.data)
*(.data*)
@@ -559,9 +561,7 @@ END GROUP
*(.rodata)
*(.rodata*)
.rodata.str1.1
0x00800112 0xf lcd_control.o
.rodata.str1.1
0x00800121 0x8 main.o
0x00800112 0x17 lcd_control.o
*(.gnu.linkonce.r*)
0x0080012a . = ALIGN (0x2)
*fill* 0x00800129 0x1
@@ -590,8 +590,8 @@ END GROUP
COMMON 0x00800134 0x2 ultrasonic_sensor.o
0x00800134 value_set_event
0x00800136 PROVIDE (__bss_end, .)
0x00000d18 __data_load_start = LOADADDR (.data)
0x00000d42 __data_load_end = (__data_load_start + SIZEOF (.data))
0x00000ce4 __data_load_start = LOADADDR (.data)
0x00000d0e __data_load_end = (__data_load_start + SIZEOF (.data))
.noinit 0x00800136 0x0
[!provide] PROVIDE (__noinit_start, .)
@@ -669,27 +669,27 @@ END GROUP
.debug_sfnames
*(.debug_sfnames)
.debug_aranges 0x00000000 0x150
.debug_aranges 0x00000000 0x158
*(.debug_aranges)
.debug_aranges
0x00000000 0x80 lcd_control.o
0x00000000 0x88 lcd_control.o
.debug_aranges
0x00000080 0x38 main.o
0x00000088 0x38 main.o
.debug_aranges
0x000000b8 0x48 stepper_driver.o
0x000000c0 0x48 stepper_driver.o
.debug_aranges
0x00000100 0x50 ultrasonic_sensor.o
0x00000108 0x50 ultrasonic_sensor.o
.debug_pubnames
*(.debug_pubnames)
.debug_info 0x00000000 0x15dc
.debug_info 0x00000000 0x163c
*(.debug_info .gnu.linkonce.wi.*)
.debug_info 0x00000000 0x780 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.6.364/gcc/dev/atmega128/avr51/crtatmega128.o
.debug_info 0x00000780 0x5c0 lcd_control.o
.debug_info 0x00000d40 0x387 main.o
.debug_info 0x000010c7 0x21e stepper_driver.o
.debug_info 0x000012e5 0x2f7 ultrasonic_sensor.o
.debug_info 0x00000780 0x641 lcd_control.o
.debug_info 0x00000dc1 0x366 main.o
.debug_info 0x00001127 0x21e stepper_driver.o
.debug_info 0x00001345 0x2f7 ultrasonic_sensor.o
.debug_abbrev 0x00000000 0xd50
*(.debug_abbrev)
@@ -699,39 +699,39 @@ END GROUP
.debug_abbrev 0x00000a64 0x122 stepper_driver.o
.debug_abbrev 0x00000b86 0x1ca ultrasonic_sensor.o
.debug_line 0x00000000 0xae5
.debug_line 0x00000000 0xb1a
*(.debug_line .debug_line.* .debug_line_end)
.debug_line 0x00000000 0x16a C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.6.364/gcc/dev/atmega128/avr51/crtatmega128.o
.debug_line 0x0000016a 0x37c lcd_control.o
.debug_line 0x000004e6 0x1f1 main.o
.debug_line 0x000006d7 0x1c6 stepper_driver.o
.debug_line 0x0000089d 0x248 ultrasonic_sensor.o
.debug_line 0x0000016a 0x3b1 lcd_control.o
.debug_line 0x0000051b 0x1f1 main.o
.debug_line 0x0000070c 0x1c6 stepper_driver.o
.debug_line 0x000008d2 0x248 ultrasonic_sensor.o
.debug_frame 0x00000000 0x37c
.debug_frame 0x00000000 0x3cc
*(.debug_frame)
.debug_frame 0x00000000 0x194 lcd_control.o
.debug_frame 0x00000194 0x9c main.o
.debug_frame 0x00000230 0xbc stepper_driver.o
.debug_frame 0x000002ec 0x90 ultrasonic_sensor.o
.debug_frame 0x00000000 0x1e4 lcd_control.o
.debug_frame 0x000001e4 0x9c main.o
.debug_frame 0x00000280 0xbc stepper_driver.o
.debug_frame 0x0000033c 0x90 ultrasonic_sensor.o
.debug_str 0x00000000 0x772
.debug_str 0x00000000 0x787
*(.debug_str)
.debug_str 0x00000000 0x27d C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.6.364/gcc/dev/atmega128/avr51/crtatmega128.o
.debug_str 0x0000027d 0x2b3 lcd_control.o
0x2f3 (size before relaxing)
.debug_str 0x00000530 0x15b main.o
0x374 (size before relaxing)
.debug_str 0x0000068b 0x68 stepper_driver.o
.debug_str 0x0000027d 0x2ce lcd_control.o
0x30e (size before relaxing)
.debug_str 0x0000054b 0x155 main.o
0x37e (size before relaxing)
.debug_str 0x000006a0 0x68 stepper_driver.o
0x2af (size before relaxing)
.debug_str 0x000006f3 0x7f ultrasonic_sensor.o
.debug_str 0x00000708 0x7f ultrasonic_sensor.o
0x309 (size before relaxing)
.debug_loc 0x00000000 0x831
.debug_loc 0x00000000 0x956
*(.debug_loc)
.debug_loc 0x00000000 0x48f lcd_control.o
.debug_loc 0x0000048f 0x167 main.o
.debug_loc 0x000005f6 0x13a stepper_driver.o
.debug_loc 0x00000730 0x101 ultrasonic_sensor.o
.debug_loc 0x00000000 0x5b4 lcd_control.o
.debug_loc 0x000005b4 0x167 main.o
.debug_loc 0x0000071b 0x13a stepper_driver.o
.debug_loc 0x00000855 0x101 ultrasonic_sensor.o
.debug_macinfo
*(.debug_macinfo)
@@ -751,12 +751,12 @@ END GROUP
.debug_pubtypes
*(.debug_pubtypes)
.debug_ranges 0x00000000 0x110
.debug_ranges 0x00000000 0x118
*(.debug_ranges)
.debug_ranges 0x00000000 0x70 lcd_control.o
.debug_ranges 0x00000070 0x28 main.o
.debug_ranges 0x00000098 0x38 stepper_driver.o
.debug_ranges 0x000000d0 0x40 ultrasonic_sensor.o
.debug_ranges 0x00000000 0x78 lcd_control.o
.debug_ranges 0x00000078 0x28 main.o
.debug_ranges 0x000000a0 0x38 stepper_driver.o
.debug_ranges 0x000000d8 0x40 ultrasonic_sensor.o
.debug_macro
*(.debug_macro)