summaryrefslogtreecommitdiff
path: root/fw/fe310
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310')
-rw-r--r--fw/fe310/test/Makefile3
-rw-r--r--fw/fe310/test/main.c2
-rw-r--r--fw/fe310/test/mem.c24
3 files changed, 26 insertions, 3 deletions
diff --git a/fw/fe310/test/Makefile b/fw/fe310/test/Makefile
index 5e708ed..236217f 100644
--- a/fw/fe310/test/Makefile
+++ b/fw/fe310/test/Makefile
@@ -2,7 +2,8 @@ include ../common.mk
CFLAGS += -I$(bsp_dir)/include -I$(bsp_dir)/drivers -I$(ext_dir)/crypto -I$(ext_dir)/fsfat -I$(ecp_dir)/src -I$(ecp_dir)/src/platform/fe310 -I..
LDFLAGS = app/*.o $(CFLAGS) -L.. -L$(ecp_dir)/build-fe310 -Wl,--gc-sections -nostartfiles -nostdlib -Wl,--start-group -lc -lm -lgcc -leos -lecp -lecpcr -lecptr -lecptm -lecpdir -lecpvconn -Wl,--end-group -T../bsp/default.lds
-DEPS = main.o mem.o cell_dev.o cell_pdp.o phone.o modem.o wifi.o cam.o fs.o ecp.o ecp_init.o audio.o test.o
+DEPS = main.o mem.o cell_dev.o cell_pdp.o phone.o modem.o wifi.o cam.o fs.o test.o
+# DEPS += ecp.o ecp_init.o audio.o
TARGET = phone
diff --git a/fw/fe310/test/main.c b/fw/fe310/test/main.c
index d1409f7..52d281b 100644
--- a/fw/fe310/test/main.c
+++ b/fw/fe310/test/main.c
@@ -96,8 +96,6 @@ int main() {
// app_cell_dev_init();
// app_cell_pdp_init();
// app_fs_init();
- // audio_start();
- app_ecp_init();
eos_evtq_loop();
}
diff --git a/fw/fe310/test/mem.c b/fw/fe310/test/mem.c
new file mode 100644
index 0000000..a8c9546
--- /dev/null
+++ b/fw/fe310/test/mem.c
@@ -0,0 +1,24 @@
+#include <stdio.h>
+
+extern char metal_segment_itim_target_start;
+extern char metal_segment_itim_target_end;
+
+extern char metal_segment_data_target_start;
+extern char metal_segment_data_target_end;
+
+extern char metal_segment_bss_target_start;
+extern char metal_segment_bss_target_end;
+
+extern char metal_segment_heap_target_start;
+extern char metal_segment_heap_target_end;
+
+extern char metal_segment_stack_begin;
+extern char metal_segment_stack_end;
+
+void print_mem(void) {
+ printf("ITIM: %p - %p\n", &metal_segment_itim_target_start, &metal_segment_itim_target_end);
+ printf("DATA: %p - %p\n", &metal_segment_data_target_start, &metal_segment_data_target_end);
+ printf("BSS: %p - %p\n", &metal_segment_bss_target_start, &metal_segment_bss_target_end);
+ printf("HEAP: %p - %p\n", &metal_segment_heap_target_start, &metal_segment_heap_target_end);
+ printf("STACK: %p - %p\n", &metal_segment_stack_begin, &metal_segment_stack_end);
+}