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. Just to make sure: You did press the programming...

    Just to make sure: You did press the programming button right? This should always bring the board to a known state.
    If this doesn't help the following procedure might help: Unplug the board, press...
  2. Replies
    5
    Views
    102

    Some time ago I did a project using a TLC59025...

    Some time ago I did a project using a TLC59025 from TI. It basically is a fast standard shift register with 16 constant current outputs. Thus, you don't need all those series resistors for the LED's....
  3. Replies
    64
    Views
    1,203

    From the readme: So, as it is now the block...

    From the readme:


    So, as it is now the block size needs to be a multiple of he header size. If I understand the readme correctly the header has 4bytes for the block size, 4bytes for the size of...
  4. Replies
    64
    Views
    1,203

    Paul didn't set up the default pool, so...

    Paul didn't set up the default pool, so sm_malloc_stats won't give correct values. You need to use the pool version:



    void setup()
    {
    while (!Serial);

    int* ptr = (int*)extmem_malloc(5...
  5. Replies
    64
    Views
    1,203

    Sorry, I ment DTCM of course #include...

    Sorry, I ment DTCM of course



    #include "smalloc.h"

    char dtcmBuffer[100000];
    smalloc_pool dmaHeap;

    void setup()
  6. Replies
    64
    Views
    1,203

    BTW: it is still possible to use the full...

    BTW: it is still possible to use the full functionality of sm_alloc. E.g. Add an additional Heap on DMAMEM:


    DMAMEM char dmaBuffer[10000];
    smalloc_pool dmaHeap;

    void setup()
    {
    while...
  7. Replies
    64
    Views
    1,203

    Looks like you allocate all of the remaining free...

    Looks like you allocate all of the remaining free space in EXTRAM for the EXTRAM heap. This is a fantastic idea. I was only using user defined heap buffers so far but this makes it much more easy to...
  8. Replies
    64
    Views
    1,203

    Ok, got it. If this is permanent I'll log an...

    Ok, got it. If this is permanent I'll log an issue at TyCommander. For the time being I can work with the dual serial.
  9. Replies
    64
    Views
    1,203

    Sorry didn't see your question. Yes thats right...

    Sorry didn't see your question. Yes thats right and yes I did a reboot and even deinstalled all old COM ports. I'm quite sure the issue is related to the observation in #46 and 48
  10. Replies
    64
    Views
    1,203

    Dual Serial works here, probably because it...

    Dual Serial works here, probably because it always was a compound device.
  11. Replies
    64
    Views
    1,203

    The code in #11 shows how to get stats of the...

    The code in #11 shows how to get stats of the allocated memory.
  12. Replies
    64
    Views
    1,203

    The new version generates this device: ...

    The new version generates this device: USB\VID_16C0&PID_0483&MI_00\7&922067D&0&0000
    The old version generates this device USB\VID_16C0&PID_0483\8077220

    Looks like the standard Serial port is now...
  13. Replies
    64
    Views
    1,203

    Sorry to say, but something is still strange with...

    Sorry to say, but something is still strange with Serial.

    It works stably with the IDE now. Unfortuantely, TyCommander somehow gets the wrong COM port now. E.g. the IDE reports COM3 which is the...
  14. Replies
    64
    Views
    1,203

    if I undo your changes from 'Add experimental...

    if I undo your changes from 'Add experimental interface' in usb_desc.h:
    I.e.,


    #define NUM_INTERFACE 2 // back to 2 instead of 3
    ...
    //#define EXPERIMENTAL_INTERFACE 2 // commented
    ...
  15. Replies
    64
    Views
    1,203

    From top, this is the first commit which doesn't...

    From top, this is the first commit which doesn't work

    Commit: 7a458043ea6642c861425095526b24f567385b03 [7a45804]
    Parents: 4da51c16fd
    Author: PaulStoffregen <paul@pjrc.com>
    Date: Sonntag, 25....
  16. Replies
    64
    Views
    1,203

    Yes, that works. Do you remember which commit...

    Yes, that works. Do you remember which commit 1.54b2 was?
  17. Replies
    64
    Views
    1,203

    I get the problems since this commit. Works...

    I get the problems since this commit. Works before that.

    Commit: dc567880488dc53ba2e71eb07e04356bda7e2a7e [dc56788]
    Parents: fa1c5a1bca
    Author: PaulStoffregen <paul@pjrc.com>
    Date: Sonntag,...
  18. Replies
    64
    Views
    1,203

    That fixed the warning but I still can't print...

    That fixed the warning but I still can't print (neither with my makefile build nor with the IDE).
    - Just to make sure I reinstalled Arduino 1.13
    - Installed TeensyDuino1.54 beta2
    - replaced the...
  19. Replies
    64
    Views
    1,203

    This is exactly what I was thinking :-) Cloned...

    This is exactly what I was thinking :-)

    Cloned the current core but it looks like something is broken. I get the following warning:


    CORE [CC] startup.c ...
  20. Replies
    14
    Views
    298

    Yes, everything works without manually installing...

    Yes, everything works without manually installing drivers. When you plug it in the first time you'll see a message from Windows that it sets up a new device, that's it. No need to install anything...
  21. Interesting. I'm using the linker option...

    Interesting. I'm using the linker option -Wl,--print-memory-usage in my builds which gives this output:


    Memory region Used Size Region Size %age Used
    ITCM: 32 KB ...
  22. If you have a high speed application you could...

    If you have a high speed application you could try this library from mjs513: https://forum.pjrc.com/threads/58478-Teensy-4-x-H-W-Quadrature-Encoder-Library. It uses the built in hardware decoders...
  23. Replies
    14
    Views
    298

    Here two tutorials from the user WIKI...

    Here two tutorials from the user WIKI, showing how to communicate with a Win10 application via Serial and via HID. They might be helpful after you established connection as recommended by Paul.

    ...
  24. Replies
    42
    Views
    1,156

    So far I've used it only for 64bit variables...

    So far I've used it only for 64bit variables where this is the only way (I know of) to 'printf' them.

    @mjs513: funny how complicated a simple thing like printing an 8bit variable can get :-).
    ...
  25. Replies
    42
    Views
    1,156

    More tests with the PRIs void setup() { ...

    More tests with the PRIs



    void setup()
    {
    while(!Serial){}

    Serial.println("int64_t");
    int64_t test0 = -2;
  26. Replies
    42
    Views
    1,156

    Nearly :-). You also need to add spaces: ...

    Nearly :-). You also need to add spaces:


    void setup()
    {
    while(!Serial){}

    uint32_t test = 42;
    Serial.printf("Var: %08" PRIu32 "\n", test);
    }
  27. Replies
    42
    Views
    1,156

    PRIxN -> x is the usual u, d, x, X etc N is the...

    PRIxN -> x is the usual u, d, x, X etc N is the width of the variable.

    E.g.
    PRIu16 will print a 16bit unsigned
    PRId64 will print a 64bit signed
    PRIX32 will print a 32bit hex number with...
  28. Replies
    42
    Views
    1,156

    Tested with the code below. Works as expected. ...

    Tested with the code below. Works as expected.



    #include "EEPROM.h"

    struct GoodType // this is bytewise copyable
    {
    const char* text = "Good struct";
    float version = 1.54f;
  29. Replies
    42
    Views
    1,156

    Great, the EncoderTool...

    Great, the EncoderTool which depends on a current Bounce2 now compiles out of the box. Thanks
  30. std::chrono compliant, teensy_clock based on the cycle counter

    The last days I had a lot of fun exploring the std::chrono namespace which provides a new (well, >=c++11) abstraction of durations, time points and clocks.
    As an outcome of all this I implemented a...
  31. Cool, looks like the code generates pretty...

    Cool, looks like the code generates pretty stable 5Ás intervals even with the TCK (software) timer. I like them more and more since they are so uncomplicated to use. No hassle with atomic access and...
  32. Replies
    41
    Views
    941

    Here a PR for the EEPROM library which implements...

    Here a PR for the EEPROM library which implements a check for 'non usable' types and specializes the template to enable String storage https://github.com/PaulStoffregen/EEPROM/pull/5 See also here:...
  33. Replies
    41
    Views
    941

    Would it be possible to update Bounce2 to the...

    Would it be possible to update Bounce2 to the current version? The one packed with Teensyduino is quite outdated and misses some useful functions.
  34. manitou's Teensy 4 repository is an infinite...

    manitou's Teensy 4 repository is an infinite source of useful code snippets: https://github.com/manitou48/teensy4
    I didn't look into it but there are a few gpt_capture inos listed...
  35. You are very welcome. You should at least...

    You are very welcome.


    You should at least fix the two bugs with the wrong signature of your callback and the possible overrunning of your buffers. Typically not fixing such stuff bites back...
  36. %zu works for size_t

    %zu works for size_t
  37. Thread: Teensy MicroMod

    by luni
    Replies
    25
    Views
    792

    Wow, that is really great news. Do you plan to...

    Wow, that is really great news. Do you plan to stick to the Adafruit pinout? Any rough idea when this will be ready? I need to do a board in a couple of weeks, would love to use/test this form factor.
  38. Oh, thanks for the shout out. Hope the now...

    Oh, thanks for the shout out. Hope the now increased user base won't find too many bugs :-)
  39. Just for the fun of it (and since I'm somehow...

    Just for the fun of it (and since I'm somehow biased :D), here a solution using a software timer from the TeensyTimerTool



    #include "Arduino.h"
    #include "TeensyTimerTool.h"
    using namespace...
  40. I had a quick look at your sketch. Looks like...

    I had a quick look at your sketch. Looks like there are a couple of bugs in it.

    1) The Arduino-Timer I found (https://www.arduino.cc/reference/en/libraries/arduino-timer/) expects a bool...
  41. You can also use the utility to define...

    You can also use the <atomic> utility to define atomic variables as shown here:


    #include<atomic>

    volatile std::atomic<uint32_t> myAtomicVar; // define a uint32_t variable which ensures that...
  42. Replies
    6
    Views
    214

    Actually I tested this on my old computer which I...

    Actually I tested this on my old computer which I bought used some 3 years ago (i5, 2.9GHz, 6GB). It doesn't even have USB3 and is crammed with stuff accumualted over the years. Zoom and Teamviewer...
  43. Replies
    6
    Views
    214

    I did some more experiments on that with a (at...

    I did some more experiments on that with a (at least for me) surprising result: I always assumed, that some PC application needs to actively read the HID reports to 'remove them from the bus'. This...
  44. Replies
    6
    Views
    214

    The descriptor in usb_desc.h sets the poll rate...

    The descriptor in usb_desc.h sets the poll rate already at the minimal value 1 which corresponds to 8kHz (125Ás) for an USB-2.0 device. To test it, I did the following quick experiment with a win10...
  45. Replies
    8
    Views
    338

    In case you want to give the TeensyTimerTool a...

    In case you want to give the TeensyTimerTool a try, here some working code using the GPT timers. It uses a second (one-shot-)timer to reset the pin which avoids waiting 10Ás in the ISR. GPT clock ...
  46. Replies
    8
    Views
    338

    Yes, you can select the PIT/GPT timer input clock...

    Yes, you can select the PIT/GPT timer input clock (24/150MHz) and the TMR timer prescaler (1..128) in the config file. At minimum settings (GPT/PIT = 150MHz, TMR presaler = 1 and TCK @600MHz) you ...
  47. Thread: TeensyTimerTool

    by luni
    Replies
    220
    Views
    10,991

    Just a quick update to the TeensyTimerTool: I...

    Just a quick update to the TeensyTimerTool: I managed to define my own frequency types and added the corresponding literals to the periodic timer begin functions. In addition to plain microseconds...
  48. Replies
    22
    Views
    516

    It's slots

    It's slots
  49. Replies
    22
    Views
    516

    Don't know if tonton had his library added to the...

    Don't know if tonton had his library added to the library manager. You can always download it from github (link in #2) and either zip install it with the library manager or simply unzip it to your...
  50. Replies
    22
    Views
    516

    Not really (but the effect would be the same). ...

    Not really (but the effect would be the same).
    Don't get confused by this index variable. It defines which of the three buffers you are writing / reading to. It has nothing to do with the position...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4