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
    4
    Views
    77

    Ah, that's interesting. Never bothered to read...

    Ah, that's interesting. Never bothered to read into the event responder thing. On a first glance it looks like it should work, will give it a try later.
  2. Thread: TeensyTimerTool

    by luni
    Replies
    134
    Views
    3,891

    Here an hopefully clear explanation how the...

    Here an hopefully clear explanation how the software timers work:


    The software timers (i.e. the TCK timers) are driven by calling a tick function as often as possible. In this tick function the...
  3. Thread: TeensyTimerTool

    by luni
    Replies
    134
    Views
    3,891

    I implemented the feature in version v0.1.4 on...

    I implemented the feature in version v0.1.4 on GitHub (should be available in the Arduino library manager in a couple of hours). You can find the complete config documentation here:...
  4. Replies
    4
    Views
    77

    Pragmatic solution but not very elegant (need to...

    Pragmatic solution but not very elegant (need to change my lib whenever the core yield changes). Anyway, it does the job, so I implemented it this way.
  5. Thread: TeensyTimerTool

    by luni
    Replies
    134
    Views
    3,891

    Exactly, thats the idea

    Exactly, thats the idea
  6. Replies
    4
    Views
    77

    Hooking into yield()

    I know how to override yield() but doing this in a library is not very polite since it disables the standard yield functionality (serial event etc..)

    Does anyone know if it is possible to hook...
  7. Thread: TeensyTimerTool

    by luni
    Replies
    134
    Views
    3,891

    Sorry for that. The reason is that the...

    Sorry for that. The reason is that the TeensyTimerTool overrides the yield function which is also taking care of the SerialEvent stuff. I'll make that configurable and update the lib later today.
  8. Replies
    5
    Views
    101

    I'm not sure, but if you are just looking for the...

    I'm not sure, but if you are just looking for the relation of GPIO port/bit and the Teensy pin numbers you can print them out with the code described here:...
  9. Replies
    6
    Views
    128

    No, it takes the next free timer from the pool...

    No, it takes the next free timer from the pool (use this only for simple cases if you don't care which timer you get). The pool is defined in defaultconfig.h and its composition can be changed. See...
  10. Replies
    6
    Views
    128

    Actually, calling delay() is fine, the TCK timers...

    Actually, calling delay() is fine, the TCK timers are ticked via yield() which is implicitly called in delay. If you have a long working loop you can always place a call to yield to keep the timers...
  11. Replies
    2
    Views
    55

    I don't know if the rest is OK, but at least I...

    I don't know if the rest is OK, but at least I don't see any code clearing the timer overflow flag?
  12. Thread: TeensyTimerTool

    by luni
    Replies
    134
    Views
    3,891

    Never mind, this forum is here to help... Let me...

    Never mind, this forum is here to help... Let me know if something is unclear in the documentation.
  13. Thread: TeensyTimerTool

    by luni
    Replies
    134
    Views
    3,891

    The FTM timers are only available on the T3.x...

    The FTM timers are only available on the T3.x Boards. Here the List of supported timers: https://github.com/luni64/TeensyTimerTool/wiki/Supported-Timers
  14. Thread: TeensyTimerTool

    by luni
    Replies
    134
    Views
    3,891

    I added the FTM_DEFAULT_PSC setting to override...

    I added the FTM_DEFAULT_PSC setting to override the auto prescaling value for the FTM timers. See here https://github.com/luni64/TeensyTimerTool#configuration for the documentation.

    You can query...
  15. Replies
    14
    Views
    269

    If you want to find out which pin belongs to...

    If you want to find out which pin belongs to which bit in the GPIO registers you can have a look at the code here: https://github.com/TeensyUser/doc/wiki/GPIO#low-level-access
  16. Thread: TeensyTimerTool

    by luni
    Replies
    134
    Views
    3,891

    Perfect, let me know if you need further help

    Perfect, let me know if you need further help
  17. Thread: TeensyTimerTool

    by luni
    Replies
    134
    Views
    3,891

    Yes, should work, can you post your code?

    Yes, should work, can you post your code?
  18. Thread: TeensyTimerTool

    by luni
    Replies
    134
    Views
    3,891

    The TMR_DEFFAULT_PSC setting is for the TMR...

    The TMR_DEFFAULT_PSC setting is for the TMR timers of a Teensy 4. T3.2s use the FTM timers instead so that won't work. Unfortuantely, I simply forgot to implement this setting for the FTMs... Sorry...
  19. Replies
    23
    Views
    515

    If your Teensy is in Serial mode you'd set the...

    If your Teensy is in Serial mode you'd set the Baud rate to 134 to start the bootloader





    Basically you need to

    Start the boot loader (see above)
    -> Teensy appears as a HID device.
  20. Replies
    14
    Views
    195

    Technically this would be possible, but it might...

    Technically this would be possible, but it might be confusing for the average user.


    The priority is not bound to the actual timer but to its parent module. I.e. for a T4 all PITs or all 4...
  21. Replies
    14
    Views
    195

    You probably mean the IRQ numbers? They are in...

    You probably mean the IRQ numbers? They are in imxrt.h for the Teensy 4. If you want to change the priority for say the GPT1 timer module to 48 you'd do a


    NVIC_SET_PRIORITY(IRQ_GPT1, 48);
    ...
  22. Replies
    14
    Views
    195

    Here the link to the TeensyTimerTool stuff:...

    Here the link to the TeensyTimerTool stuff: https://github.com/luni64/TeensyTimerTool It currently handles FTM, GPT, QUAD timers and a software timer (PIT is under construction). It doesn't touch...
  23. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    Added a quick tutorial on how to use the RAWHID...

    Added a quick tutorial on how to use the RAWHID mode to communicate with a PC. https://github.com/TeensyUser/doc/wiki/Raw-HID (PC examples currently are for Windows)
  24. Looks like China is back! Got some test boards...

    Looks like China is back! Got some test boards yesterday which I ordered a couple of weeks ago.

    19433

    The multiplexed encoder library described above works nicely with it.
  25. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    I restructured the FAQ...

    I restructured the FAQ section of the WIKI to have dedicated pages for the items. This makes maintaining the FAQ much easier. I also added a short instruction how to add new FAQ content.
  26. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    Using colons in filenames seems to completely...

    Using colons in filenames seems to completely confuse GIT. I removed the colon and fixed the link from the wiki sidebar to the page. Might be a good idea to update the link in #38 above, since this...
  27. Replies
    77
    Views
    4,214

    Thanks a lot for the shout out Frank, but...

    Thanks a lot for the shout out Frank, but unfortunately this is still work in progress. Having it in the core might generate a lot of support requests which I currently can't handle. Meanwhile it is...
  28. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    Wow, just saw that @MichaelMeissner added a...

    Wow, just saw that @MichaelMeissner added

    a huge list of breakout boards https://github.com/TeensyUser/doc/wiki/Teensy-Shields-and-Breakout-Boards and
    some very useful electronics parts....
  29. Replies
    4
    Views
    308

    Here a good summary about I2C, the related...

    Here a good summary about I2C, the related libraries and their T4 status from MichaelMeissner https://github.com/TeensyUser/doc/wiki/I2C#i2c. Maybe that helps...
  30. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    Still growing, 41 pages now :-) ...

    Still growing, 41 pages now :-) https://github.com/TeensyUser/doc/wiki
    But still so much missing... check it out and add content if you like (it's public)
  31. Accelstepper relies on calling some function...

    Accelstepper relies on calling some function (run()??) as often as possible. If other software blocks too long run()? may not be called often enough which slows down Accelstepper. You can try to call...
  32. BTW: just added parts of the information of the...

    BTW: just added parts of the information of the thread to the Teensy WIKI https://github.com/TeensyUser/doc/wiki/FAQ#UPL_5
  33. Do you mean uploading blink.ino worked or do you...

    Do you mean uploading blink.ino worked or do you mean after uploading blink.ino the next upload worked without button? If so, your sketch has a problem. If after uploading blink.ino you still need...
  34. Just that I got that right: You installed...

    Just that I got that right:


    You installed the Serial Driver
    You did set the USB-Type to Serial
    You pressed the button and uploaded the blink.ino from the example
    After that, in device...
  35. Are you sure you installed the Serial driver?...

    Are you sure you installed the Serial driver? Under Win7 this is required for uploading (without button press) even if you don't use Serial in your sketch. ...
  36. Usually you are not 'forced' to press the button....

    Usually you are not 'forced' to press the button. Since you see the COM port in the device manager (with a warning sign) I assume that something is wrong with your sketch. I recommend to make sure...
  37. Did pressing the program button work?

    Did pressing the program button work?
  38. Replies
    23
    Views
    515

    That would work of course. Just make sure that...

    That would work of course. Just make sure that you never distribute a buggy firmware which crashes the USB stack since this will brick your device without the program button rescue ring :-)
  39. Replies
    23
    Views
    515

    I think in principle that should work without...

    I think in principle that should work without problem. You can easily change the VID/PID of the Teensy in the USB files. The TeensySharp uploader needs to know the VID / PID only for finding the...
  40. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    Looks like public wiki does not automatically...

    Looks like public wiki does not automatically mean public pushing. I think this would make it quite chaotic. So, let's stick with using the Web Editor.

    Edit:
    Here a nice trick:

    You can open...
  41. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    Interesting, seems like Franks SPDIF file is...

    Interesting, seems like Franks SPDIF file is somehow broken. I'll backup and delete it.

    @Frank: Where do you want that linked from? Audio?


    Did you use the link from below the sidebar? Works...
  42. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    This doesn't seem to be linked from anywhere?...

    This doesn't seem to be linked from anywhere? Will be difficult to find in a couple of days...

    github.com/TeensyUser/doc/wiki/Teensy-40%3A-SPDIF-in-and-Audioshield
  43. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    You probably cloned the repo. You need to clone...

    You probably cloned the repo. You need to clone the wiki. Link is below the sidebar or here: https://github.com/TeensyUser/doc.wiki.git
    I don't know if there is public push access. If not, I can add...
  44. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    See one post above... Sure it is. Quick...

    See one post above...


    Sure it is.
    Quick tip: code sections in GitHub Markdown start/end with 3 backticks



    ```
    // some code
  45. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    This seems to grow quickly :-) I updated the...

    This seems to grow quickly :-)

    I updated the Serial page https://github.com/TeensyUser/doc/wiki/Serial showing how to use pictures . If you can't link to some place in the net you can also store...
  46. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    Good, I added a MIDI entry to the sidebar. Feel...

    Good, I added a MIDI entry to the sidebar. Feel free to add any useful content
  47. Replies
    23
    Views
    515

    If you want to integrate uploading into your...

    If you want to integrate uploading into your windows app you can also have a look here https://github.com/luni64/TeensySharp
  48. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    Exactly, if it works out its good, if not: it was...

    Exactly, if it works out its good, if not: it was super easy to setup, so nothing is lost


    Great, keep the content coming.

    I also added a stub to your TSet lib (Build Systems | TSet). Maybe...
  49. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    WAT? Come on, this is not novel writing, its...

    WAT? Come on, this is not novel writing, its technical stuff about microcontrollers. I'm quite sure that your english is more than sufficient for this :-)
  50. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,249

    Teensy WIKI

    I just placed a public Teensy WIKI on GitHub and entered some random content. https://github.com/TeensyUser/doc/wiki.

    Some examples

    Serial Setup
    Encoder Multiplexing Library


    The WIKI...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4