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

Thread: Accessing Comparator Hangs Serial on Teensy 3.1

  1. #1

    Accessing Comparator Hangs Serial on Teensy 3.1

    I am trying to use the comparator on Teensy3.1. I am talking to Teensy over USBSerial. If I do any accesses to the comparator, Serial will not initiate, even if the comparator code is after the Serial.begin(9600).

    The program works fine, and then if I add the line:

    uint8_t testVar;
    serial will not initiate. Any ideas? I have additional comparator code which also hangs the system, but even this minimal read does it.

    Thanks much,


  2. #2

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Almost everything in the chip defaults to powered down. If you try to use something without first turning it on, you get a hard fault.

  4. #4
    Thanks. I had noticed this post before but couldn't find it again.

Posting Permissions

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