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

Search:

Type: Posts; User: luni

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    164

    That won't work since it will mess up the...

    That won't work since it will mess up the interrupt handling. Anyway, I'd simply define a relay function which, depending on the current mode, increments one of two variables. Limiting the values to...
  2. Thanks a lot, updated the repository accordingly....

    Thanks a lot, updated the repository accordingly.


    BTW:


    Doesn't work without DSB (or other syncing code) for short ISRs because the ISR will be reentered (interrupt flag not yet set after...
  3. That's great. I was afraid that the std::function...

    That's great. I was afraid that the std::function interface is quite expensive which it obviously isn't :-)


    This is weird. The TMR has a combined IRQ for all 4 channels, therefore it needs to...
  4. You need to take into account that you can...

    You need to take into account that you can utilize the time needed for syncing the interrupt flag. Here an example using the code from LAtimes and replacing the callback by this:



    void...
  5. Thread: TeensyTimerTool

    by luni
    Replies
    261
    Views
    17,041

    Sorry for the delay, I finally found some time...

    Sorry for the delay, I finally found some time trying your code. I can not reproduce the problem. It generates nice 10ms calls here. Do you still have this problem?
  6. Replies
    6
    Views
    164

    Instead of calling your sequencer from loop I'd...

    Instead of calling your sequencer from loop I'd use an interval timer to generate the calls. You can then simply change the timer period when the encoder value changes. IIRC you are using the...
  7. Replies
    361
    Views
    41,218

    As Kurt mentioned, you can use the...

    As Kurt mentioned, you can use the TeensyTimerTool if you need to access more timers with a high level interface. For the T4 you can use it with

    2x GPT 32bit
    16x TMR 16bit
    4x PIT 32bit
    20x...
  8. Nice measurement. Fits well with my experiences....

    Nice measurement. Fits well with my experiences. A few remarks:


    I might be wrong, but, I think that the "150MHz" timer clock speed is not fixed but actually F_CPU / 4.
    You do not need to...
  9. Thread: Raspberry Pi Pico

    by luni
    Replies
    172
    Views
    9,970

    Sparkfun now has a MicroMod version of the Pico:...

    Sparkfun now has a MicroMod version of the Pico: https://www.sparkfun.com/products/17720. Looks like the MicroMod form factor is getting traction. Looking forward to the first MM T4 :-) (I already...
  10. Per default the TimerTool runs the GPT and PIT...

    Per default the TimerTool runs the GPT and PIT timers at 24MHz. You can easily switch them to 150MHz in the config file. Configuration is described here...
  11. Weird. The library code seems to be quite...

    Weird. The library code seems to be quite elaborated. Would be surprised if it has such bugs in it. Maybe you changed something unintentionally while porting stuff?
  12. Yes, but does it print anything later while you...

    Yes, but does it print anything later while you are playing with the commands and getting the error? If so, the library might mess up some intervaltimer settings.
  13. The "dsb" is only effective for very short ISRs....

    The "dsb" is only effective for very short ISRs. The one used by the lib is probably long enough. (But this should be fixed anyway I'd say)

    Did you try to look if the library calls the functions...
  14. It wants to include some T4-Powerbutton.h? Not...

    It wants to include some T4-Powerbutton.h? Not included in the zip...
  15. Wild guess: Can it be that you installed the FNET...

    Wild guess: Can it be that you installed the FNET library to your sketchbook/library folder as well?
  16. I just tried what you described above. Compiles...

    I just tried what you described above. Compiles without a single warning here. (TD 1.54, Arduino 1.8.12, T4.1)



    ....
    IB [CC] cipher_wrap.c
    LIB [CC] ctr_drbg.c
    LIB [CC] ccm.c
    LIB [CC]...
  17. I can have a look. Which board are you compiling...

    I can have a look. Which board are you compiling for?
  18. @weedog: Here here some dotNet examples:...

    @weedog: Here here some dotNet examples: https://github.com/TeensyUser/doc/wiki/Serial I tested communication with dotNet up to some 15MByte / sec (T4.0). There also is a corresponding forum thread...
  19. 32kHz interrupt frequency is not really a problem...

    32kHz interrupt frequency is not really a problem for a 600MHz processor.
    Most of the timers have a possibility to set/toggle a pin on timer overflow. I don't know if the RTC timer is also able to...
  20. Did a quick check, setting SNVS_HPCR_PI_FREQ to 0...

    Did a quick check, setting SNVS_HPCR_PI_FREQ to 0 calls the ISR every 1/32'768 s.

    23721

    Here the relevant section of the manual:

    23722
  21. The RTC can generate periodic interrupts. Below...

    The RTC can generate periodic interrupts. Below an example which toggles the LED every second. You can also set it up for other frequencies derived from the 32'768Hz clock (see code below). I don't...
  22. Replies
    1
    Views
    118

    You can have a look at this library...

    You can have a look at this library https://github.com/luni64/TeensyTimerTool which provides a high level interface to (some of) the Teensy 3.x and 4.x timers. Documentation can be found here:...
  23. You can not access non static member variables...

    You can not access non static member variables from a static member function. This is quite obvious because a static member function like your Blink() "belongs" to the class not to a specific object....
  24. Replies
    105
    Views
    18,232

    No, there are only two timer channels on FTM1/2 ...

    No, there are only two timer channels on FTM1/2 :-(

    However, if you don't need the controllers at the same time it should work. The controllers are supposed to release the timers after the...
  25. The published version of TeensySharp is quite old...

    The published version of TeensySharp is quite old and doesn't detect all USB Types. There is a much newer version in the development branch which should work with FlightSim, but it still has some...
  26. Thread: TeensyTimerTool

    by luni
    Replies
    261
    Views
    17,041

    Looks like you are in the wrong thread? This is...

    Looks like you are in the wrong thread? This is TeensyTimerTool, not TeensyStep :-)
    Anyway, on a T3.2 FTM1 only has 2 channels. A controller needs one PIT and two FTMs so, you can only use one...
  27. Thread: TeensyTimerTool

    by luni
    Replies
    261
    Views
    17,041

    Strange, this is the most simple application and...

    Strange, this is the most simple application and should work of course. I'm currently not at home and don't have a T4 with me for testing I can have a closer look on Friday. Does it work with other...
  28. Replies
    12
    Views
    489

    Thanks, copied your post into the "Connectivity"...

    Thanks, copied your post into the "Connectivity" section of the user WIKI (https://github.com/TeensyUser/doc/wiki/FLEXIO) Feel free to edit and add other stuff to the wiki as you like (the text...
  29. Replies
    12
    Views
    489

    This is a very nice writeup. Mind if I copy it to...

    This is a very nice writeup. Mind if I copy it to the user WIKI?
  30. Replies
    5
    Views
    274

    Yes, was quite some fun and turns out to be quite...

    Yes, was quite some fun and turns out to be quite useful. I bought the heater cartridges and the NTC from Amazon. The rest was just stuff lying around.


    Thanks, the small size was a design goal...
  31. Replies
    5
    Views
    274

    Bootloader soldering with a DIY hotplate

    I'm quite used to soldering small SMD parts on prototype boards but those QFN chips like the Teensy bootloaders are a borderline experience for me and my soldering iron. I therefore wanted to give...
  32. Replies
    9
    Views
    438

    Those reed relays (HE3621...

    Those reed relays (HE3621) have the flyback diodes integrated and a DC resistance of 500R. Seems to be OK to directly drive them from a processor pin !?!
  33. Replies
    13
    Views
    322

    Isn't this normal? New Teensies come as HID...

    Isn't this normal? New Teensies come as HID devices, they don't have serial enabled by default. If you expect to see the board as serial device in Windows you need to upload a sketch compiled with...
  34. Interesting! However, linker scripts are...

    Interesting! However, linker scripts are definitely not my core competence. But I'm sure someone knowing more about this stuff will jump in to help.
  35. Sounds good. No, you need this one...

    Sounds good.


    No, you need this one https://github.com/PaulStoffregen/cores

    Let me know if you want me to test your extension.
  36. When I started this project a couple of years ago...

    When I started this project a couple of years ago I was thinking of a plugin as well. I decided to not make a plugin/extension because of two reasons:


    I didn't want a dependency on the used...
  37. Don't ask me why but it works without the...

    Don't ask me why but it works without the priority argument. I.e.,



    void __attribute__((constructor )) init_foo(void)
    {
    foo = 5;
    }
  38. Replies
    159
    Views
    18,267

    Something like this? https://github.com/pasqo/Unio

    Something like this? https://github.com/pasqo/Unio
  39. Replies
    159
    Views
    18,267

    BTW: if you need a MAC address for projects not...

    BTW: if you need a MAC address for projects not containing a Teensy, there are small (e.g. sot23) and cheap chips with preprogrammed MAC. E.g.: https://www.microchip.com/wwwproducts/en/11AA02E48. In...
  40. Replies
    5
    Views
    181

    A motor doesn't generate a force but a torque...

    A motor doesn't generate a force but a torque (the rotational equivalent of force). If you have an object with a weight of say F=10N on a lever arm of say L=0.5m length the motor needs to generate a...
  41. Replies
    5
    Views
    181

    You probably mean the torque in newton-meter? ...

    You probably mean the torque in newton-meter?

    Here some information about dynamometers https://en.wikipedia.org/wiki/Dynamometer, commercial: ...
  42. Thread: TeensyTimerTool

    by luni
    Replies
    261
    Views
    17,041

    AFAIK the audio library uses some FTM timers....

    AFAIK the audio library uses some FTM timers. Should be documented somewhere. Did you try to use another FTM module?
  43. Replies
    4
    Views
    245

    I stumbled over the same issue in one of my...

    I stumbled over the same issue in one of my libraries a couple of months ago. It looks like the construct was never "legal" but gcc ignored the error in older versions. There are a lot of discussions...
  44. Replies
    37
    Views
    737

    I'm probably missing something but void...

    I'm probably missing something but



    void setup()
    {
    while(!Serial);

    char test[] = "Hello World\n";
    Serial.print(test);
  45. Replies
    37
    Views
    737

    Serial.write() takes byte arrays... And...

    Serial.write() takes byte arrays...
    And Serial.printf takes char arrays...
  46. Replies
    3
    Views
    270

    That list looks like some Teensy2 (AVR) stuff....

    That list looks like some Teensy2 (AVR) stuff. You find the interrupts 4.x interrupt defines in imxrt.h https://github.com/PaulStoffregen/cores/blob/master/teensy4/imxrt.h. You can use...
  47. Replies
    12
    Views
    486

    Actually, TME is my favorite EU seller. They have...

    Actually, TME is my favorite EU seller. They have a very large assortment and deliver fast. (Usually I get my parts in 2-3 days to Germany)
  48. Did you try this:...

    Did you try this: https://www.pjrc.com/teensy/td_libs_FreqMeasure.html ?
  49. Replies
    12
    Views
    486

    TI has a single gate smd logic line. Would a...

    TI has a single gate smd logic line. Would a 74HCT1G125 work? Here the datasheet https://www.ti.com/product/SN74AHCT1G125-Q1

    Ups, 1 minute to late :-)
  50. Replies
    5
    Views
    503

    I also did one some years ago. It used a T3.2 and...

    I also did one some years ago. It used a T3.2 and transmitted the count data via a Websocket server into the LAN/WLAN. The application was running in a browser (HTML5) so, anything which is able to ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4