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

Thread: FreqMeasure refuses to compile

  1. #1
    Junior Member
    Join Date
    Jun 2019
    Posts
    13

    FreqMeasure refuses to compile

    Using both FreqCount and FreqMeasure today for counting pulses from a scintillation detector. I noticed that using FreqMeasure in the sketch showed that library was no longer compatible with
    Teensy3.6. - Error, library is incompatible for this board.

    Anyone got ideas what's going on FreqMeasure.h?

    Just running the FreqMeasure demo sketch shows the same issues in the Arduino compiler. I was using v1.8.10.



    Thanks.

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,474
    Try this : ...\hardware\teensy\avr\libraries\FreqMeasure\exam ples\Serial_Output\Serial_Output.pde

    Here TeensyDuino is 1.49 and that example is included and it and compiled for Teensy 3.6 it causes no trouble.

    Jumped back to IDE 1.8.9 - though that shouldn't be an issue it shows this for the library info in verbose compile console output:

    Using library FreqMeasure at version 1.2 in folder: T:\arduino-1.8.9\hardware\teensy\avr\libraries\FreqMeasure

    Perhaps the version of TeensyDuino needs updated - or there is a 'local' copy of that library in sketchbook\libraries?

  3. #3
    Junior Member
    Join Date
    Jun 2019
    Posts
    13
    Nope I couldn't get it to compile under 1.8.9 either...
    Trying to get a project finished and this started happening under MacOS 10.15.2 ....
    About ready to throw my computer out the window. FreqMeasure does not work at all while Freqcount is just fine.

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,474
    Quote Originally Posted by MakerV View Post
    Nope I couldn't get it to compile under 1.8.9 either...
    Trying to get a project finished and this started happening under MacOS 10.15.2 ....
    About ready to throw my computer out the window. FreqMeasure does not work at all while Freqcount is just fine.
    Odd - pull the plugs and open the window and check below - wouldn't want to damage anything of value.

    This shouldn't be a Mac versus Windows issue - I'm a Windows user of course … - there may be something up with the install process

    To offer help what would be needed would be a copy the VERBOSE console output from the IDE so anything shown there can be seen.

  5. #5
    Junior Member
    Join Date
    Jun 2019
    Posts
    13
    Here is the error that continues to persist:
    fork/exec /Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags: bad CPU type in executable
    Error compiling for board Teensy 3.6.


    The library in question is from the most recent form of the library. Java issues?


    Lol, your response re: throwing the computer out the window - That'd just mean a forced upgrade. Bombs away!

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,743
    I tested just now, using Teensyduino 1.50-beta1 running on MacOS 10.15.3.

    I set the board to Teensy 3.6, opened File > Examples > FreqMeasure > Serial_Output, and then I clicked Verify. It compiles without any errors. Here's a screenshot, so you can see it worked.

    Click image for larger version. 

Name:	sc.jpg 
Views:	34 
Size:	118.0 KB 
ID:	18911

    It definitely does work when the software is installed properly.

    This "bad CPU type in executable" probably means your copy of Arduino is corrupted or damaged. It's trying to tell you the "ctags" program is defective. That program is a part of Arduino which runs on your Mac... not anything that runs on Teensy.

    Best to delete that copy of Arduino/Teensyduino and download a fresh copy. Either 1.50-beta1 or 1.49 should work.

  7. #7
    Junior Member
    Join Date
    Jun 2019
    Posts
    13
    Yes, indeed the program was completely corrupted. I tried another teensy sketch and sure enough the same error occurred, but not for pure arduino boards which compile without issue.

Posting Permissions

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