Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Teensy 4.0 with arm-none-eabi-gcc

  1. #1
    Junior Member
    Join Date
    Sep 2019
    Posts
    3

    Teensy 4.0 with arm-none-eabi-gcc

    Hi teensyers,

    For some prototyping I would like to use Teensy 4.0 witch embed an imxrt1062. I'm now used to program on this MCU and had made some code running on the eval-board (mimxr1060_evk from NXP). In this situation, I program without the Arduino IDE of course, but with a buch of Makefile and arm-none-eabi-gcc. Can I use the same toolchain on the Teensy ? I suppose yes, but should I add some headers for the Teensy to boot it ? Or just the NXP iMX standard header (IVT, bootdata, etc.. ) is fine. Any particular linker placement to use or standard (to iMX) is fine ?

    Thanks to anyone that can share experience on this!

    /Antoine

  2. #2
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,347
    Yes, you can use the Toolchain of Teensyduino.
    suggest to run arduino ide in verbose mode. it gives you all the gcc commands it is using. adapt then your own makefile.
    If you work on Windows you can use VisualTeensy (search this forum) which will create for you a custom makefile with all the links to toolchain, libraries etc.
    modify to your needs.
    Important: if, later on, you wanted specific help from this forum, please try to stay as close as possible to Teensiduino, as that all of us are using.

  3. #3
    Junior Member
    Join Date
    Sep 2019
    Posts
    3
    Thansk for the tips VMXZ! I was not aware of the verbose mode of the Arduino IDE. Now with this it point me to the place where I can have all the info I needed, namely the hardware/teensy/avr/cores/teensy4 folder. For the one going the same route as me, have a look specifically at the following files:
    - Linker script: mxrt1062.ld
    - NXP iMX's boot header data: bootdata.c
    - Startup file: startup.c

    Whit those file I can confirm that it goes the same way than on the NXP's devkit, no special stuff to the teensy loader or what else.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •