implemented BF_exec_cmd_simple() and BF_exec_cmd_with_arr() functions

This commit is contained in:
2025-07-01 17:35:48 +03:00
parent d3d10dabaf
commit 9d2fb6760b
6 changed files with 1555 additions and 1455 deletions

View File

@ -223,7 +223,7 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.iplt
*(.iplt)
.text 0x00000000ffa00090 0x3270
.text 0x00000000ffa00090 0x3230
*(.text.unlikely .text.*_unlikely)
*(.text.exit .text.exit.*)
*(.text.startup .text.startup.*)
@ -295,30 +295,30 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
0x00000000ffa02634 _streams_start
.text 0x00000000ffa02840 0x728 build/release/objs/l502_tests.o
0x00000000ffa02840 _l502_cmd_test
.text 0x00000000ffa02f68 0x128 build/release/objs/l502_user_process.o
.text 0x00000000ffa02f68 0x104 build/release/objs/l502_user_process.o
0x00000000ffa02f68 _usr_cmd_process
0x00000000ffa03004 _sport_tx_done
0x00000000ffa03014 _hdma_send_done
0x00000000ffa03024 _usr_out_proc_data
0x00000000ffa0305c _usr_in_proc_data
.text 0x00000000ffa03090 0x14 build/release/objs/main.o
0x00000000ffa03090 _main
.text 0x00000000ffa030a4 0x9c /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/libgcc.a(_udivsi3.o)
0x00000000ffa030a4 ___udivsi3
.text 0x00000000ffa03140 0xd4 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
0x00000000ffa03140 _memmove
.text 0x00000000ffa03214 0xb8 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
0x00000000ffa03214 _memset
0x00000000ffa02fe0 _sport_tx_done
0x00000000ffa02ff0 _hdma_send_done
0x00000000ffa03000 _usr_out_proc_data
0x00000000ffa03038 _usr_in_proc_data
.text 0x00000000ffa0306c 0x14 build/release/objs/main.o
0x00000000ffa0306c _main
.text 0x00000000ffa03080 0x9c /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/libgcc.a(_udivsi3.o)
0x00000000ffa03080 ___udivsi3
.text 0x00000000ffa0311c 0xd4 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
0x00000000ffa0311c _memmove
.text 0x00000000ffa031f0 0xb8 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
0x00000000ffa031f0 _memset
*(.gnu.warning)
0x00000000ffa03300 . = ALIGN (0x40)
*fill* 0x00000000ffa032cc 0x34 00
0x00000000ffa032c0 . = ALIGN (0x40)
*fill* 0x00000000ffa032a8 0x18 00
.fini
*(.fini)
0x00000000ffa03300 . = ALIGN (0x40)
0x00000000ffa03300 PROVIDE (___etext, .)
0x00000000ffa03300 PROVIDE (__etext, .)
0x00000000ffa03300 PROVIDE (_etext, .)
0x00000000ffa032c0 . = ALIGN (0x40)
0x00000000ffa032c0 PROVIDE (___etext, .)
0x00000000ffa032c0 PROVIDE (__etext, .)
0x00000000ffa032c0 PROVIDE (_etext, .)
.board_state 0x00000000ff800000 0x2004
0x00000000ff800000 _startfix_sect = .
@ -328,12 +328,11 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
0x00000000ff802004 . = (_startfix_sect + 0x2004)
*fill* 0x00000000ff801810 0x7f4 00
.rodata 0x00000000ff802004 0x354
.rodata 0x00000000ff802004 0x2ec
*(.rodata .rodata.* .gnu.linkonce.r.*)
.rodata 0x00000000ff802004 0x2b8 build/release/objs/l502_cmd.o
.rodata 0x00000000ff8022bc 0x4 build/release/objs/l502_stream.o
.rodata 0x00000000ff8022c0 0x30 build/release/objs/l502_tests.o
.rodata 0x00000000ff8022f0 0x68 build/release/objs/l502_user_process.o
.rodata1
*(.rodata1)
@ -352,7 +351,7 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.gcc_except_table
*(.gcc_except_table .gcc_except_table.*)
0x00000000ff803358 . = (ALIGN (0x1000) + (. & 0xfff))
0x00000000ff8032f0 . = (ALIGN (0x1000) + (. & 0xfff))
.eh_frame
*(.eh_frame)
@ -367,22 +366,22 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
*(.tbss .tbss.* .gnu.linkonce.tb.*)
*(.tcommon)
.preinit_array 0x00000000ff803358 0x0
0x00000000ff803358 PROVIDE (___preinit_array_start, .)
.preinit_array 0x00000000ff8032f0 0x0
0x00000000ff8032f0 PROVIDE (___preinit_array_start, .)
*(.preinit_array)
0x00000000ff803358 PROVIDE (___preinit_array_end, .)
0x00000000ff8032f0 PROVIDE (___preinit_array_end, .)
.init_array 0x00000000ff803358 0x0
0x00000000ff803358 PROVIDE (___init_array_start, .)
.init_array 0x00000000ff8032f0 0x0
0x00000000ff8032f0 PROVIDE (___init_array_start, .)
*(SORT(.init_array.*))
*(.init_array)
0x00000000ff803358 PROVIDE (___init_array_end, .)
0x00000000ff8032f0 PROVIDE (___init_array_end, .)
.fini_array 0x00000000ff803358 0x0
0x00000000ff803358 PROVIDE (___fini_array_start, .)
.fini_array 0x00000000ff8032f0 0x0
0x00000000ff8032f0 PROVIDE (___fini_array_start, .)
*(SORT(.fini_array.*))
*(.fini_array)
0x00000000ff803358 PROVIDE (___fini_array_end, .)
0x00000000ff8032f0 PROVIDE (___fini_array_end, .)
.ctors
*crtbegin.o(.ctors)
@ -408,16 +407,16 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.dynamic
*(.dynamic)
.data 0x00000000ff802358 0x868
.data 0x00000000ff8022f0 0x850
*(.data .data.* .gnu.linkonce.d.*)
.data 0x00000000ff802358 0x4 build/release/objs/l502_async.o
.data 0x00000000ff80235c 0x818 build/release/objs/l502_params.o
0x00000000ff80235c _g_set
.data 0x00000000ff802b74 0xc build/release/objs/l502_stream.o
0x00000000ff802b74 _g_streams
.data 0x00000000ff802b80 0x4 build/release/objs/l502_tests.o
0x00000000ff802bc0 . = ALIGN (0x40)
*fill* 0x00000000ff802b84 0x3c 00
.data 0x00000000ff8022f0 0x4 build/release/objs/l502_async.o
.data 0x00000000ff8022f4 0x818 build/release/objs/l502_params.o
0x00000000ff8022f4 _g_set
.data 0x00000000ff802b0c 0xc build/release/objs/l502_stream.o
0x00000000ff802b0c _g_streams
.data 0x00000000ff802b18 0x4 build/release/objs/l502_tests.o
0x00000000ff802b40 . = ALIGN (0x40)
*fill* 0x00000000ff802b1c 0x24 00
.data1
*(.data1)
@ -430,36 +429,36 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.sdata
*(.sdata .sdata.* .gnu.linkonce.s.*)
0x00000000ff802bc0 __edata = .
0x00000000ff802bc0 PROVIDE (_edata, .)
0x00000000ff802bc0 ___bss_start = .
0x00000000ff802b40 __edata = .
0x00000000ff802b40 PROVIDE (_edata, .)
0x00000000ff802b40 ___bss_start = .
.sbss
*(.dynsbss)
*(.sbss .sbss.* .gnu.linkonce.sb.*)
*(.scommon)
.bss 0x00000000ff802bc0 0x1140
0x00000000ff802bc0 __bss_start = .
.bss 0x00000000ff802b40 0x1140
0x00000000ff802b40 __bss_start = .
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
.bss 0x00000000ff802bc0 0x4 build/release/objs/l502_cmd.o
.bss 0x00000000ff802bc4 0xc build/release/objs/l502_hdma.o
.bss 0x00000000ff802bd0 0xb4 build/release/objs/l502_sport_tx.o
.bss 0x00000000ff802c84 0x34 build/release/objs/l502_stream.o
0x00000000ff802c84 _g_stream_in_state
0x00000000ff802c88 _g_stream_out_state
0x00000000ff802c8c _g_mode
.bss 0x00000000ff802cb8 0x1020 build/release/objs/l502_tests.o
.bss 0x00000000ff802b40 0x4 build/release/objs/l502_cmd.o
.bss 0x00000000ff802b44 0xc build/release/objs/l502_hdma.o
.bss 0x00000000ff802b50 0xb4 build/release/objs/l502_sport_tx.o
.bss 0x00000000ff802c04 0x34 build/release/objs/l502_stream.o
0x00000000ff802c04 _g_stream_in_state
0x00000000ff802c08 _g_stream_out_state
0x00000000ff802c0c _g_mode
.bss 0x00000000ff802c38 0x1020 build/release/objs/l502_tests.o
*(COMMON)
COMMON 0x00000000ff803cd8 0x18 build/release/objs/l502_params.o
0x00000000ff803cd8 _g_module_info
0x00000000ff803d00 . = ALIGN (0x40)
*fill* 0x00000000ff803cf0 0x10 00
0x00000000ff803d00 __bss_end = .
0x00000000ff803d00 . = ALIGN (0x40)
0x00000000ff803d00 __end = .
0x00000000ff803d00 PROVIDE (_end, .)
COMMON 0x00000000ff803c58 0x18 build/release/objs/l502_params.o
0x00000000ff803c58 _g_module_info
0x00000000ff803c80 . = ALIGN (0x40)
*fill* 0x00000000ff803c70 0x10 00
0x00000000ff803c80 __bss_end = .
0x00000000ff803c80 . = ALIGN (0x40)
0x00000000ff803c80 __end = .
0x00000000ff803c80 PROVIDE (_end, .)
.sdram_noinit 0x0000000000000000 0xc00000
*(.sdram_noinit, .sdram_noinit.*)
@ -575,7 +574,7 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.debug_pubnames
0x0000000000000664 0x1d /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_info 0x0000000000000000 0x3b79
.debug_info 0x0000000000000000 0x3b68
*(.debug_info .gnu.linkonce.wi.* .zdebug_info)
.debug_info 0x0000000000000000 0x12c build/release/objs/l502_async.o
.debug_info 0x000000000000012c 0xc51 build/release/objs/l502_cmd.o
@ -586,14 +585,14 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.debug_info 0x0000000000002243 0x3aa build/release/objs/l502_sport_tx.o
.debug_info 0x00000000000025ed 0x810 build/release/objs/l502_stream.o
.debug_info 0x0000000000002dfd 0x4ea build/release/objs/l502_tests.o
.debug_info 0x00000000000032e7 0x26e build/release/objs/l502_user_process.o
.debug_info 0x0000000000003555 0x279 build/release/objs/main.o
.debug_info 0x00000000000037ce 0x87 build/release/objs/l502-bf_basiccrt.o
.debug_info 0x0000000000003855 0xe4 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/libgcc.a(_udivsi3.o)
.debug_info 0x0000000000003939 0x12f /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_info 0x0000000000003a68 0x111 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_info 0x00000000000032e7 0x25d build/release/objs/l502_user_process.o
.debug_info 0x0000000000003544 0x279 build/release/objs/main.o
.debug_info 0x00000000000037bd 0x87 build/release/objs/l502-bf_basiccrt.o
.debug_info 0x0000000000003844 0xe4 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/libgcc.a(_udivsi3.o)
.debug_info 0x0000000000003928 0x12f /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_info 0x0000000000003a57 0x111 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_abbrev 0x0000000000000000 0x1321
.debug_abbrev 0x0000000000000000 0x131f
*(.debug_abbrev .zdebug_abbrev)
.debug_abbrev 0x0000000000000000 0xa0 build/release/objs/l502_async.o
.debug_abbrev 0x00000000000000a0 0x277 build/release/objs/l502_cmd.o
@ -604,14 +603,14 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.debug_abbrev 0x0000000000000991 0x1de build/release/objs/l502_sport_tx.o
.debug_abbrev 0x0000000000000b6f 0x28d build/release/objs/l502_stream.o
.debug_abbrev 0x0000000000000dfc 0x1eb build/release/objs/l502_tests.o
.debug_abbrev 0x0000000000000fe7 0x108 build/release/objs/l502_user_process.o
.debug_abbrev 0x00000000000010ef 0xc9 build/release/objs/main.o
.debug_abbrev 0x00000000000011b8 0x14 build/release/objs/l502-bf_basiccrt.o
.debug_abbrev 0x00000000000011cc 0x14 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/libgcc.a(_udivsi3.o)
.debug_abbrev 0x00000000000011e0 0xa0 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_abbrev 0x0000000000001280 0xa1 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_abbrev 0x0000000000000fe7 0x106 build/release/objs/l502_user_process.o
.debug_abbrev 0x00000000000010ed 0xc9 build/release/objs/main.o
.debug_abbrev 0x00000000000011b6 0x14 build/release/objs/l502-bf_basiccrt.o
.debug_abbrev 0x00000000000011ca 0x14 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/libgcc.a(_udivsi3.o)
.debug_abbrev 0x00000000000011de 0xa0 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_abbrev 0x000000000000127e 0xa1 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_line 0x0000000000000000 0x18ed
.debug_line 0x0000000000000000 0x18f6
*(.debug_line .zdebug_line)
.debug_line 0x0000000000000000 0xff build/release/objs/l502_async.o
.debug_line 0x00000000000000ff 0x2de build/release/objs/l502_cmd.o
@ -622,14 +621,14 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.debug_line 0x0000000000000b7d 0x1d0 build/release/objs/l502_sport_tx.o
.debug_line 0x0000000000000d4d 0x376 build/release/objs/l502_stream.o
.debug_line 0x00000000000010c3 0x28e build/release/objs/l502_tests.o
.debug_line 0x0000000000001351 0x12c build/release/objs/l502_user_process.o
.debug_line 0x000000000000147d 0xfa build/release/objs/main.o
.debug_line 0x0000000000001577 0x78 build/release/objs/l502-bf_basiccrt.o
.debug_line 0x00000000000015ef 0xcd /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/libgcc.a(_udivsi3.o)
.debug_line 0x00000000000016bc 0x117 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_line 0x00000000000017d3 0x11a /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_line 0x0000000000001351 0x135 build/release/objs/l502_user_process.o
.debug_line 0x0000000000001486 0xfa build/release/objs/main.o
.debug_line 0x0000000000001580 0x78 build/release/objs/l502-bf_basiccrt.o
.debug_line 0x00000000000015f8 0xcd /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/libgcc.a(_udivsi3.o)
.debug_line 0x00000000000016c5 0x117 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_line 0x00000000000017dc 0x11a /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_frame 0x0000000000000000 0xbc8
.debug_frame 0x0000000000000000 0xbd0
*(.debug_frame .zdebug_frame)
.debug_frame 0x0000000000000000 0x48 build/release/objs/l502_async.o
.debug_frame 0x0000000000000048 0x1a8 build/release/objs/l502_cmd.o
@ -640,12 +639,12 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.debug_frame 0x000000000000061c 0x158 build/release/objs/l502_sport_tx.o
.debug_frame 0x0000000000000774 0x274 build/release/objs/l502_stream.o
.debug_frame 0x00000000000009e8 0xb8 build/release/objs/l502_tests.o
.debug_frame 0x0000000000000aa0 0x98 build/release/objs/l502_user_process.o
.debug_frame 0x0000000000000b38 0x28 build/release/objs/main.o
.debug_frame 0x0000000000000b60 0x34 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_frame 0x0000000000000b94 0x34 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_frame 0x0000000000000aa0 0xa0 build/release/objs/l502_user_process.o
.debug_frame 0x0000000000000b40 0x28 build/release/objs/main.o
.debug_frame 0x0000000000000b68 0x34 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_frame 0x0000000000000b9c 0x34 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_str 0x0000000000000000 0x1508
.debug_str 0x0000000000000000 0x1511
*(.debug_str .zdebug_str)
.debug_str 0x0000000000000000 0x118 build/release/objs/l502_async.o
0x159 (size before relaxing)
@ -665,16 +664,16 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
0x628 (size before relaxing)
.debug_str 0x00000000000011de 0x19e build/release/objs/l502_tests.o
0x429 (size before relaxing)
.debug_str 0x000000000000137c 0x68 build/release/objs/l502_user_process.o
0x1a1 (size before relaxing)
.debug_str 0x00000000000013e4 0x10 build/release/objs/main.o
.debug_str 0x000000000000137c 0x71 build/release/objs/l502_user_process.o
0x1aa (size before relaxing)
.debug_str 0x00000000000013ed 0x10 build/release/objs/main.o
0x1cc (size before relaxing)
.debug_str 0x00000000000013f4 0x9d /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_str 0x00000000000013fd 0x9d /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
0x132 (size before relaxing)
.debug_str 0x0000000000001491 0x77 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_str 0x000000000000149a 0x77 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
0x113 (size before relaxing)
.debug_loc 0x0000000000000000 0x254b
.debug_loc 0x0000000000000000 0x256a
*(.debug_loc .zdebug_loc)
.debug_loc 0x0000000000000000 0xee build/release/objs/l502_async.o
.debug_loc 0x00000000000000ee 0x7b0 build/release/objs/l502_cmd.o
@ -685,10 +684,10 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.debug_loc 0x00000000000013e2 0x258 build/release/objs/l502_sport_tx.o
.debug_loc 0x000000000000163a 0x5fd build/release/objs/l502_stream.o
.debug_loc 0x0000000000001c37 0x43d build/release/objs/l502_tests.o
.debug_loc 0x0000000000002074 0x1d7 build/release/objs/l502_user_process.o
.debug_loc 0x000000000000224b 0x1f build/release/objs/main.o
.debug_loc 0x000000000000226a 0x18c /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_loc 0x00000000000023f6 0x155 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_loc 0x0000000000002074 0x1f6 build/release/objs/l502_user_process.o
.debug_loc 0x000000000000226a 0x1f build/release/objs/main.o
.debug_loc 0x0000000000002289 0x18c /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memmove.o)
.debug_loc 0x0000000000002415 0x155 /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lib_a-memset.o)
.debug_macinfo
*(.debug_macinfo .zdebug_macinfo)
@ -708,7 +707,7 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.debug_pubtypes
*(.debug_pubtypes .zdebug_pubtypes)
.debug_ranges 0x0000000000000000 0x690
.debug_ranges 0x0000000000000000 0x6c0
*(.debug_ranges .zdebug_ranges)
.debug_ranges 0x0000000000000000 0xc0 build/release/objs/l502_cmd.o
.debug_ranges 0x00000000000000c0 0x238 build/release/objs/l502_fpga.o
@ -718,6 +717,7 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
.debug_ranges 0x0000000000000420 0x30 build/release/objs/l502_sport_tx.o
.debug_ranges 0x0000000000000450 0x1a8 build/release/objs/l502_stream.o
.debug_ranges 0x00000000000005f8 0x98 build/release/objs/l502_tests.o
.debug_ranges 0x0000000000000690 0x30 build/release/objs/l502_user_process.o
.gnu.attributes
*(.gnu.attributes)
@ -726,8 +726,8 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
*(.note.GNU-stack)
*(.gnu_debuglink)
*(.gnu.lto_*)
0x0000000000000690 __end = .
0x0000000000000690 PROVIDE (_end, .)
0x00000000000006c0 __end = .
0x00000000000006c0 PROVIDE (_end, .)
0x00000000ffb00000 __stack_start = ORIGIN (MEM_L1_SCRATCH)
0x00000000ffb01000 __stack_end = (ORIGIN (MEM_L1_SCRATCH) + 0x1000)
OUTPUT(build/release/bin/l502-BFfirmware0.elf elf32-bfin)

File diff suppressed because it is too large Load Diff

View File

@ -147,8 +147,49 @@ void sport_tx_done(uint32_t* addr, uint32_t size) {
@param[in] cmd Структура с описанием принятой команды
******************************************************************************/
void usr_cmd_process(t_l502_bf_cmd *cmd) {
switch (cmd->code){
/*
Command template
case 0x800?:{
l502_cmd_done(rcv_code, rcv_data, rcv_data_length); //void l502_cmd_done (int32_t result, uint32_t *data, uint32_t size)
break;
}
*/
// typedef struct {
// uint16_t code; /**< Код команды из #t_l502_bf_cmd_code */
// uint16_t status; /**< Статус выполнения - в обработчике не изменяется */
// uint32_t param; /**< Параметр команды */
// int32_t result; /**< Код результата выполнения команды */
// uint32_t data_size; /**< Количество данных, переданных с командой или возвращенных с ответом в 32-битных словах */
// uint32_t data[L502_BF_CMD_DATA_SIZE_MAX]; /**< Данные, передаваемые с командой и/или в качестве результата */
// } t_l502_bf_cmd;
case 0x8001:{ //L502_BF_USR_CMD_CODE_ECHO
l502_cmd_done(cmd-> param, NULL, 0);
break;
}
case 0x8002:{ //L502_BF_USR_CMD_CODE_DATA_ECHO
uint32_t rcv_data[cmd->data_size];
for (uint32_t I = 0; I < (cmd -> data_size); ++I){
//rcv_data[I] = (cmd-> data)[I];
rcv_data[I] = I;
}
l502_cmd_done(cmd-> param, rcv_data, cmd->data_size);
break;
}
/*
case 0x8002:{
cmd-> result = cmd->param * 2;
uint32_t data[] = {0,1,2,3,4,5,6,5,4,3,2,1,0};
@ -159,8 +200,10 @@ void usr_cmd_process(t_l502_bf_cmd *cmd) {
uint32_t data[] = {6,5,4,3,2,1,0,1,2,3,4,5,6};
l502_cmd_done(cmd-> param*75, data, 13);
break;}
default:{
l502_cmd_done(1, 1, 1);
*/
default: {
l502_cmd_done(1, NULL, 0);
}
}
//l502_cmd_done(1, 1, 1);