Teensy 4.0 - sending sketch code to Flash memory

AndyUK

Member
Hi, I had a problem back in December 21 when changing from Teensy 3.2 to Teensy 4.0, where sketch code was going to RAM rather than Flash memory leaving insufficient room for variables to compile successfully. This was solved when I found the post below and was able to implement it. Fantastic!

Since then, I have been successfully using Teensyduino 1.53 and the "Teensy 4.0 Flash" option which could then be selected from Tools>Boards. The solution was helpfully provided by Frank B.

I am currently extending my project and updated to Teensyduino 1.57 , so I could make use of SPI1 and SPI2.

Having updated to 1.57 the Tools>Boards>Teensy 4.0 Flash selection has gone and linker imxrt1062f.ld is not suitable for 1.57.

I have updated the build file in 1.57 to include the required teensy40flash0.name=Teensy 4.0 Flash, etc and this works and shows the Teensy 4.0 Flash as an option.

I am unable to modify the 1.57 imxrt1062.ld, as I do not possess the necessary knowledge to put all code into Flash as the previous imxrt1062f.ld file did.

I wonder if Frank B or someone could please help out?

Really hope so, as I have a 10,000 line sketch which I have been working on.
Thanks in advance.:)

https://forum.pjrc.com/threads/57326-T4-0-Memory-trying-to-make-sense-of-the-different-regions/page6
Relevant posts 135 to 139
Post 138
FrankB
"attached a working boards.txt for "Teensy40Flash" - name the ld file from above imxrt1062f.ld
that should work, I hope
Attached Files Attached Files
File Type: txt boards.txt (70.7 KB, 90 views)
File Type: txt imxrt1062f.ld.txt (2.3 KB, 97 views)"
(Last edited by Frank B; 02-23-2020 at 02:00 PM.)
 
Back
Top