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.02 seconds.

  1. Replies
    4
    Views
    78

    You can have a look at this library...

    You can have a look at this library https://github.com/luni64/TeensyTimerTool . If you don't want to use it directly it at least gives you a head start on a couple of T4 timers. There also is the...
  2. @Frank: USB has this handshake built in and...

    @Frank: USB has this handshake built in and should not need an additional layer on top. The host automatically stops reading if its input buffers are full and it stops sending if the input buffers of...
  3. I already did further experiments and can confirm...

    I already did further experiments and can confirm that this has nothing to do with one or more serial connections. Checking how much was actually sent is necessary if you don't want to loose any...
  4. Replies
    8
    Views
    214

    IIRC Teensydebug copies a Boards.txt.local to the...

    IIRC Teensydebug copies a Boards.txt.local to the Arduino folder. https://github.com/ftrias/TeensyDebug/blob/master/extras/boards.local.txt which is not parsed by VisualTeensy. This file sets the...
  5. Ok, carry on then.

    Ok, carry on then.
  6. Would you mind adding the spinning to your...

    Would you mind adding the spinning to your original code and see if it still hangs?
  7. ...which actually is the root cause for your...

    ...which actually is the root cause for your problem. As wrote a couple of times now you can not expect that Serial.write(buf, bufsize) will always send out the complete buffer to the bus. USB will...
  8. In this case you need to fix the bug in the...

    In this case you need to fix the bug in the sender, i.e. you must not ignore the fact that the Teensy didn't send the complete buffer...
  9. @DrM As mentioned in #2 you have a bug in your...

    @DrM As mentioned in #2 you have a bug in your teensy code. It is important to understand that USB has a perfectly working flow control built in. AFAIK, if the serial buffers in the PC overflow, the...
  10. Without testing I assume the following: This:...

    Without testing I assume the following:

    This:


    for (n = 0; n < 100; n++ ) {
    Serial.write( (uint8_t *) databuffer, 4096 );
    }
  11. Replies
    21
    Views
    313

    Interesting, I always thought python would...

    Interesting, I always thought python would abstract such things away.
  12. Replies
    248
    Views
    29,695

    Thanks for spotting this. Actually, I always...

    Thanks for spotting this. Actually, I always generate an empty folder and then 'open' this folder as project. This is probably the reason why I never stumbled over it. I'll have a look but this may...
  13. Thread: RAHID performance

    by luni
    Replies
    40
    Views
    255

    You are right. Anyway, I'd really like to...

    You are right.
    Anyway, I'd really like to reproduce that. What I understood so far is: If you repeatedly send about ten 15kB blocks per second from a T3.2 to a Win10 PC (python) you sometimes get...
  14. Replies
    21
    Views
    313

    Frankly, I don't know much about python. I...

    Frankly, I don't know much about python. I thought the hid.xxx was simply fully qualifying the name.
    Anyway, try to use



    d.write(bytes([0x00, 0xFF, 0xFF, 0xFF]))


    it didn't work here...
  15. Replies
    21
    Views
    313

    The code I posted in #8 worked without issue for...

    The code I posted in #8 worked without issue for me. Did you try it?
  16. Thread: RAHID performance

    by luni
    Replies
    40
    Views
    255

    T3.2 is a USB-FullSpeed device. According to the...

    T3.2 is a USB-FullSpeed device. According to the USB spec, those devices can request a max HID report polling rate of 1kHz from the host. Each report is limited to 64bytes. Thus the theoretical limit...
  17. Replies
    21
    Views
    313

    If you are willing to hack the core you can...

    If you are willing to hack the core you can trigger a reset (or something else) by adding code to the location where TD detects the reboot request via baud rate 134...
  18. Replies
    21
    Views
    313

    I don't know where the source code for...

    I don't know where the source code for teensy_reset is and I don't know what teensy_serial is supposed to do, but I can help with info on how to reset a teensy:

    First thing you need to do is to...
  19. Much better :-) But, I'd be carful with 6V pp. I...

    Much better :-) But, I'd be carful with 6V pp. I don't know if the Teensy can sustain -3V on a pin. Would look at the datasheet first before using this for longer time.
  20. This is very strange, you should get the pulse at...

    This is very strange, you should get the pulse at the rising edge. Can it be that your LA inverts the signal on pin1?
    EDIT: which would still not explain the shown signal...


    Can it be that your...
  21. Are you sure that your logic analyzer is fast...

    Are you sure that your logic analyzer is fast enough to see the short pulses?

    I'd first try the code from @manitou given in #2 but with lower frequency and place a delayMicroseconds(10) between...
  22. You can also give the TyTools a try. They combine...

    You can also give the TyTools a try. They combine uploading and a serial monitor which should prevent such stuff. TyCommander is also able to handle multiple Teensies in parallel has buttons to reset...
  23. Replies
    29
    Views
    617

    I was interested how efficient the compiler...

    I was interested how efficient the compiler implements a range based for loop so I added one to the code above:


    for (auto& slot : buffer) slot = GPIO6_PSR;


    Which also gives the same...
  24. Replies
    24
    Views
    432

    At k=4 a heat source of 1.8W inside the box would...

    At k=4 a heat source of 1.8W inside the box would generate a temperature rise of about 20mK if my estimations are correct. Spreadsheet attached.

    (Assuming k=4 for the thin air film it would be...
  25. Replies
    24
    Views
    432

    That is certainly true, but how much power would...

    That is certainly true, but how much power would radiate from the box at about 25C? Radiated energy is proportional to T^4. I may be wrong but I'd say at those low temperatures the dominating...
  26. Replies
    24
    Views
    432

    That's of course a different story. In this case...

    That's of course a different story. In this case the thermal equilibrium would be defined by the radiating properties of the box I'd assume. Might be fun to do some radiation estimations. On the...
  27. Replies
    24
    Views
    432

    That is of course correct in principle. However,...

    That is of course correct in principle. However, due to the large surface of such a box, I would say it won't be easy to thermally isolate it good enough that you'll get a significant increase of...
  28. Great, let me know if you find something else.

    Great, let me know if you find something else.
  29. Accepted. Did you try if the hack is working?

    Accepted.

    Did you try if the hack is working?
  30. If you are only interested in the COM ports of...

    If you are only interested in the COM ports of the connected Teensies and don't need their serial number and don't want to upload firmware you can simply hack TeensyWatcher.cs:

    From the point of...
  31. Replies
    4
    Views
    191

    Power supply: The most easy and straight...

    Power supply:
    The most easy and straight forward solution would be to power the Teensy via the USB cable and the rest of your device from an external supply. But, even then, you can not directly...
  32. Replies
    61
    Views
    3,131

    Sticky: TeensySharp...

    TeensySharp was written some 6 years ago and has a rather small user base (<300 downloads at nuget). So, I have to admit that it was not very well maintained over the years. However, ~two years ago...
  33. Replies
    25
    Views
    1,373

    Wow, what did you feed it ?

    Wow, what did you feed it ?
  34. Replies
    944
    Views
    38,210

    I'm afraid that putting those short/generic names...

    I'm afraid that putting those short/generic names in the global namespace calls for trouble with third party libraries. Might be a good idea to put them in their own namespace. I.e.


    ...
  35. Replies
    4
    Views
    171

    Yes there is a cycle counter here an example: ...

    Yes there is a cycle counter here an example:



    void setup()
    {
    // The following 2 lines are only necessary for T3.0, T3.1 and T3.2
    ARM_DEMCR |= ARM_DEMCR_TRCENA; // enable...
  36. Thread: TeensyTimerTool

    by luni
    Replies
    271
    Views
    25,178

    MicroMod compatibility

    FYI: I just uploaded a new TeensyTimerTool version which is compatible to the Teensy MicroMod boards.

    https://github.com/luni64/TeensyTimerTool
  37. Replies
    3
    Views
    279

    You might be interested in this thread:...

    You might be interested in this thread: https://forum.pjrc.com/threads/28473-Quick-Guide-Using-printf()-on-Teensy-ARM?p=269343#post269343
  38. Replies
    14
    Views
    338

    Here some info and example programs (Win10 /...

    Here some info and example programs (Win10 / Teensy) showing how to communicate with a PC via USB-Serial https://github.com/TeensyUser/doc/wiki/Serial. And here examples showing how to use the RawHID...
  39. Thread: TeensyTimerTool

    by luni
    Replies
    271
    Views
    25,178

    Glad it works, have fun with the TimerTool

    Glad it works, have fun with the TimerTool
  40. Thread: TeensyTimerTool

    by luni
    Replies
    271
    Views
    25,178

    In c++ you can not initiate a member class...

    In c++ you can not initiate a member class directly in the parents class declaration if the member class has a constructor. You need to do this in the definition of the parent class (your...
  41. Thread: TeensyTimerTool

    by luni
    Replies
    271
    Views
    25,178

    Short answer: You use 16bit hardware timers for...

    Short answer:
    You use 16bit hardware timers for the second LED which can not handle your 1s delay.


    Details:
    If you don't specify which timer module to use, the TimerTool chooses the next...
  42. Selecting optimizing level 'smallest' for a T-LC...

    Selecting optimizing level 'smallest' for a T-LC does not only change the level to -Os it also adds --specs=nano.specs to the linker flags which changes the linked in c-library. I assume it is...
  43. As an alternative to the traditional text...

    As an alternative to the traditional text searching tools like grep I would like to point out that these days IDEs are quite good in finding that kind of information. I added a (not yet complete)...
  44. Replies
    14
    Views
    444

    Sounds good. I'll have a look at this...

    Sounds good. I'll have a look at this Costura.Fody. How large is the exe ?
  45. Replies
    14
    Views
    444

    Just had a look at the sources. TeensySharp...

    Just had a look at the sources. TeensySharp itself references moreLinq and hidLibrary. So, even if you include the TeensySharp sources you'll have the moreLinq.dll and the hidLibrary.dll to handle....
  46. Replies
    14
    Views
    444

    Since dotNet doesn't support static linking you...

    Since dotNet doesn't support static linking you can not have a dotNet application in a single exe if it uses additional libraries *). So, either use some tool to generate an installer (which can be a...
  47. Replies
    80
    Views
    3,218

    That's a very clearly written readme. I like it a...

    That's a very clearly written readme. I like it a lot.

    You asked for suggestions, so here two remarks:

    If you put a c++ after the three opening back ticks of a code section, gitHub will...
  48. Replies
    14
    Views
    444

    Glad you like it. Of course you can check if...

    Glad you like it.

    Of course you can check if no boards are connected. Watcher.ConnectedDevices contains a list of all found Teensies. Simply check for Watcher.ConnectedDevices.count == 0.
    If...
  49. Replies
    14
    Views
    444

    Didn't use it for quite some time. I remember...

    Didn't use it for quite some time. I remember that I implemented the T4.0 when it came out. Chances are that it will work for the T4.1 as well. Let me know if not. If necessary, adapting it to the...
  50. Replies
    14
    Views
    444

    Sure, here https://github.com/luni64/TeensySharp...

    Sure, here https://github.com/luni64/TeensySharp a library which identifies Teenies on the bus and can upload firmware. For easy installation it is also available via nuget:...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4