Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: joepasquariello

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Here's a FreqCount example program with...

    Here's a FreqCount example program with conditional defines for T3/LC and T4/MM



    /* FreqCount - Example with serial output
    * http://www.pjrc.com/teensy/td_libs_FreqCount.html
    *
    * This...
  2. @BriComp's message says "EBYTE_E220.h" (with an...

    @BriComp's message says "EBYTE_E220.h" (with an underscore). Yours says "EBYTE E220.h" (with a space). Could that be the problem?
  3. Replies
    5
    Views
    104

    There can be conflicts between different...

    There can be conflicts between different libraries if they are using the same pins or configuring the same timers. We can't tell from what you've posted whether that is the case. For example, if you...
  4. Replies
    5
    Views
    104

    It's impossible to say what's wrong without...

    It's impossible to say what's wrong without knowing what your program is doing and how you're using other pins. The program below shows that PWM on pin 19 does work on T4.0. Please try to put...
  5. Replies
    2
    Views
    89

    cmp1_isr() is defined in...

    cmp1_isr() is defined in cores\Teensy3\mk20dx128.c as shown below.


    void cmp1_isr(void) __attribute__ ((weak, alias("unused_isr")));


    Further down in the same file, cmp_isr is assigned as...
  6. The ISR can be anywhere in your program. There is...

    The ISR can be anywhere in your program. There is no error when you don't define cmp1_isr() in your own program because it is defined (weak) in the Teensy3 core file mk20dx128.c. When you define your...
  7. Replies
    96
    Views
    2,324

    Here's the FreqCount Serial_Output example...

    Here's the FreqCount Serial_Output example updated to run on LC/T3/T4/MM. Pins are chosen as a function of processor and there are comments on specifying the counting period in microseconds for T4/MM...
  8. Excellent. Thanks for documenting how to create a...

    Excellent. Thanks for documenting how to create a "bin" file.
  9. @CollinK, this is exactly what I do for my...

    @CollinK, this is exactly what I do for my applications. My Windows host program reads the HEX file, converts to a BLK (binary) format and sends that to Teensy. It's about as efficient as it can be...
  10. Replies
    96
    Views
    2,324

    I think many new users run into this. Rather than...

    I think many new users run into this. Rather than having separate examples for T4 and others, there could be one example program that uses the correct pin and argument type according to board type. ...
  11. I can think of a few ways of making the transfer...

    I can think of a few ways of making the transfer faster. If you are using UART, then a higher baud rate is faster, but Iím sure you know that. There are many different file formats for firmware...
  12. Replies
    96
    Views
    2,324

    On a positive note, I'm pretty impressed by the...

    On a positive note, I'm pretty impressed by the error messages I'm getting from the new GCC toolchain. When you misspell a function name or provide an incorrect argument, it provides suggestions for...
  13. Replies
    96
    Views
    2,324

    The bug occurs when the argument to sin() is very...

    The bug occurs when the argument to sin() is very close to 0 or when the argument to cos() is very close to -pi/2. There is no error when the arguments are exactly 0 and -pi/2, respectively. The test...
  14. Replies
    96
    Views
    2,324

    0 is the correct value. In Mcu32's test program...

    0 is the correct value. In Mcu32's test program he uses the hex value 0xbfc90fdc and labels it as -pi/2, but this is actually one lsb away from -pi/2 (0xbfc90fdb), and that is what triggers the bug....
  15. Replies
    96
    Views
    2,324

    GCC does not remove it. It simply warns that it...

    GCC does not remove it. It simply warns that it is not used. Paul asked for help to eliminate the warning, and @luni's fix works.
  16. Replies
    96
    Views
    2,324

    Optimizations are turned off. // turn off...

    Optimizations are turned off.



    // turn off optimizations or the optimizer will remove the recursion because
    // it is smart enough to know it doesn't do anything
    void...
  17. Replies
    96
    Views
    2,324

    This works... char x[128]; // use up...

    This works...



    char x[128]; // use up some stack space
    delay(x[0] = 20); // "use" x[0] to avoid "unused variable" warning


    could also be...
  18. Replies
    96
    Views
    2,324

    Are you referring to the f32 version of the sin...

    Are you referring to the f32 version of the sin function for T3.x?
  19. I think it would be more intuitive to have a...

    I think it would be more intuitive to have a minimize icon at the top of the bottom panel rather than an icon at the bottom of the main window. I would also like to second a suggestion that was made...
  20. Thanks very much. IMO it's useful to be able to...

    Thanks very much. IMO it's useful to be able to specify a fixed build path for all sketches, both for easier access to the files and to avoid creation of a different temp folder for every sketch.

    ...
  21. On the Preferences dialog of IDE 1.8.19, there is...

    On the Preferences dialog of IDE 1.8.19, there is a link to the Preferences.txt file. I edit that file to specify "build.path", the path for build output files, such as the hex file.

    The...
  22. Wow, that's hard to say. There are lots of common...

    Wow, that's hard to say. There are lots of common capabilities among microcontrollers, but once you decide you actually want to do something as complex as what you're doing, you need to get into the...
  23. The nice things about using FreqMeasureMulti to...

    The nice things about using FreqMeasureMulti to measure your signal period (frequency) are that the input capture is independent of the software, so even if there is a (short) delay in responding to...
  24. Replies
    96
    Views
    2,324

    Not quite. Again, my point is the IDE doesnít...

    Not quite. Again, my point is the IDE doesnít matter. Hex file is determined by source code (sketch, TD, libraries) and build tools, not by IDE version, as far as I know.
  25. Replies
    96
    Views
    2,324

    He isnít clear about which TD he used with...

    He isnít clear about which TD he used with 1.8.19, and my point was that the size change goes with TD version, not with IDE version.
  26. Replies
    96
    Views
    2,324

    What version of TeensyDuino are you using with...

    What version of TeensyDuino are you using with IDE 1.8.19? So far in my own testing (only with 1.57), I get identical hex files with IDE 1.8.19 and IDE 2.0.0.
  27. FreqMeasure configures a timer to do input...

    FreqMeasure configures a timer to do input capture, and if it's not throwing away the first capture, that would explain why the first value is no good. I can't explain why the second value is not...
  28. Here is a test I did with FreqMeasure from 1 kHz...

    Here is a test I did with FreqMeasure from 1 kHz to 30 kHz. I got good results by throwing out the first two readings at each frequency and using just the 3rd reading. I used PWM on pin 23 to...
  29. Updated to 2.0.0 release from rc9, and now I'm...

    Updated to 2.0.0 release from rc9, and now I'm getting the error below which I did not have with rc9, and I can still build this project with IDE 1.8.19. Did I corrupt something?



    EDIT: ...
  30. Replies
    5
    Views
    186

    Hopefully those who know more will answer and...

    Hopefully those who know more will answer and provide more information. The only usage of the DSP functions I can find in TeensyDuino are in the Audio library. Just FYI, I see that DSP 1.5.1 has...
  31. Replies
    2
    Views
    198

    When I run your program on T4.1 with Arduino...

    When I run your program on T4.1 with Arduino 1.8.19 and TD 1.57, I get the output shown below, which seems right, i.e. 1 digit to the right of the decimal. Is this what you get? What do you want the...
  32. Interesting, thanks for the follow-up.

    Interesting, thanks for the follow-up.
  33. Here's a T4.x example of rising-edge input...

    Here's a T4.x example of rising-edge input capture (QTIMER1 ch1) and triggering a set of edges via output compare (QTIMER1 ch2). The first output edge occurs 47 us after the input edge, and after...
  34. The text below is from a DigiKey page on iMXRT...

    The text below is from a DigiKey page on iMXRT (link at bottom of this message). 1064 is pin-to-pin compatible with 1062, but with 4MB on-board flash. With different memory maps, though, pin...
  35. Replies
    8
    Views
    551

    That's great. I sent you a PM a week or so ago....

    That's great. I sent you a PM a week or so ago. We can work out the details via PM?
  36. Is there an equivalent to the "Use external...

    Is there an equivalent to the "Use external editor" option from 1.x IDE? I've become accustomed to using Notepad++, and I'm disappointed that the new editor has no configuration UI. Not even tab...
  37. I don't know much about AVR, but it looks like...

    I don't know much about AVR, but it looks like Teensy provides emulation of AVR i/o ports. You are not going to be able to write to PORTD, PORTB, etc. via uint8_t variables. You can probably do...
  38. PORTD is an instance of class PORTDemulation, and...

    PORTD is an instance of class PORTDemulation, and your code attempts to cast the address of PORTD to a uint8_t*. The compiler is saying no, you cannot do that.
  39. Replies
    5
    Views
    186

    Can you tell us what problems you have found?...

    Can you tell us what problems you have found? Paul may answer, but I think it is not necessarily an easy thing to bring in the latest CMSIS DSP, as it keeps changing and getting bigger.

    Here is a...
  40. Just a comment on your speed-up fix. With that...

    Just a comment on your speed-up fix. With that line commented out, the function will just spin through "timeout" tests of the ready condition. The default timeout is 1000 ms, so it will spin through...
  41. Replies
    6
    Views
    594

    There is also this thread...

    There is also this thread (https://forum.pjrc.com/threads/71006-25-teensy-3-6-for-sale). I replied and got no answer from the OP.
  42. 50 us is a long time for T4.1, so you definitely...

    50 us is a long time for T4.1, so you definitely have time to do necessary calculations and start your output on time. If you use input capture on a QuadTimer module for the trigger input, you'll...
  43. See chapter 54 of the T4.x processor reference...

    See chapter 54 of the T4.x processor reference manual regarding QuadTimer. I think you could generate your waveforms using either the "Fixed-Frequency" or "Variable Frequency" PWM Modes. The...
  44. One quick suggestion is use digitalWriteFast()...

    One quick suggestion is use digitalWriteFast() rather than digitalWrite(). It's faster. Can you provide a screen shot or even a sketch of what your output signals look like? For signal generation,...
  45. You're welcome. If you go to this github page...

    You're welcome. If you go to this github page (https://github.com/greiman/SdFat) and download the ZIP file and extract it somewhere on your computer, you can go to the "doc" folder and double-click...
  46. This error occurs because FsFile:open() requires...

    This error occurs because FsFile:open() requires the first argument (filename) to be a C string, and what you are passing in is a C++ String. If you look again at the TeensySdioLogger example...
  47. I ran your program on T3.5, put in some counters...

    I ran your program on T3.5, put in some counters and confirmed that the FTM0 interrupt is occurring at the correct rate (15 kHz), but your ADC0 interrupt is occurring at well over 1 MHz, so I think...
  48. Replies
    8
    Views
    551

    I could use some. Do you have a price in mind?

    I could use some. Do you have a price in mind?
  49. I don't know if this will help, but I have used...

    I don't know if this will help, but I have used the macros below when I want to make a program artificially large



    #define LARGE_ARRAY_TEST (0) // 1 = define large array to increase code size
    ...
  50. Wow. That's quite a project.

    Wow. That's quite a project.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4