Succesfully transmits adc data to PC
This commit is contained in:
Binary file not shown.
Binary file not shown.
@ -294,23 +294,23 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
|
|||||||
0x00000000ffa02634 _streams_start
|
0x00000000ffa02634 _streams_start
|
||||||
.text 0x00000000ffa02840 0x728 build/release/objs/l502_tests.o
|
.text 0x00000000ffa02840 0x728 build/release/objs/l502_tests.o
|
||||||
0x00000000ffa02840 _l502_cmd_test
|
0x00000000ffa02840 _l502_cmd_test
|
||||||
.text 0x00000000ffa02f68 0x294 build/release/objs/l502_user_process.o
|
.text 0x00000000ffa02f68 0x290 build/release/objs/l502_user_process.o
|
||||||
0x00000000ffa02f68 _usr_cmd_process
|
0x00000000ffa02f68 _usr_cmd_process
|
||||||
0x00000000ffa03120 _sport_tx_done
|
0x00000000ffa03120 _sport_tx_done
|
||||||
0x00000000ffa0313c _hdma_send_done
|
0x00000000ffa0313c _hdma_send_done
|
||||||
0x00000000ffa03158 _usr_out_proc_data
|
0x00000000ffa03158 _usr_out_proc_data
|
||||||
0x00000000ffa031a4 _usr_in_proc_data
|
0x00000000ffa031a4 _usr_in_proc_data
|
||||||
.text 0x00000000ffa031fc 0x14 build/release/objs/main.o
|
.text 0x00000000ffa031f8 0x14 build/release/objs/main.o
|
||||||
0x00000000ffa031fc _main
|
0x00000000ffa031f8 _main
|
||||||
.text 0x00000000ffa03210 0x9c /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/libgcc.a(_udivsi3.o)
|
.text 0x00000000ffa0320c 0x9c /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/libgcc.a(_udivsi3.o)
|
||||||
0x00000000ffa03210 ___udivsi3
|
0x00000000ffa0320c ___udivsi3
|
||||||
.text 0x00000000ffa032ac 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)
|
.text 0x00000000ffa032a8 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)
|
||||||
0x00000000ffa032ac _memmove
|
0x00000000ffa032a8 _memmove
|
||||||
.text 0x00000000ffa03380 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)
|
.text 0x00000000ffa0337c 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)
|
||||||
0x00000000ffa03380 _memset
|
0x00000000ffa0337c _memset
|
||||||
*(.gnu.warning)
|
*(.gnu.warning)
|
||||||
0x00000000ffa03440 . = ALIGN (0x40)
|
0x00000000ffa03440 . = ALIGN (0x40)
|
||||||
*fill* 0x00000000ffa03438 0x8 00
|
*fill* 0x00000000ffa03434 0xc 00
|
||||||
|
|
||||||
.fini
|
.fini
|
||||||
*(.fini)
|
*(.fini)
|
||||||
@ -614,7 +614,7 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
|
|||||||
.debug_abbrev 0x0000000000001268 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 0x0000000000001268 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 0x0000000000001308 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 0x0000000000001308 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 0x193a
|
.debug_line 0x0000000000000000 0x1937
|
||||||
*(.debug_line .zdebug_line)
|
*(.debug_line .zdebug_line)
|
||||||
.debug_line 0x0000000000000000 0xff build/release/objs/l502_async.o
|
.debug_line 0x0000000000000000 0xff build/release/objs/l502_async.o
|
||||||
.debug_line 0x00000000000000ff 0x2de build/release/objs/l502_cmd.o
|
.debug_line 0x00000000000000ff 0x2de build/release/objs/l502_cmd.o
|
||||||
@ -625,12 +625,12 @@ LOAD /home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-
|
|||||||
.debug_line 0x0000000000000b7d 0x1d0 build/release/objs/l502_sport_tx.o
|
.debug_line 0x0000000000000b7d 0x1d0 build/release/objs/l502_sport_tx.o
|
||||||
.debug_line 0x0000000000000d4d 0x376 build/release/objs/l502_stream.o
|
.debug_line 0x0000000000000d4d 0x376 build/release/objs/l502_stream.o
|
||||||
.debug_line 0x00000000000010c3 0x28e build/release/objs/l502_tests.o
|
.debug_line 0x00000000000010c3 0x28e build/release/objs/l502_tests.o
|
||||||
.debug_line 0x0000000000001351 0x179 build/release/objs/l502_user_process.o
|
.debug_line 0x0000000000001351 0x176 build/release/objs/l502_user_process.o
|
||||||
.debug_line 0x00000000000014ca 0xfa build/release/objs/main.o
|
.debug_line 0x00000000000014c7 0xfa build/release/objs/main.o
|
||||||
.debug_line 0x00000000000015c4 0x78 build/release/objs/l502-bf_basiccrt.o
|
.debug_line 0x00000000000015c1 0x78 build/release/objs/l502-bf_basiccrt.o
|
||||||
.debug_line 0x000000000000163c 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 0x0000000000001639 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 0x0000000000001709 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 0x0000000000001706 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 0x0000000000001820 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 0x000000000000181d 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 0xbd0
|
.debug_frame 0x0000000000000000 0xbd0
|
||||||
*(.debug_frame .zdebug_frame)
|
*(.debug_frame .zdebug_frame)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -57,14 +57,15 @@ uint32_t usr_in_proc_data(uint32_t* data, uint32_t size) {
|
|||||||
/* если есть свободные дескрипторы на передачу по HDMA - ставим блок на
|
/* если есть свободные дескрипторы на передачу по HDMA - ставим блок на
|
||||||
передачу. Иначе возвращаем 0, чтобы на обработку этих данных функцию
|
передачу. Иначе возвращаем 0, чтобы на обработку этих данных функцию
|
||||||
вызвали бы позже */
|
вызвали бы позже */
|
||||||
++streams_cnt[0];
|
|
||||||
for (int i = 0; i < 1024; ++i){
|
for (int i = 0; i < 1024; ++i){
|
||||||
sport_rx_copy[i] = data[i];
|
sport_rx_copy[i] = data[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (hdma_send_req_rdy()) {
|
if (hdma_send_req_rdy()) {
|
||||||
hdma_send_req_start(data, size, 0);
|
|
||||||
|
streams_cnt[0] = hdma_send_req_start(data, size, 0);
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
@ -250,6 +251,7 @@ void usr_cmd_process(t_l502_bf_cmd *cmd) {
|
|||||||
err_codes[0] = stream_enable(L502_STREAM_ADC | L502_STREAM_DIN); //bitmask
|
err_codes[0] = stream_enable(L502_STREAM_ADC | L502_STREAM_DIN); //bitmask
|
||||||
err_codes[1] = stream_out_preload();
|
err_codes[1] = stream_out_preload();
|
||||||
err_codes[2] = streams_start();
|
err_codes[2] = streams_start();
|
||||||
|
//hdma_send_start();
|
||||||
l502_cmd_done(0, err_codes, 5);
|
l502_cmd_done(0, err_codes, 5);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user