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

    Ok, seems like the clock for GPT2 is not enabled...

    Ok, seems like the clock for GPT2 is not enabled at startup. Enabling it prior to usage of the timer fixed the issue.
  2. Replies
    1
    Views
    26

    Timer GPT question

    Is the timer GPT2 used for some internal tasks? Disabling it by setting GPT2_CR to zero crashes the system. GPT1 works as expected.


    void setup()
    {
    pinMode(LED_BUILTIN, OUTPUT);
    GPT1_CR =...
  3. Replies
    2
    Views
    51

    This is part of the core libraries which you can...

    This is part of the core libraries which you can find here (win10) "Arduino/hardware/teensy/avr/cores/teensy3" or "../teensy4" for the T4. Nothing to install,just use it.
    (Github:...
  4. Replies
    5
    Views
    104

    I think the root cause for that is that...

    I think the root cause for that is that reading/writing of the peripheral registers (not tightly coupled) takes rather long and is not primarily related to F_CPU but to the speed of peripheral bus. ...
  5. Replies
    5
    Views
    104

    Thanks for the measurments defragster....

    Thanks for the measurments defragster. Unfortuately it does not look very good. ~40% load for having 4 interval timer toggling pins at 100kHz does somehow not fit to the otherwise very fast...
  6. Replies
    5
    Views
    104

    See here for links to some tests from early this...

    See here for links to some tests from early this year. https://forum.pjrc.com/threads/57951-Teensy-3-x-library-for-tick-timer?p=218573&viewfull=1#post218573

    I reactivated one of the test sketches...
  7. Replies
    12
    Views
    76

    I did some testing with the PIT performance of...

    I did some testing with the PIT performance of the T4-Beta board: https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=195467&viewfull=1#post195467 and some posts later on. I found that...
  8. The compiler is very friendly to you and tells...

    The compiler is very friendly to you and tells you exactly what it wants you to do:


    src\main.cpp:28:31: warning: ISO C++ forbids taking the address of a bound member function to form a pointer...
  9. No, the T3.2 only has two differential pairs and...

    No, the T3.2 only has two differential pairs and only these are connected to the PGA. You can not measure the load cell output voltage directly (they would be too small).
  10. You are very welcome. As you already noticed,...

    You are very welcome. As you already noticed, this is one of the few friendly forums out there. So, feel free to ask if you need any support later on.
  11. Sorry, I was unclear about that. I didn't mean...

    Sorry, I was unclear about that. I didn't mean the bidirectional communication, I thought that you want to generate a new object whenever you detected a input from the slave. Thinking of it, having a...
  12. You are right, I remembered 80ms. And yes, the...

    You are right, I remembered 80ms. And yes, the HX711 is a good device but too slow for my application... Just use it if you like it, nothing speaks against it.
  13. The T3.2 has 2 ADC/PGAs. ADC0 uses the...

    The T3.2 has 2 ADC/PGAs. ADC0 uses the differential pin pair A10/A11 and ADC1 uses A12/A13. So, you can connect 2 load cells. TeensyLoadcell is able to use both in parallel (you pass the used adc...
  14. The main issue with using the built in PGA for...

    The main issue with using the built in PGA for load cells is its max gain of 64. The signal from a usual load cell after a 64x amplification is still too small to use the full input range of the ADC...
  15. I'm the one guy in a quite large family whom...

    I'm the one guy in a quite large family whom everybody calls on their computer issues... So I'm somehow used to live with scattered and incomplete information :-)


    'inline' is one of the most...
  16. Well, why add an external ADC if the internal is...

    Well, why add an external ADC if the internal is good enough for the application? But most important, I need a much faster readout (1ms) than the HX711 provides (80ms). I also tested a LTC2053...
  17. It is probably too late in Taiwan to answer...

    It is probably too late in Taiwan to answer today, so I assumed my assumptions from above are correct and just for fun and because I had some time I generated two test classes for you.

    There is...
  18. Ah, now comes the full information :-). A...

    Ah, now comes the full information :-).


    A controller sends data to one of the Teensy serial ports. The controller uses two protocols and can switch between them by a special command.
    The...
  19. It looks like you want to model a port class...

    It looks like you want to model a port class being compatible to various devices you want to attach. Usually I do such things the other way round. I.e, I try to model the class according to the...
  20. Replies
    24
    Views
    7,734

    Some time ago i did this:...

    Some time ago i did this: https://forum.pjrc.com/threads/47783...light=usb-host Works nicely. Paul also has a repo online doing a similar thing. https://github.com/PaulStoffregen/USB_Tester. However,...
  21. TeensyLoadcell Direct Loadcell Readout with T3.2

    I did a small library to directly readout a standard load cell with T3.2s built in differential ADC/PGA. Works nicely if you don't plan to make a high precision balance :-)
    Here the link to the...
  22. BTW: This https://cdecl.org/ is an amazing page...

    BTW: This https://cdecl.org/ is an amazing page translating between plain English and complicated c declarations e.g. the following

    declare arr as array of pointer to function (void) returning...
  23. Here a quick working example showing how that can...

    Here a quick working example showing how that can be done. Pointers to member functions have a funny syntax I prefer type aliases over typedefs. E.g. "using hasDataPtr = void (Port::*)()".
    Please...
  24. Replies
    58
    Views
    1,856

    JTAG pads (could even be some tiny, solderable...

    JTAG pads (could even be some tiny, solderable test-pads) would be wonderful
  25. Replies
    2
    Views
    29

    You are compiling with the wrong compiler...

    You are compiling with the wrong compiler (avr-gcc) and for a wrong controller (mmcu=atmega32u4). This can not run on a Teensy 3.2. Don't know where you have the makefile from but it is definitely...
  26. Replies
    7
    Views
    173

    And here a quick video what you can achieve with...

    And here a quick video what you can achieve with the built in decoders (Teensy 3.2) https://www.youtube.com/watch?v=ZLVXQfjfS6Q
  27. Right, references can not be reassigned. This is...

    Right, references can not be reassigned. This is much easier by using pointers instead of references.

    Just declare a global pointer holding the address of the Serial object you want to print to....
  28. Replies
    9
    Views
    194

    I don't think the graphs you showed point to...

    I don't think the graphs you showed point to missing steps. Missing steps would lead to a parallel shift in the curve. If this curves were created by missed steps you would mysteriously get the same...
  29. I'm controlling a particle brake with the builtin...

    I'm controlling a particle brake with the builtin DAC but doing that with an external DAC would be no issue.
  30. Replies
    13
    Views
    485

    I just remembered that I had another issue with...

    I just remembered that I had another issue with the STL some time ago when it complained about a missing std::__throw_bad_alloc();
    IIRC, this function is required if you have -fno-exceptions. It...
  31. Replies
    13
    Views
    485

    Yes, but exception handling should be deactivated...

    Yes, but exception handling should be deactivated by -fno-exceptions (which teensyduino sets). Maybe one of the libs which are linked in binary were originally compiled without -fno-exceptions? But...
  32. Replies
    13
    Views
    485

    Interesting. Seems to be some known problem. E.g....

    Interesting. Seems to be some known problem. E.g. https://answers.launchpad.net/gcc-arm-embedded/+question/203480. Simply adding definitions for the two symbols makes the linker happy and everything...
  33. Replies
    13
    Views
    485

    Just tried std::string and std::vector. The...

    Just tried std::string and std::vector. The following compiles and runs without problems. Tested on a T4.0


    #include "Arduino.h"
    #include <vector>
    #include <string>

    void setup()
    {
    ...
  34. Replies
    21
    Views
    267

    Did a quick search for crc16.h and found a few of...

    Did a quick search for crc16.h and found a few of them on my system. I'd try to change something in the "intended" header to provoke a compiler error. If you don't get an error it probably includes a...
  35. Replies
    21
    Views
    267

    Compiles nicely with VisualTeensy...

    Compiles nicely with VisualTeensy (https://youtu.be/8oTSou1I3IM) so in principle it should be possible with Platform.io as well.

    As you already pointed out it looks like it doesn't find the crc16...
  36. Saw that you trying Platform.io now. Just in case...

    Saw that you trying Platform.io now. Just in case you are still interested in VisualTeensy here a quick video showing how to compile the NXPMotionSense library in VisualTeensy.
    ...
  37. Replies
    4
    Views
    110

    Thanks Paul, I already implemented that after...

    Thanks Paul, I already implemented that after defragsters post.

    Your remarks about the sensibility of that are true of course. Thinking of it, it might be better to not pretend to restore things...
  38. Replies
    4
    Views
    110

    Thanks, that might be even better than setting it...

    Thanks, that might be even better than setting it to the default value;
  39. Replies
    4
    Views
    110

    Attach default Interupt Vector

    I'm attaching an interrupt handler with attachInterruptVector(...). Does anyone know how to re-attach the original default handler? There is a "unused_interrupt_vector" in startup.c but this seems...
  40. Replies
    11
    Views
    403

    Never finalized it but if you want to go that...

    Never finalized it but if you want to go that way, here a starter https://forum.pjrc.com/threads/47783-Teensy-programs-Teensy?highlight=usb-host
  41. Replies
    11
    Views
    403

    I had the same problem in a production...

    I had the same problem in a production environment a couple of years ago. You can disable this behaviour in the windows registry. See here:
    ...
  42. Replies
    3
    Views
    95

    In case you are interested: here is the...

    In case you are interested: here is the definition of Serial.begin... Useful if you want your code to be compatible to legacy boards, but if you code for a Teensy it is rather pointless to call it...
  43. Wow, I do not comment on other people's coding...

    Wow, I do not comment on other people's coding style, so, let's put it that way: this is a very interesting way to structure a program.

    The problem for VisualTeensy is that this 1700 + 200 line...
  44. I'll give it a try, hang on

    I'll give it a try, hang on
  45. Replies
    5
    Views
    311

    No, the CMDLIne tool seems to be at its "pre T4"...

    No, the CMDLIne tool seems to be at its "pre T4" state. There is also a peculiarity regarding the base address of the firmware. I followed the information from this issue...
  46. Replies
    5
    Views
    311

    No, that's a good point. Do you know where I can...

    No, that's a good point. Do you know where I can find information about that?
  47. Just to make sure: You did select the needed...

    Just to make sure: You did select the needed libraries in the libraries tab?
  48. Set the Arduino Folder to...

    Set the Arduino Folder to C:\Arduino\1.8.9-TD-1.47 and use Quick Setup in the Project Tab

    17472
  49. Sounds familiar :-)

    Sounds familiar :-)
  50. Replies
    5
    Views
    311

    TeensySharp is now compatible to T4.0

    I updated TeensySharp https://github.com/luni64/TeensySharp to be compatible with Teensy 4.0.

    It provides a few helper classes for C# Windows applications to perform the following tasks:


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