1
NXPTM M522XX, KINETIS and i.MX RT / Re: Freescale KL26Z64 (Teensy LC) compiling errors for SerialBoot on IAR 7.4
« on: November 05, 2015, 02:52:57 PM »
Yes I should, that memory part is interesting and I ma not only confusing the address, also the project.
USB serial loader is good when it can be recognized by Windows. No change in the linker file required. Can come later, when I need more memory for my project
The linker file described in the tutorial is for my project i.e. the arduino project.
File found in C:\..\arduino-1.6.5-r5\hardware\teensy\avr\cores\teensy3 so I can finally adapt mk20dx128.c and mkl26z64.id as instructed.
FLASH (rx) origin modified to 0x8080 --> gives the right starting address
Watchdog removed .
Vector table in RAM is used --> nothing to add
I want to have the loader installed and next the file applying drag & drop.
To test I use Blink from the tutorial, that is small and coverts to binary (hex2bin v2.1) for 10.076 byte.
After editing the linker file the start address is OK
Loading the blink example makes the teensy disappear for windows and the led is on continuously.
Next step: change the addresses for the flash (IAR mentioned that in the same fashion). Thanks Mark for warning!
SECTIONS
{
.text : {
. = 0; -> 0x8080
KEEP(*(.vectors))
*(.startup*)
/* TODO: does linker detect startup overflow onto flashconfig? */
. = 0x400; -> 0x8480
KEEP(*(.flashconfig*))
My Blink file has grown to use 42.972 bytes. If true that is tight with the 32 k I have left
And of course the lights go off and teensy goes into reset.
We're getting close, nearly there.
USB serial loader is good when it can be recognized by Windows. No change in the linker file required. Can come later, when I need more memory for my project
The linker file described in the tutorial is for my project i.e. the arduino project.
File found in C:\..\arduino-1.6.5-r5\hardware\teensy\avr\cores\teensy3 so I can finally adapt mk20dx128.c and mkl26z64.id as instructed.
FLASH (rx) origin modified to 0x8080 --> gives the right starting address
Watchdog removed .
Vector table in RAM is used --> nothing to add
I want to have the loader installed and next the file applying drag & drop.
To test I use Blink from the tutorial, that is small and coverts to binary (hex2bin v2.1) for 10.076 byte.
After editing the linker file the start address is OK
Loading the blink example makes the teensy disappear for windows and the led is on continuously.
Next step: change the addresses for the flash (IAR mentioned that in the same fashion). Thanks Mark for warning!
SECTIONS
{
.text : {
. = 0; -> 0x8080
KEEP(*(.vectors))
*(.startup*)
/* TODO: does linker detect startup overflow onto flashconfig? */
. = 0x400; -> 0x8480
KEEP(*(.flashconfig*))
My Blink file has grown to use 42.972 bytes. If true that is tight with the 32 k I have left
And of course the lights go off and teensy goes into reset.
We're getting close, nearly there.
Thanks Mark. That was line 538 and off it went. A breeze.