Hi Guys,

Having a backlog of decennia in electronics, I impressed by all new product developments and co-operation I see. It is stimulating to read the threads and available knowledge. And fun to play this easily with components. Going one step out results in being stuck for the moment (some old things do not change) and so I am looking for some guidance.

My project is a Teensy-LC which gets Mark's Serialbootloader and shall then have different Arduino files loaded from windows.
As example I used Blink, which is 10k. The moment I intend to load it to 0x8080 the code becomes 42k.

How should I deflate this? Anyone ran into this before?

==========================================
==========================================

The code & changes to related files are the following:

/* LED Blink, Teensyduino Tutorial #1
http://www.pjrc.com/teensy/tutorial.html

This example code is in the public domain.
*/

// Teensy 2.0 has the LED on pin 11
// Teensy++ 2.0 has the LED on pin 6
// Teensy 3.0 has the LED on pin 13
const int ledPin = 13;

// the setup() method runs once, when the sketch starts

void setup() {
// initialize the digital pin as an output.
pinMode(ledPin, OUTPUT);
}

// the loop() methor runs over and over again,
// as long as the board has power

void loop() {
digitalWrite(ledPin, HIGH); // set the LED on
delay(200); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(1000); // wait for a second
}


The linker files have been changed to:

mk26Z64.ld
MEMORY
{
FLASH (rx) : ORIGIN = 0x00008080, LENGTH = 62K /* length niet aanpassen? */
RAM (rwx) : ORIGIN = 0x1FFFF800, LENGTH = 8K
}


SECTIONS
{
.text : {
. = 0x8080; /* 0 --> 0x8080, instructie van MB */
KEEP(*(.vectors))
*(.startup*)
/* TODO: does linker detect startup overflow onto flashconfig? */
. = 0x8480; /* 0x400 --> 0x8480, instructie van MB */
KEEP(*(.flashconfig*))
*(.text*)
*(.rodata*)
. = ALIGN(4);
KEEP(*(.init))
. = ALIGN(4);
__preinit_array_start = .;
KEEP (*(.preinit_array))
__preinit_array_end = .;
__init_array_start = .;
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array))
__init_array_end = .;
} > FLASH = 0xFF



mk20dx128.c
/* ================================================== =
remove in combination with uTasker Serial loader

#ifdef KINETISK
WDOG_UNLOCK = WDOG_UNLOCK_SEQ1;
WDOG_UNLOCK = WDOG_UNLOCK_SEQ2;
__asm__ volatile ("nop");
__asm__ volatile ("nop");
#endif
================================================== ====*/