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
    228
    Views
    18,229

    Can you try the version I uploaded here:...

    Can you try the version I uploaded here: https://github.com/luni64/VisualTeensy/issues/29 ?
  2. Replies
    228
    Views
    18,229

    FYI Here the arguments to the builder from the...

    FYI Here the arguments to the builder from the IDE and from vsTeensy.



    ARDUINO:

    C:\Users\lutz\Documents\arduino-1.8.12-Teensyduino153\arduino-builder
    -dump-prefs
    -logger=machine ...
  3. Replies
    228
    Views
    18,229

    Great! I saw that Arduino additionally passes...

    Great!

    I saw that Arduino additionally passes

    -built-in-libraries C:\Users\lutz\Documents\arduino-1.8.12-Teensyduino153\libraries to the builder. Can you try if it works with this even if...
  4. Replies
    228
    Views
    18,229

    I tried it here with and without spaces. It works...

    I tried it here with and without spaces. It works with including external libraries after the manual change of the library folder in the makefile exactly as you did. I tried with a fresh install of...
  5. Replies
    228
    Views
    18,229

    I'll try that...

    I'll try that...
  6. Replies
    228
    Views
    18,229

    I never tried it with the portable version. Can...

    I never tried it with the portable version. Can you post the complete build output?


    The makefile for *.ino builds is actually quite simple it just calls the builder with the give arguments. In...
  7. Replies
    228
    Views
    18,229

    Yes! In the generated makefile you should...

    Yes!

    In the generated makefile you should find lines like this:



    LIBRARIES := -libraries="C:\Users\lutz\Documents\Arduino/libraries"
    LIBRARIES += -libraries="C:\Program...
  8. Replies
    228
    Views
    18,229

    Sorry, didn't see your post until now. Looks like...

    Sorry, didn't see your post until now. Looks like some installation issue. It looks for make.exe in system32? It should look for it in the place where VisualTeensy.exe is located. Did you maybe...
  9. Replies
    228
    Views
    18,229

    It is getting late here. If you can zip the...

    It is getting late here. If you can zip the project folder (without the binaries) and post it (either here or as github issue) I can have a look tomorrow.
  10. 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...
  11. Replies
    5
    Views
    105

    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....
  12. Replies
    64
    Views
    1,239

    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...
  13. Replies
    64
    Views
    1,239

    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...
  14. Replies
    64
    Views
    1,239

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

    Sorry, I ment DTCM of course



    #include "smalloc.h"

    char dtcmBuffer[100000];
    smalloc_pool dmaHeap;

    void setup()
  15. Replies
    64
    Views
    1,239

    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...
  16. Replies
    64
    Views
    1,239

    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...
  17. Replies
    64
    Views
    1,239

    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.
  18. Replies
    64
    Views
    1,239

    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
  19. Replies
    64
    Views
    1,239

    Dual Serial works here, probably because it...

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

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

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

    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...
  22. Replies
    64
    Views
    1,239

    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...
  23. Replies
    64
    Views
    1,239

    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
    ...
  24. Replies
    64
    Views
    1,239

    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....
  25. Replies
    64
    Views
    1,239

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

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

    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,...
  27. Replies
    64
    Views
    1,239

    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...
  28. Replies
    64
    Views
    1,239

    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 ...
  29. Replies
    14
    Views
    301

    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...
  30. 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 ...
  31. 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...
  32. Replies
    14
    Views
    301

    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.

    ...
  33. Replies
    42
    Views
    1,197

    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 :-).
    ...
  34. Replies
    42
    Views
    1,197

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

    More tests with the PRIs



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

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

    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);
    }
  36. Replies
    42
    Views
    1,197

    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...
  37. Replies
    42
    Views
    1,197

    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;
  38. Replies
    42
    Views
    1,197

    Great, the EncoderTool...

    Great, the EncoderTool which depends on a current Bounce2 now compiles out of the box. Thanks
  39. 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...
  40. 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...
  41. Replies
    41
    Views
    962

    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:...
  42. Replies
    41
    Views
    962

    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.
  43. 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...
  44. 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...
  45. %zu works for size_t

    %zu works for size_t
  46. Thread: Teensy MicroMod

    by luni
    Replies
    25
    Views
    813

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