[PATCH] bsp/atsam: Use SDRAM memory map by default
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Apr 3 14:43:43 UTC 2020
This allows to link more libbsd tests. The following tests still fail to
link:
-> task in 'dhcpcd02.exe' failed with exit status 1 (run with -v to display more information)
-> task in 'foobarclient.exe' failed with exit status 1 (run with -v to display more information)
-> task in 'dhcpcd01.exe' failed with exit status 1 (run with -v to display more information)
-> task in 'foobarserver.exe' failed with exit status 1 (run with -v to display more information)
-> task in 'ftpd01.exe' failed with exit status 1 (run with -v to display more information)
-> task in 'nfs01.exe' failed with exit status 1 (run with -v to display more information)
-> task in 'ppp01.exe' failed with exit status 1 (run with -v to display more information)
-> task in 'telnetd01.exe' failed with exit status 1 (run with -v to display more information)
-> task in 'zerocopy01.exe' failed with exit status 1 (run with -v to display more information)
The Atmel evaluation board has only 2MiB of SDRAM. The libbsd is simply
too big in the standard configuration.
---
bsps/arm/atsam/start/linkcmds | 22 +---------------------
bsps/arm/atsam/start/linkcmds.intflash | 21 +++++++++++++++++++++
c/src/lib/libbsp/arm/atsam/Makefile.am | 1 +
3 files changed, 23 insertions(+), 21 deletions(-)
create mode 100644 bsps/arm/atsam/start/linkcmds.intflash
diff --git a/bsps/arm/atsam/start/linkcmds b/bsps/arm/atsam/start/linkcmds
index 79cdfc2b18..325d0f2975 100644
--- a/bsps/arm/atsam/start/linkcmds
+++ b/bsps/arm/atsam/start/linkcmds
@@ -1,21 +1 @@
-INCLUDE linkcmds.memory
-
-REGION_ALIAS ("REGION_START", INTFLASH);
-REGION_ALIAS ("REGION_VECTOR", INTSRAM);
-REGION_ALIAS ("REGION_TEXT", INTFLASH);
-REGION_ALIAS ("REGION_TEXT_LOAD", INTFLASH);
-REGION_ALIAS ("REGION_RODATA", INTFLASH);
-REGION_ALIAS ("REGION_RODATA_LOAD", INTFLASH);
-REGION_ALIAS ("REGION_DATA", INTSRAM);
-REGION_ALIAS ("REGION_DATA_LOAD", INTFLASH);
-REGION_ALIAS ("REGION_FAST_TEXT", ITCM);
-REGION_ALIAS ("REGION_FAST_TEXT_LOAD", INTFLASH);
-REGION_ALIAS ("REGION_FAST_DATA", DTCM);
-REGION_ALIAS ("REGION_FAST_DATA_LOAD", INTFLASH);
-REGION_ALIAS ("REGION_BSS", INTSRAM);
-REGION_ALIAS ("REGION_WORK", INTSRAM);
-REGION_ALIAS ("REGION_STACK", INTSRAM);
-REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
-REGION_ALIAS ("REGION_NOCACHE_LOAD", INTFLASH);
-
-INCLUDE linkcmds.armv7m
+INCLUDE linkcmds.sdram
diff --git a/bsps/arm/atsam/start/linkcmds.intflash b/bsps/arm/atsam/start/linkcmds.intflash
new file mode 100644
index 0000000000..79cdfc2b18
--- /dev/null
+++ b/bsps/arm/atsam/start/linkcmds.intflash
@@ -0,0 +1,21 @@
+INCLUDE linkcmds.memory
+
+REGION_ALIAS ("REGION_START", INTFLASH);
+REGION_ALIAS ("REGION_VECTOR", INTSRAM);
+REGION_ALIAS ("REGION_TEXT", INTFLASH);
+REGION_ALIAS ("REGION_TEXT_LOAD", INTFLASH);
+REGION_ALIAS ("REGION_RODATA", INTFLASH);
+REGION_ALIAS ("REGION_RODATA_LOAD", INTFLASH);
+REGION_ALIAS ("REGION_DATA", INTSRAM);
+REGION_ALIAS ("REGION_DATA_LOAD", INTFLASH);
+REGION_ALIAS ("REGION_FAST_TEXT", ITCM);
+REGION_ALIAS ("REGION_FAST_TEXT_LOAD", INTFLASH);
+REGION_ALIAS ("REGION_FAST_DATA", DTCM);
+REGION_ALIAS ("REGION_FAST_DATA_LOAD", INTFLASH);
+REGION_ALIAS ("REGION_BSS", INTSRAM);
+REGION_ALIAS ("REGION_WORK", INTSRAM);
+REGION_ALIAS ("REGION_STACK", INTSRAM);
+REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
+REGION_ALIAS ("REGION_NOCACHE_LOAD", INTFLASH);
+
+INCLUDE linkcmds.armv7m
diff --git a/c/src/lib/libbsp/arm/atsam/Makefile.am b/c/src/lib/libbsp/arm/atsam/Makefile.am
index 933e62ab54..9e5328aa1b 100644
--- a/c/src/lib/libbsp/arm/atsam/Makefile.am
+++ b/c/src/lib/libbsp/arm/atsam/Makefile.am
@@ -15,6 +15,7 @@ project_lib_DATA = start.$(OBJEXT)
project_lib_DATA += linkcmds
project_lib_DATA += linkcmds.memory
+dist_project_lib_DATA += ../../../../../../bsps/arm/atsam/start/linkcmds.intflash
dist_project_lib_DATA += ../../../../../../bsps/arm/atsam/start/linkcmds.intsram
dist_project_lib_DATA += ../../../../../../bsps/arm/atsam/start/linkcmds.sdram
dist_project_lib_DATA += ../../../../../../bsps/arm/atsam/start/linkcmds.qspiflash
--
2.16.4
More information about the devel
mailing list