Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: PaulStoffregen

Page 1 of 10 1 2 3 4

Search: Search took 0.12 seconds.

  1. The same is often said of buffer overflow bugs...

    The same is often said of buffer overflow bugs with char array strings.
  2. Opinions vary regarding use of malloc / free and...

    Opinions vary regarding use of malloc / free and dangers of possible memory fragmentation.

    Some people always draw a very hard line and insist that no dynamic memory allocation is ever used in any...
  3. Replies
    19
    Views
    227

    I'm running it here, using the just-released...

    I'm running it here, using the just-released Teensyduino 1.55 on MacOS 11.6. So far hasn't crashed, but only been running about 5 minutes.
  4. Replies
    34
    Views
    2,741

    Let's continue it here. After the mess of...

    Let's continue it here. After the mess of ICS5200 threads (I have them again on my workbench - going to test this weekend) I want to prevent this situation where we get duplicate threads.
    ...
  5. There aren't any extra solder pads on Teensy++...

    There aren't any extra solder pads on Teensy++ 2.0.

    Best option would be to try to solder to the ends of R1 and R2.

    https://www.pjrc.com/teensy/parts_placement_teensy2pp_top.png
  6. No, sorry, I have absolutely no idea. I haven't...

    No, sorry, I have absolutely no idea. I haven't used any USB host shield in recent years.

    Not long after we released Teensy 3.6, I poured about 1 year into writing the USBHost_t36 library. ...
  7. Replies
    55
    Views
    1,082

    I'm leaning towards wrapping up 1.55 soon, maybe...

    I'm leaning towards wrapping up 1.55 soon, maybe later today, or by the weekend at the latest.

    Does anyone see any remaining bugs which really should be fixed before a stable 1.55 release?
  8. Replies
    55
    Views
    1,082

    I can't imagine anything that's changed between...

    I can't imagine anything that's changed between Teensyduino 1.54 and 1.55-beta3 which could affect Arduino's library search. As anyone can see on github, we haven't changed the library.properties...
  9. Replies
    55
    Views
    1,082

    Teensy Loader uses HID protocol. Windows allows...

    Teensy Loader uses HID protocol. Windows allows multiple programs to access the same HID interface. If you're running TyCommander or any other program which tries to talk to the bootloader at the...
  10. Ok, just looked at the old AVR datasheet. ...

    Ok, just looked at the old AVR datasheet. Haven't done much with Teensy 2.0 lately... kind of a trip down memory lane.

    Raw HID + Serial + Joystick definitely can not work on Teensy 2.0. Unlike...
  11. Yes, these are possible on 32 bit Teensy, but you...

    Yes, these are possible on 32 bit Teensy, but you will need to edit usb_desc.h to create the combination of interfaces you want.

    See the extensive comments in that file for instructions.

    For...
  12. Replies
    55
    Views
    1,082

    Compiles without any errors here on 1.55-beta3...

    Compiles without any errors here on 1.55-beta3 with Arduino 1.8.16.

    25847
  13. I like it! :)

    I like it! :)
  14. Replies
    55
    Views
    1,082

    Oh, yeah, I should have been more specific. ...

    Oh, yeah, I should have been more specific. Teensy Loader only communicates with Teensy boards when they're in bootloader mode. So if the board is running in Serial, MIDI, RawHID, MTP, Audio or...
  15. Replies
    55
    Views
    1,082

    Merged. Looks like the SD library examples...

    Merged.

    Looks like the SD library examples were using different pins too. I just committed a change to default to pin 10 on all of them.
  16. Replies
    55
    Views
    1,082

    I see some of the LittleFS examples using SPI...

    I see some of the LittleFS examples using SPI flash have CS pin 6 as default, others have pin 7.

    My hope is to see pin 6 as the default and all the examples not about a particular memory type use...
  17. Replies
    55
    Views
    1,082

    After 1.55, maybe we can add a 2nd RAM disk to...

    After 1.55, maybe we can add a 2nd RAM disk to LittleFS. But at the very least, I want to see it designed very differently as I mentioned previously. Not going to rehash that now, as the focus at...
  18. Replies
    55
    Views
    1,082

    They're supposed to be clickable when Teensy...

    They're supposed to be clickable when Teensy Loader has a board online. When it's not talking with hardware those buttons are supposed to be disabled.
  19. Replies
    55
    Views
    1,082

    Merged it just now.

    Merged it just now.
  20. Replies
    55
    Views
    1,082

    @Defragster (and all) - Have you seen any more...

    @Defragster (and all) - Have you seen any more cases where the Open HEX File button is grayed out or any other GUI features which should be clickable can't be used?

    I never did figure out what...
  21. Replies
    55
    Views
    1,082

    Oh, now that is a valuable piece of info! It...

    Oh, now that is a valuable piece of info! It very likely may be a bootloader bug in 1.07. The bootloader is supposed to ignore the Program button during certain critical times, but probably isn't...
  22. Replies
    1
    Views
    85

    I'm confused by this question. I...

    I'm confused by this question.




    I connected my scope and ran the Ethernet WebClient example on a Teensy 4.1 with Wiz850io ethernet. The best hint I can give is it does not appear to be "SS...
  23. Replies
    6
    Views
    253

    The answer is yes, this is possible, but to do it...

    The answer is yes, this is possible, but to do it you would need to dive pretty deeply into learning how the timer hardware works. The timers in this chip are loaded with advanced features, which is...
  24. Official time APIs using units not seconds-based...

    Official time APIs using units not seconds-based are cool in the short term, but the long term effect on the software ecosystem is a lot of code which breaks when clock speeds change. Or a lot of...
  25. You could forcibly write to the 2 variables the...

    You could forcibly write to the 2 variables the core library uses, of course with the caveat future versions might change. But for what we have today, here's how you would do it.



    extern "C"...
  26. Those PCBs arrived from OSH Park. I soldered...

    Those PCBs arrived from OSH Park. I soldered ICS52000s onto 2 of them.

    25836

    Hope to experiment with them later this week. Lately 1.55-beta has taken all my dev time, but just wanted to...
  27. Replies
    74
    Views
    2,407

    Seems objdump is extremely slow for creating the...

    Seems objdump is extremely slow for creating the .lst file when the input file is huge. I'm going to disable it for 1.55-beta3.

    Sadly, the rest of the slowness seems to be unavoidable due to...
  28. Replies
    74
    Views
    2,407

    Yes, this is the correct behavior for a board...

    Yes, this is the correct behavior for a board locked into secure mode.

    When you press the button on a locked Teensy, it runs NXP's ROM only. Teensy Loader and the "loader utility" part of a EHEX...
  29. Replies
    74
    Views
    2,407

    I've again fallen behind, haven't read every...

    I've again fallen behind, haven't read every message on this thread. Hope to soon, but right now focusing fixing bugs.

    Been working on Teensy Loader. Hopefully all the GUI stalls with...
  30. Also as mentioned on your other threads...

    Also as mentioned on your other threads, if you use Teensy's non-blocking libraries OctoWS2811 or WS2812Serial, you probably won't need this interrupt code at all.

    You can just use millis() or...
  31. Replies
    74
    Views
    2,407

    Just a quick guess, maybe the slowness isn't...

    Just a quick guess, maybe the slowness isn't building at all, but the post-build commands which create extra output files.

    Try editing platform.txt. Look for this part:



    ## Post Build -...
  32. This error means you have some of the new 1.55...

    This error means you have some of the new 1.55 stuff, but other parts are still from 1.54.

    Please install 1.55-beta2, so you have a consistent set all the recent changes.
    ...
  33. Indeed for that code, using IntervalTimer is the...

    Indeed for that code, using IntervalTimer is the best way, since all it's doing with the timer is running a function at a regular interval.

    Regarding the original question, the interrupt names are...
  34. Replies
    425
    Views
    8,506

    Only if the problem is reproducible with the USB...

    Only if the problem is reproducible with the USB types and libraries which will be in 1.55.
  35. Replies
    425
    Views
    8,506

    Definitely not adding another USB type or...

    Definitely not adding another USB type or changing USB descriptors this close to a stable release!
  36. Replies
    425
    Views
    8,506

    Glad it's working better now! I'd much rather...

    Glad it's working better now!

    I'd much rather be playing with filesystems and MTP right now... but I really do need to keep focusing on fixing the remaining code security GUI lockup bugs and the...
  37. Replies
    68
    Views
    1,506

    Honestly, I never even thought about anyone...

    Honestly, I never even thought about anyone passing zero length to those functions.

    Can probably just add a check for zero. They're inline functions and the length is almost always a constant in...
  38. Replies
    425
    Views
    8,506

    Ok, pulled in the latest MTP_t4 library and...

    Ok, pulled in the latest MTP_t4 library and copied it over to the Windows 10 machine. Uncommented include MTP.h.

    Same thing, still can't reproduce the problem. It prints a non-CrashReport every...
  39. Replies
    425
    Views
    8,506

    Are you sure you really do have this patch in...

    Are you sure you really do have this patch in your core library?

    https://github.com/PaulStoffregen/cores/commit/285ecd2c1bdb69dec3687107f4b805ae572db6a0
  40. Replies
    425
    Views
    8,506

    Ok, tried it first the lazy way with no MTP.h...

    Ok, tried it first the lazy way with no MTP.h included.

    25802
  41. Replies
    425
    Views
    8,506

    Ok, I'm setting up my Windows 10 test machine...

    Ok, I'm setting up my Windows 10 test machine now.

    Is including MTP.h really necessary to reproduce the problem?
  42. Teensy 4.1 has a TPD3S014...

    Teensy 4.1 has a TPD3S014 chip which limits the current. Scroll down to the schematic on the Teensy 4.1 page for details. But according to the TPD3S014 datasheet on page 5, the actual limit can be...
  43. Replies
    425
    Views
    8,506

    Ok, I've *finally* caught up to this huge thread!...

    Ok, I've *finally* caught up to this huge thread!

    @Defragster - Is there any more info about problem on msg #330? Maybe this was continued on the 1.55-beta2 thread?
  44. Replies
    425
    Views
    8,506

    Regarding the code from msg #393...

    Regarding the code from msg #393



    I'm running it here on Ubuntu 20.04 with the latest code. Can't reproduce the problem. It always prints the CrashReport info.

    25799
  45. Replies
    28
    Views
    1,548

    Really that message leaves a lot to be desired. ...

    Really that message leaves a lot to be desired. It really should tell you exactly which Teensy it is using as the basis for the available space. It should probably not even print that message at...
  46. Replies
    68
    Views
    1,506

    I'm having a deja vu moment. Was this also...

    I'm having a deja vu moment. Was this also mentioned on another thread?

    (please understand I'm still going through the two 1.55 beta threads thoroughly in chronological order, after having...
  47. Replies
    68
    Views
    1,506

    Sorry about the delay on this. This week I've...

    Sorry about the delay on this. This week I've been slowly going through the many messages on the first 1.55 beta thread. Just now got to msg #365 on that thread, which points here. I'm still about...
  48. Replies
    6
    Views
    253

    Timer input capture is generally considered to...

    Timer input capture is generally considered to the best way.

    The hardware timers have the ability to capture their rapidly incrementing counter value into another register when a change is...
  49. Replies
    425
    Views
    8,506

    Just to be clear, if the problem can be...

    Just to be clear, if the problem can be reproduced without any extra libraries, I want to take a quick look and see if it's something I can address quickly. Any decision whether to fix it for 1.55...
  50. Replies
    425
    Views
    8,506

    Is there any way to reproduce the no response...

    Is there any way to reproduce the no response after Serial.begin() using only USB Type "MTP Disk (experimental)" without including any extra libraries other than the ones from the Teensyduino...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4