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

Thread: Teensy2 on macOS Big Sur

  1. #1

    Teensy2 on macOS Big Sur

    I have a project I coded several years ago running on a teensy2 with macOS HigSierra and Xcode10. It uses Timer1 and Timer2 and compiles well of the recent machine.
    Now, after reopening the project on a newer machine with MacOS BigSur and Xcode 12.5 I get errors about
    Code:
    /Users/xy/Documents/Elektronik/DataLogger/Data_Teensy2_WL_mult/Data_Teensy.c:472:4: 'TCCR2B' undeclared (first use in this function); did you mean 'TCCR0B'?
      840 |     TCCR2B |= ( (1<<CS22) | (1<<CS20));
    Seems as avrdude does no more recognize the ATmega32U4.
    The teensy is recognized as USB-device as usual
    Does anyone had this issue, too?
    Compiling new projects with teensyduino on various devices runs without problems

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    26,243
    That looks like a compiler error, not anything to do with avrdude.

    But no Teensy boards use avrdude, not even Teensy 2.0 or even (long discontinued) Teensy 1.0. They all use Teensy Loader, never avrdude.

    Also unclear how this related to Xcode. Very mysterious.


    Compiling new projects with teensyduino on various devices runs without problems
    Probably best to then just use Arduino+Teensyduino...

  3. #3
    The project is from 2017. Xcode produces a .hex-file I choosed and uploaded with teensyloader, possibly older version. It worked fine in these days, together with other projects with teens++2, all with the Timer2.settigs refused now. Changing to the register names of Timer3 it compiled and I was able to upload to the Teensy2.

    I am trying with teensyduino now.

Posting Permissions

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