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
    3
    Views
    93

    If you don't need a customized GUI you can simply...

    If you don't need a customized GUI you can simply use https://github.com/Koromix/tytools to do the PC part of your tasks. Communication would be Serial or SerEmu (HID), whichever you prefer...
  2. I usually use the "solder drag" technique...

    I usually use the "solder drag" technique and remove bridges with a wick. I used to use small pin point irons but actually it works best wit a large tip which quickly transports heat. I find aligning...
  3. That one https://www.adafruit.com/product/3930...

    That one https://www.adafruit.com/product/3930 should be good, here is a project description which might give you a head start:...
  4. Ups sorry not my day :-) Embarrassing :-)

    Ups sorry not my day :-) Embarrassing :-)
  5. Hm, at 3000rpm? If you use a 100cpr encoder...

    Hm, at 3000rpm? If you use a 100cpr encoder you'll end up with a count rate of 3000*60*100 = 18MHz :-) I'd use a disc with a hole and a (fast) optical switch. Would give 180kHz which seems more...
  6. Replies
    86
    Views
    6,524

    Sorry, overlooked your post. I don't think this...

    Sorry, overlooked your post. I don't think this is related to the standard library since it works perfectly well with TD1.53. And I don't think that the standard library was exchanged between 1.53...
  7. Replies
    86
    Views
    6,524

    Just in case someone cares here additional info...

    Just in case someone cares here additional info for the GCC9 problem:

    If I change the following in the T4 linkerscript (line 72ff)



    .text.csf : {
    FILL(0xFF)
    . = ALIGN(1024);
    ...
  8. Replies
    86
    Views
    6,524

    The last answer from the link Kurt gave in #13...

    The last answer from the link Kurt gave in #13 seems to describe the root cause and how to solve it. See here...
  9. You might also give the tyTools a try...

    You might also give the tyTools a try https://github.com/Koromix/tytools. It comes with a nice GUI + SerMon, provides a command line tool and can handle multiple Teensies.
  10. Replies
    58
    Views
    3,103

    At the end both methods do the same. Either...

    At the end both methods do the same. Either overwrite an existing copy with the new files or just copy the 4 missing math libraries to a new installation.
  11. Replies
    58
    Views
    3,103

    You first need to copy the math libraries to the...

    You first need to copy the math libraries to the gcc folder as explained in the WIKI.

    Here the error messages I get. They are from the linker not from the compiler and are related to the changes...
  12. Replies
    58
    Views
    3,103

    Thanks for testing. I had a hard time reproducing...

    Thanks for testing. I had a hard time reproducing the bug myself until I remembered that I "simplified" the test code before posting by replacing std::string with char*. Not a good idea because the...
  13. Replies
    58
    Views
    3,103

    Here an instruction for the Arduino IDE and...

    Here an instruction for the Arduino IDE and VisualTeensy: https://github.com/TeensyUser/doc/wiki/GCC. PlatformIO should also be simple but I never tried.
  14. Replies
    58
    Views
    3,103

    Looks like my post was a bit unclear. As...

    Looks like my post was a bit unclear.
    As mentioned here https://forum.pjrc.com/threads/66357-Teensyduino-1-54-Beta-7?p=274861&viewfull=1#post274861, I only observe this issue when using newer...
  15. Replies
    58
    Views
    3,103

    I can recheck later today. Just to make sure: You...

    I can recheck later today. Just to make sure: You did test it with GCC9 right?
  16. Replies
    18
    Views
    3,108

    See here:...

    See here: https://forum.pjrc.com/threads/61373-Using-GDB-with-Teensy-without-hardware-debugger-first-Beta?highlight=gdb+stub
  17. Replies
    58
    Views
    3,103

    Another reminder: it still breaks compatibility...

    Another reminder:
    it still breaks compatibility with the STL for newer compilers. E.g. this:



    #include <map>

    void setup()
    {
    while(!Serial){}
  18. Replies
    18
    Views
    3,108

    AFAIK this requires a debug probe which needs to...

    AFAIK this requires a debug probe which needs to be attached to the JTAG/SWD interface of the board which Teensy doesn't support. Or is this some clever software only debugging?
  19. Glad it works! ... and nothing to apologize. At...

    Glad it works!
    ... and nothing to apologize. At least this made me to finally solder that ethernet adapter :-)
  20. Thanks that was helpful. I had a quick look at...

    Thanks that was helpful. I had a quick look at your code.
    Following results:

    1) This is not related to the TimerTool, I get the same problem if I completely remove the TimerTool from the test...
  21. Ok, if you are using the GPT timers a clash is...

    Ok, if you are using the GPT timers a clash is not very likely (at least I didn't see any use of the GPT timers in the Ethernet library). Anyway, just to make sure I'd try the TCK timers. They are...
  22. Which timer are you using for your stepper...

    Which timer are you using for your stepper control? It looks like NativeEthernet is using TMR4 (quad timer) per default:...
  23. Replies
    10
    Views
    580

    Played a bit with your code. The problem is that...

    Played a bit with your code. The problem is that "wasPressed" is true for a short press and a long press which makes detecting a long press somehow difficult. I changed your button class to be able...
  24. Replies
    10
    Views
    580

    Ok, this is using Bounce in the background. AFAIK...

    Ok, this is using Bounce in the background. AFAIK you are supposed to call update as often as possible. Your delays (where you don't update the buttons) might confuse the debounce algorithm.

    You...
  25. Replies
    10
    Views
    580

    What Button library are you using?

    What Button library are you using?
  26. Replies
    11
    Views
    471

    Sorry, I was a bit sloppy when I wrote "string"....

    Sorry, I was a bit sloppy when I wrote "string". Of course I meant to say c_string, i.e. a plain old char array.
  27. Replies
    11
    Views
    471

    Here some code showing what is happening. ...

    Here some code showing what is happening.



    #include "Arduino.h"

    void testFunction(char *data)
    {
    Serial.printf("Address of data: %010p\n", data);
    Serial.flush();
  28. The SerEmu interface not related to fligthsim....

    The SerEmu interface not related to fligthsim. More or less all Teensy USB modes which don't have a "real" Serial interface provide a SerEmu interface. You find the corresponding report descriptor in...
  29. Replies
    11
    Views
    459

    ... and since you seem to like the std::chrono...

    ... and since you seem to like the std::chrono literals (e.g. ms, s, etc), here a version showing how to set the reload value directly in time units. BTW: calculation of timer ticks is done at...
  30. Replies
    11
    Views
    459

    What do you mean by "doesn't work"? Works here...

    What do you mean by "doesn't work"? Works here without issue.

    I did a few changes to your code to make it easier to analyze results:



    #include "Arduino.h"
    #include "TeensyTimerTool.h"...
  31. Here a simple example showing how to receive...

    Here a simple example showing how to receive SerEMU data from a FligthSim device (uses Mike O'Brien's HidLibrary https://www.nuget.org/packages/hidlibrary/3.3.40)



    using HidLibrary;
    using...
  32. Replies
    11
    Views
    459

    Setting the OCR1 register of the GPT timer will...

    Setting the OCR1 register of the GPT timer will reset its counter.



    If you set the counter in the OCR-ISR the actual period will be prolonged by the time it takes from the OCR1 event to the...
  33. Replies
    11
    Views
    459

    Just did the same :-) Can't observe any drift. ...

    Just did the same :-) Can't observe any drift.

    Edit: looks like you started fiddling around with the register to set a new period while the timer runs? Since the requests for this feature somehow...
  34. Replies
    888
    Views
    29,926

    It is just copying the current bits fromGPIO7_PSR...

    It is just copying the current bits fromGPIO7_PSR (input register) to the variable in and shifting everything 4 bits to the right to account for the fact that the MM pins sit on bit 4-11 of GPIO7. ...
  35. Replies
    888
    Views
    29,926

    Does also look good and super easy to use but it...

    Does also look good and super easy to use but it seems to be targeted at larger machines? The one I linked is explicitly done for Cortex M processors. Don't know if it makes a difference though. Need...
  36. Replies
    888
    Views
    29,926

    Actually it is quite, say, teensy :-) ...

    Actually it is quite, say, teensy :-)



    Thought of encoding to jpeg before sending to reduce the data to transfer. Maybe something like this: https://github.com/noritsuna/JPEGEncoder4Cortex-M....
  37. Replies
    888
    Views
    29,926

    MM board tests in a DIY carrier (solder paste dispenser)

    I tested the Teensy MM beta board in my DIY stepper motor carrier. This carrier is part of a solder paste dispenser project I'm working on since a couple of weeks. The T4 MM board finally motivated...
  38. Replies
    6
    Views
    389

    Here you are: #include "TeensyTimerTool.h"...

    Here you are:


    #include "TeensyTimerTool.h"
    using namespace TeensyTimerTool;

    PeriodicTimer myTimer(GPT1);

    void printCurrentTime(){
    Serial.printf("Called at: %d\n", micros());
  39. Replies
    6
    Views
    389

    You can switch the GPT (32bit) timers to 150MHz....

    You can switch the GPT (32bit) timers to 150MHz. Have a look at the configuration chapter in the wiki.
  40. I recommend to install the TyTools to upload &...

    I recommend to install the TyTools to upload & monitor. You can integrate it to VisualTeensy in the settings tab.

    24445
  41. You would need a debug probe like a JLink and the...

    You would need a debug probe like a JLink and the corresponding GDB server to make this work. Plus you need to modify the hardware of your Teensy to be able to connect this probe. You find some...
  42. Replies
    115
    Views
    21,955

    Actually, I'm currently working on it. I...

    Actually, I'm currently working on it.



    I don't know your mechanical setup but one often underestimates moment of inertia of the lead screw and motor anchor as limiting factors to the...
  43. Per default, both ISRs have the same priority. ...

    Per default, both ISRs have the same priority. Thus the pin ISR won't interrupt the timer ISR.

    Try


    myTimer.begin(StatusUpdateTimer, 250000); // run every 0.25 seconds...
  44. This should work pot pots[16]; void...

    This should work


    pot pots[16];

    void update()
    {
    for (int i = 0; i < 16; i++)
    {
    pots[i].update(output[i]);
  45. Replies
    888
    Views
    29,926

    Defining things like 'D0' or 'TX2' without a...

    Defining things like 'D0' or 'TX2' without a dedicated namespace is screaming for trouble... However, I don't know if it make sense to do this in 'c++' in the core files since, AFAIK, they are...
  46. Replies
    888
    Views
    29,926

    This is why (in my original file) they are in...

    This is why (in my original file) they are in their own namespace :-)
  47. Replies
    18
    Views
    823

    You might also consider the SPI version: MCP23S17...

    You might also consider the SPI version: MCP23S17 which should work with 10MHz SPI clock.
  48. Actually, this is just an unmaintained fork I...

    Actually, this is just an unmaintained fork I made for some experiments. Here a link to the correct repository: https://github.com/ftrias/TeensyDebug
  49. Replies
    888
    Views
    29,926

    Just another guess, did you try INPUT instead of...

    Just another guess, did you try INPUT instead of INPUT_PULLDOWN? If I understand correctly the camera works with 1.8V? Maybe this together with the internal pulldowns is just borderline?
  50. Replies
    888
    Views
    29,926

    Yes, i.e. G0 = 1 -> 1, G1=1 -> 2 G2=1 -> 4 etc

    Yes, i.e. G0 = 1 -> 1, G1=1 -> 2 G2=1 -> 4 etc
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4