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
    2
    Views
    26

    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?
  2. Thread: TeensyTimerTool

    by luni
    Replies
    125
    Views
    3,602

    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.
  3. Thread: TeensyTimerTool

    by luni
    Replies
    125
    Views
    3,602

    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
  4. Thread: TeensyTimerTool

    by luni
    Replies
    125
    Views
    3,602

    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...
  5. Replies
    14
    Views
    225

    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
  6. Thread: TeensyTimerTool

    by luni
    Replies
    125
    Views
    3,602

    Perfect, let me know if you need further help

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

    by luni
    Replies
    125
    Views
    3,602

    Yes, should work, can you post your code?

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

    by luni
    Replies
    125
    Views
    3,602

    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...
  9. Replies
    23
    Views
    454

    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.
  10. Replies
    14
    Views
    168

    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...
  11. Replies
    14
    Views
    168

    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);
    ...
  12. Replies
    14
    Views
    168

    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...
  13. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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)
  14. 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.
  15. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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.
  16. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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...
  17. Replies
    74
    Views
    3,470

    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...
  18. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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....
  19. Replies
    4
    Views
    273

    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...
  20. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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)
  21. 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...
  22. 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
  23. 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...
  24. 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...
  25. 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. ...
  26. 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...
  27. Did pressing the program button work?

    Did pressing the program button work?
  28. Replies
    23
    Views
    454

    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 :-)
  29. Replies
    23
    Views
    454

    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...
  30. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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...
  31. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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...
  32. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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
  33. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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...
  34. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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
  35. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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...
  36. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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
  37. Replies
    23
    Views
    454

    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
  38. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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...
  39. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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 :-)
  40. Thread: Teensy WIKI

    by luni
    Replies
    47
    Views
    1,165

    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...
  41. Yes, definitely. In fact it is only a few...

    Yes, definitely.



    In fact it is only a few clicks to setup a wiki on GitHub :-). I just did that (https://github.com/TeensyUser/doc/wiki), added some structure and a first draft of an...
  42. Do you mean to detect the dependencies...

    Do you mean to detect the dependencies automatically or just copying the libs to the project? The first might be difficult (need to parse the headers) the second should already be possible (well,...
  43. I didn't add this because, as you mention, a...

    I didn't add this because, as you mention, a normal *ino won't compile unless it complies to the usual c++ rules. Users probably stumble over forward declaration issues quickly. But if there is a...
  44. It is not very likely that I'll rewrite this...

    It is not very likely that I'll rewrite this anytime soon in a platform agnostic way (I simply won't find enough time for this) but finding out why it doesn't work with Wine might be doable some...
  45. That's true of course and this obviously is the...

    That's true of course and this obviously is the reason why Arduino was and is such a game changer. It enables people having absolutely no experience with microcontrollers to be up and running in...
  46. Need to leave, quick note: there is a build...

    Need to leave, quick note: there is a build system setting. Change from makefile to builder then you can use standard .ino sketches
  47. I try to explain briefly. (need to work on the...

    I try to explain briefly. (need to work on the documentation, some kind of quick start guide for the impatient might be a good idea :-)

    To check if everything works correctly I recommend the...
  48. Good idea ;) Here a few things which might be...

    Good idea ;)

    Here a few things which might be helpful when you play around with vsCode:


    Install the c/c++ extension (vsCode will offer it...) to get intellisense
    The compiling /...
  49. I can't comment on AccelStep but there is a...

    I can't comment on AccelStep but there is a conceptual error in the TeensyStep part of your code. You can not change any of the motor parameters (speed, target acceleration...) while the motor runs....
  50. What happens if you press the programing button...

    What happens if you press the programing button before uploading?

    I ask because I once had a similar problem with a buggy sketch which grabbed a lot of resources so that the rebooting took very...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4