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. Replies
    28
    Views
    1,932

    Very impressive! Congratulations.

    Very impressive! Congratulations.
  2. I see in the cli source code that there is a...

    I see in the cli source code that there is a simple write function, and that's how the new firmware is sent to the Teensy, so you could use that to write new data to EEPROM, but I don't see any read...
  3. If something is listed on the Arduino reference...

    If something is listed on the Arduino reference page, it won't change without warning. Even if it's not listed, anything relatively fundamental won't change without warning or discussion. If you have...
  4. I don't know a lot about the Teensy loader CLI,...

    I don't know a lot about the Teensy loader CLI, but AKAIK it communicates with the bootloader, and does not have the possibility to communicate with your sketch. Let us know what you find as you get...
  5. I'm not sure whether public API means Arduino...

    I'm not sure whether public API means Arduino API, but here is a link to that. It does not include the macro F_CPU or any function to read actual CPU speed. It appears that many Arduino-compatible...
  6. The Teensy Loader CLI does not have the ability...

    The Teensy Loader CLI does not have the ability to read (or request) data from EEPROM. As @defragster has said, you either need to build the capability into your application (sketch) to do "in-place"...
  7. It doesn't look like it. You may need to make...

    It doesn't look like it. You may need to make your own UI to read and save the config, update firmware, restore the config.
  8. Yes, and Paul explains why itís necessary. Donít...

    Yes, and Paul explains why itís necessary. Donít know what else can be said. F_CPU must be a macro,
  9. cores\Teensy4\clockspeed.c contains the link...

    cores\Teensy4\clockspeed.c contains the link below to an explanation by Paul as to why T4.x has the 32-bit variable F_CPU_ACTUAL. T3.x does not need F_CPU_ACTUAL, but if you want to add one for your...
  10. Replies
    46
    Views
    4,078

    I can't answer the address question, but what you...

    I can't answer the address question, but what you posted are just warnings embedded in the code. Are you getting warnings at compile time?
  11. Replies
    46
    Views
    4,078

    You might have better luck with QNEthernet versus...

    You might have better luck with QNEthernet versus NativeEthernet. Not a Platformio user, so can't comment on that.
  12. Replies
    10
    Views
    2,836

    NativeEthernet is becoming (if not already)...

    NativeEthernet is becoming (if not already) obsolescent, so I suggest moving to QNEthernet, which is now better supported. If switching libraries alone doesn't solve the issue, you can post the...
  13. Replies
    12
    Views
    572

    Very helpful, @KurtE. For anyone else wondering,...

    Very helpful, @KurtE. For anyone else wondering, here is a nice explanation from StackOverflow for why/when to use static inline functions in header files.
  14. Here is priority() function from class...

    Here is priority() function from class IntervalTimer, from file cores\Teensy4\IntervalTimer.h. Looks like when you try to set the priority, it won't let you set the priority lower than for other...
  15. 20 kHz is easily within the range of FreqMeasure....

    20 kHz is easily within the range of FreqMeasure. If you need the best accuracy, use FreqMeasure. If the variability of the timer interrupt is okay, then ... okay.
  16. Replies
    7
    Views
    2,169

    See the github page and thread below. The github...

    See the github page and thread below. The github FlasherX contains a working example of updating firmware from an SD card. It is based on the original Flasher3 and Flasher4 by @jonr, and extended to...
  17. You don't have to configure SPI2 to use the SD...

    You don't have to configure SPI2 to use the SD card. Just use SD.begin(BUILTIN_SDCARD), and then you are ready to open a file to read or write. The code below is from the ReadWrite example for the SD...
  18. Replies
    11
    Views
    691

    Hard to say, but probably the library you are...

    Hard to say, but probably the library you are using does not support Teensy.
  19. Yes, the T4.1 is amazing, and your use of both...

    Yes, the T4.1 is amazing, and your use of both timer and ADC completion interrupts is a good design.
  20. If you confirm it's a hardware issue, a software...

    If you confirm it's a hardware issue, a software work-around, at least temporarily, might be a "glitch filter" like this:



    period = fm.read();
    speed_temp = 60 * fm.countToFrequency(period);...
  21. Your understanding of how interrupts work is...

    Your understanding of how interrupts work is correct. You don't say which Teensy you are using, but with an interrupt every 3 us, your program may be spending 100% of its time in the ISR.

    Just as...
  22. That probably means that you have another copy of...

    That probably means that you have another copy of the library somewhere that Arduino is using instead of the one in your new installation of TD 1.58. If you were using FT2 for AVR, then you probably...
  23. I've never used this library, and I don't know...

    I've never used this library, and I don't know anything about the CMT (carrier modulator transmitter) that it uses, so I'm not sure where to look or what could be in conflict. CMT is also used by the...
  24. FrequencyTimer2 is working fine for me on T3.5,...

    FrequencyTimer2 is working fine for me on T3.5, with Arduino IDE 1.8.19 and TeensyDuino 1.58 beta2, Windows 7. I tested with both the Examples->Test sketch, and your program (needed semicolon after...
  25. Replies
    9
    Views
    838

    Suggest you try using QNEthernet rather than...

    Suggest you try using QNEthernet rather than NativeEthernet. NativeEthernet seems to be obsolescent, and QNEthernet is becoming more the de-factor T4.1 ethernet library.
  26. Excellent suggestion. Figure out if itís hardware...

    Excellent suggestion. Figure out if itís hardware or software.
  27. If you have interrupts disabled for too long, you...

    If you have interrupts disabled for too long, you could miss data, but this would tend to give you readings that look like longer periods (slower speeds), not the spikes youíre getting. Doing pulse...
  28. I deleted my own message because I didn't have...

    I deleted my own message because I didn't have time to test it, and I wasn't sure my change would fix the problem. As a general rule, don't define variables in header files. Define them in CPP or INO...
  29. Okay. Just note that when you get a spike in...

    Okay. Just note that when you get a spike in speed, it implies higher frequency and less time between edges, not longer time.
  30. Thanks @Ceetee, I was wondering if it could be...

    Thanks @Ceetee, I was wondering if it could be something like that. If that's the case, then he could just do longer averages at low speed and shorter ones at higher speed if necessary.
  31. When using period measurement like this, it's...

    When using period measurement like this, it's usually necessary to handle issues that occur at low speed, the main one being overflow of the period measurement that occurs at zero (or near zero)...
  32. Extra edges getting in there somehow? If you want...

    Extra edges getting in there somehow? If you want to try a different pin, you can use FreqMeasureMulti, which does the same thing as FreqMeasure, but allows use of almost any timer pin.
  33. You could also call countToFrequency() after each...

    You could also call countToFrequency() after each read, store the results in freq[] (type float), and do your running average on the (float) frequency values rather than the (unsigned) count values.
  34. On each pulse, FreqMeasure computes the period...

    On each pulse, FreqMeasure computes the period (time) since the previous pulse and stores the value in a FIFO, but if the FIFO is full, it throws the reading away. If the time between calls to...
  35. Not sure if this is what you are looking for, but...

    Not sure if this is what you are looking for, but this program will log a serial "conversation" between two devices to the serial monitor. Two hardware UARTs are used, as shown below.



    ...
  36. Replies
    16
    Views
    620

    T4.1 supports 4-bit serial PSRAM, which is fast...

    T4.1 supports 4-bit serial PSRAM, which is fast enough for many applications, but might be about the same as serial flash in terms of speed for reading. If your application is that large, it might be...
  37. Replies
    16
    Views
    620

    Teensy 4.0 and 4.1 use the NXP iMXRT1062...

    Teensy 4.0 and 4.1 use the NXP iMXRT1062 microcontroller, which has no internal flash. The program flash is an external 4-bit serial flash. The processor supports execution code from the serial...
  38. Paul, is there a way to pre-order some T3.5s from...

    Paul, is there a way to pre-order some T3.5s from the current production run? I need 10 or so.
  39. Replies
    16
    Views
    620

    That makes sense. Not even too much pain. For us!

    That makes sense. Not even too much pain. For us!
  40. Replies
    16
    Views
    620

    The hex file contains ASCII text. Each line is an...

    The hex file contains ASCII text. Each line is an "Intel hex" record that contains the flash address and data bytes. The Teensy bootloader receives and parses those ASCII text records and writes the...
  41. For the future, when you want to use an example...

    For the future, when you want to use an example as the starting point for a project, you can do it this way:

    1) Open the example project in Arduino IDE from the File->Examples menu.
    2) Choose...
  42. Replies
    10
    Views
    445

    I don't know anything about using vscode or...

    I don't know anything about using vscode or platformio, so I can't help you there. I have both Arduino 1.8.19 and Arduino 2.0 installed with TeensyDuino 1.58b2. I looked at the github for...
  43. Just a suggestion, but rather than debug with...

    Just a suggestion, but rather than debug with NativeEthernet, try with QNEthernet, which is now better supported, and go from there.
  44. abs() is part of the C standard library....

    abs() is part of the C standard library. Whichever of these functions you call, the argument is cast to the type in the declaration, and the return type will be the same type.



    int abs( int x...
  45. Replies
    10
    Views
    445

    Are you using the latest TeensyDuino 1.58 beta 2?...

    Are you using the latest TeensyDuino 1.58 beta 2? TD 1.58 updates gcc from 5.4.1 to 11.3.1 and should provide support for C++ 17.

    Always let us know which model of Teensy, which version of Arduino...
  46. FlasherX v2.3 with support for update from hex file on SD card

    run-time option for update via USB serial or hex file on SD card
    separate streams for hex file input (serial or SD) and user interaction
    hex file functions moved from ".ino" file to new files...
  47. Hi Rezo. I seem to remember people saying they...

    Hi Rezo. I seem to remember people saying they have done it, but I don't think anyone has posted a working sketch. I have tested FlasherX on Teensy Micromod, and I have tested with very large hex...
  48. That is really harsh. Try releasing a new version...

    That is really harsh. Try releasing a new version of something that has millions of users.
  49. See section 55.3.2.3 (PWM Synchronization) in the...

    See section 55.3.2.3 (PWM Synchronization) in the reference manual. I haven't done it, but I think it's what you want.
  50. I can outline an approach, but I don't think it...

    I can outline an approach, but I don't think it would be easy to do. If you search for "FlasherX" in the forum, you'll find a long thread. It's a way to update firmware over a UART serial or other...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4