Add nano.specs to linker to reduce memory footprint and increase HEAP+STACK sizes. (#107)

Reduce buffer size for Segger RTT UP-Buffer.
This commit is contained in:
nanosonde 2020-11-20 20:07:51 +01:00 committed by GitHub
parent 24c27815cf
commit f3751b6ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View File

@ -34,8 +34,8 @@
* Default Linker script for the Texas Instruments CC1310
*/
STACKSIZE = 4096+1024;
HEAPSIZE = 2048;
STACKSIZE = 4096;
HEAPSIZE = 4096;
MEMORY
{

View File

@ -72,7 +72,7 @@ Revision: $Rev: 18601 $
#endif
#ifndef BUFFER_SIZE_UP
#define BUFFER_SIZE_UP (1024) // Size of the buffer for terminal output of target, up to host (Default: 1k)
#define BUFFER_SIZE_UP (128) // Size of the buffer for terminal output of target, up to host (Default: 1k)
#endif
#ifndef BUFFER_SIZE_DOWN

View File

@ -86,6 +86,10 @@
<listOptionValue builtIn="false" value="${PROJECT_LOC}/../coresdk_cc13xx_cc26xx/source/ti/devices/cc13x0/driverlib/bin/gcc/driverlib.lib"/>
<listOptionValue builtIn="false" value="stdc++_nano"/>
</option>
<option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.STATIC.339838909" name="Do not link with the shared libraries (-static)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.STATIC" value="true" valueType="boolean"/>
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.OTHER_FLAGS.356964495" name="Miscellaneous flags" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.linkerID.OTHER_FLAGS" valueType="stringList">
<listOptionValue builtIn="false" value="-specs=&quot;nano.specs&quot;"/>
</option>
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD_SRCS.1986544566" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD_SRCS"/>
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD2_SRCS.1363885335" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__CMD2_SRCS"/>
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__GEN_CMDS.1581516728" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_9.0.exeLinker.inputType__GEN_CMDS"/>

View File

@ -34,7 +34,7 @@ void setup()
if (knx.configured())
{
printf("configured %d\n", knx.paramByte(5));
println("configured");
}
else
println("not configured");