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

Search:

Type: Posts; User: PaulStoffregen

Search: Search took 0.03 seconds.

  1. The USB buffers grew in 1.49 and moved to OCRAM,...

    The USB buffers grew in 1.49 and moved to OCRAM, so they're not burning up precious high-speed DTCM.

    If you run the USB lines/sec benchmark, you'll see 1.49 is much faster (and again, pushing the...
  2. Quick followup to this old thread. Teensyduino...

    Quick followup to this old thread. Teensyduino 1.49 was recently released, making the "FLASHMEM" name official.

    Generally, PROGMEM is meant for variables and FLASHMEM is meant for functions. ...
  3. Currently DMA on Teensy 4.0 is not really...

    Currently DMA on Teensy 4.0 is not really documented anywhere, except some comments in imxrt.h and messages scattered across this forum. Neither is DMA on Teensy 3.x or LC. Many other things are...
  4. I'm seriously considering doing something like...

    I'm seriously considering doing something like this, though less cryptic, more like Arduino's format.

    But running it from the postbuild recipe prints too soon, probably not even visible without...
  5. For 1.49-beta1, I'm going to change the "Global...

    For 1.49-beta1, I'm going to change the "Global variables use..." summary to show on RAM1.

    I've opened an issue to ask Arduino to make the memory usage more configurable.
    ...
  6. Yup. I was really hoping to avoid adding another...

    Yup. I was really hoping to avoid adding another #define which could possibly conflict with existing libs & programs. I've just spent several hours looking into this (with objdump and readelf on...
  7. This sounds like a question best answered by a...

    This sounds like a question best answered by a couple digitalWriteFast() lines and a logic analyzer.




    I intentionally left these sorts of details out, with the hope that the more essential...
  8. Yes, you can control this by putting FASTRUN on...

    Yes, you can control this by putting FASTRUN on every function you want to RAM1 and PROGMEM on every function you want in flash.

    If you don't use either, then it's up to the compiler (actually,...
  9. Yes, some examples are needed. But first I want...

    Yes, some examples are needed. But first I want to look at issue #3 (from msg #24) before adding examples to the documentation. If we need to add a 2nd keyword for PROGMEM, I'll need to update some...
  10. How about this? Does it help? ...

    How about this? Does it help?

    https://www.pjrc.com/store/teensy4_memory.png




    That'll take much more work since it's drawn with the Gimp using many layers. :(
  11. EDIT: quick recap from msg #24...

    EDIT: quick recap from msg #24: working to solve these 3 issues:

    1: Clear & easy to understand documentation is needed
    2: Arduino's size info doesn't fit the memory model
    3: PROGMEM can't be...
  12. I'm working on this issue today. Or really 3...

    I'm working on this issue today. Or really 3 issues:

    1: Clear & easy to understand documentation is needed
    2: Arduino's size info doesn't fit the memory model
    3: PROGMEM can't be used for both...
  13. If the file is a .ino, you should not see this...

    If the file is a .ino, you should not see this error. Please share the file (and all other required files) we can try to reproduce the problem.

    If the file is a .c or .cpp, you need to add...
  14. I've been considering making an alternate linker...

    I've been considering making an alternate linker script which would default code and const variable into to slow-but-cached flash. This and the one we have now need user friendly names. I've been...
Results 1 to 14 of 14