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

Thread: Where are register names defined in teensydrino for teensy 4.1 ?

  1. #1
    Junior Member
    Join Date
    Jun 2021
    Posts
    2

    Where are register names defined in teensydrino for teensy 4.1 ?

    The iMXRT1060 reference manual has register descriptions but the compiler does not understand that.

    I'm surprised this is not even in the wiki, but how are you suppose to use a MCU without knowing the register names ?

    The teensyduino core must have a file somewhere with all the definitions.

    Can the devs let us know which file is it ?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    14,428
    The #defines and details needed to build for T_4.x's 1062 MCU are in this 9,000+ line file installed with TeensyInstaller:

    {local arduino}\hardware\teensy\avr\cores\teensy4\imxrt.h

  3. #3
    Junior Member
    Join Date
    Jun 2021
    Posts
    2
    Quote Originally Posted by defragster View Post
    The #defines and details needed to build for T_4.x's 1062 MCU are in this 9,000+ line file installed with TeensyInstaller:

    {local arduino}\hardware\teensy\avr\cores\teensy4\imxrt.h
    Thanks for the help!

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,457
    As you read imxrt.h, hopefully you can see we've kept the names identical to register names in the reference manual, so you can just type any register name as it appears in NXP's documentation. Well, at least with the minor caveats where NXP's documentation isn't so consistent, but there really shouldn't be any big surprises.

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    14,428
    Quote Originally Posted by 3EB2C70F View Post
    The iMXRT1060 reference manual has register descriptions but the compiler does not understand that.

    I'm surprised this is not even in the wiki, but how are you suppose to use a MCU without knowing the register names ?

    ...
    Assume you are referring to this wiki :: github.com/TeensyUser/doc/wiki


    @luni - is there a place for this in the Wiki?

    Looks like the equivalent for T_3.x is :: {local arduino}\hardware\teensy\avr\cores\teensy3\kinetis .h
    >> github.com/PaulStoffregen/cores/blob/master/teensy3/kinetis.h

    For the T_4.x: {local arduino}\hardware\teensy\avr\cores\teensy4\imxrt.h
    >> github.com/PaulStoffregen/cores/blob/master/teensy4/imxrt.h

Posting Permissions

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