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
    18
    Views
    284

    Sorry for being sloppy. That means "in my humble...

    Sorry for being sloppy. That means "in my humble opinion" and is just a disclaimer that I have no monopoly on truth :-)



    I tested JLINK EDU and a JLINK Mini both from Segger. You can easily...
  2. Replies
    18
    Views
    284

    The video in the link from #13 shows debugging...

    The video in the link from #13 shows debugging with with a hardware probe (JLink EDU). The mod link (the same as you linked above) shows how to modify a T3.6 board to be able to connect a SWD probe....
  3. Replies
    18
    Views
    284

    If you are willing to modify the board you can...

    If you are willing to modify the board you can easily attach a SWD/JTAG probe to a T3.5 / T3.6 board. For example: see here https://github.com/luni64/VisualTeensy/releases/tag/v0.9.7.0 for some...
  4. Thread: Rawhid

    by luni
    Replies
    12
    Views
    176

    As far as I'm concerned you can directly upload...

    As far as I'm concerned you can directly upload it to the wiki I linked above. Alternatively, just zip it and attach it here, I'll copy it to the Wiki then.
  5. Replies
    3
    Views
    67

    APPENDIX: I installed python and the mentioned...

    APPENDIX:
    I installed python and the mentioned HID library and had a look if it works with the custom serial number set by the code from the link in #2.



    import hid

    for device_dict in...
  6. Replies
    3
    Views
    67

    Technically, you can easily change those fields...

    Technically, you can easily change those fields in the core files. Look at the usb*.* files.

    Following remarks:

    In case you are using a development system which uses a fixed location of the...
  7. Thread: Rawhid

    by luni
    Replies
    12
    Views
    176

    Did you finally manage to read the enumerators...

    Did you finally manage to read the enumerators correctly? If so, and if you are willig to share the code, I would like to add it as Python example to the user WIKI .
  8. Thread: Rawhid

    by luni
    Replies
    12
    Views
    176

    I'm not a Python guy and can't really help you...

    I'm not a Python guy and can't really help you with this library. But, since I use them quite often I definitely know that the HID usage pages and HID usages are as listed above for Raw HID devices....
  9. Thread: Rawhid

    by luni
    Replies
    12
    Views
    176

    In principle you can of course directly talk to...

    In principle you can of course directly talk to the endpoints. After all, this is what any USB driver needs to do. But, why spending a lot of time reinventing the wheel. Operating systems provide...
  10. Thread: Rawhid

    by luni
    Replies
    12
    Views
    176

    I can't help with the Python part of your...

    I can't help with the Python part of your question but the two interfaces are easy to explain: One is the actual RAW HID interface, the other one is an interface (SerEmu) which is used by uploaders...
  11. Replies
    3
    Views
    131

    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...
  12. 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...
  13. 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:...
  14. Ups sorry not my day :-) Embarrassing :-)

    Ups sorry not my day :-) Embarrassing :-)
  15. 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...
  16. Replies
    86
    Views
    7,292

    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...
  17. Replies
    86
    Views
    7,292

    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);
    ...
  18. Replies
    86
    Views
    7,292

    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...
  19. 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.
  20. Replies
    58
    Views
    3,277

    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.
  21. Replies
    58
    Views
    3,277

    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...
  22. Replies
    58
    Views
    3,277

    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...
  23. Replies
    58
    Views
    3,277

    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.
  24. Replies
    58
    Views
    3,277

    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...
  25. Replies
    58
    Views
    3,277

    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?
  26. Replies
    18
    Views
    3,174

    See here:...

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

    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){}
  28. Replies
    18
    Views
    3,174

    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?
  29. 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 :-)
  30. 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...
  31. 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...
  32. 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:...
  33. Replies
    10
    Views
    610

    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...
  34. Replies
    10
    Views
    610

    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...
  35. Replies
    10
    Views
    610

    What Button library are you using?

    What Button library are you using?
  36. Replies
    11
    Views
    491

    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.
  37. Replies
    11
    Views
    491

    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();
  38. 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...
  39. Replies
    11
    Views
    484

    ... 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...
  40. Replies
    11
    Views
    484

    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"...
  41. 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...
  42. Replies
    11
    Views
    484

    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...
  43. Replies
    11
    Views
    484

    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...
  44. Replies
    888
    Views
    30,824

    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. ...
  45. Replies
    888
    Views
    30,824

    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...
  46. Replies
    888
    Views
    30,824

    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....
  47. Replies
    888
    Views
    30,824

    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...
  48. Replies
    6
    Views
    405

    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());
  49. Replies
    6
    Views
    405

    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.
  50. 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
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4