PaulStoffregen's latest activity

  • PaulStoffregen
    Looking at this today, just changing the order so the math library is last seems to solve this problem. In other words, changing this teensy36.build.flags.libs=-larm_cortexM4lf_math -lm -lstdc++ to this...
  • PaulStoffregen
    Before I consider a simple fix to be merged into the official core library, given all this new info is there a reliable way to reproduce this problem? Can it be done with a relatively small program not depending on many libraries and external...
  • PaulStoffregen
    Just to confirm, next release will have -Werror=return-type in boards.txt for all Teensy 3.x & 4.x.
  • PaulStoffregen
    PaulStoffregen replied to the thread Happy little incidents.
    Turns out this broke String from float on Teensy 3 & 4 with Smallest Code optimization, where snprintf() doesn't support float printing. Fixed so it now works with all optimization...
  • PaulStoffregen
    Also another blind guess, if this is some sort of timeout error, maybe configuring different the AWRWAIT and AWRWAITUNIT fields in FLEXSPI2_FLSHA1CR2 and FLEXSPI2_FLSHA2CR2 might have some effect?
  • PaulStoffregen
    When the problem happens, any chance you could read the FLEXSPI2_STS1 register? Main question is whether these fields indicate the hardware detected any sort of error.
    • 1792967390566.png
  • PaulStoffregen
    PaulStoffregen replied to the thread Happy little incidents.
    Fixed https://github.com/PaulStoffregen/cores/commit/31c559748d7fbc64ab6e8fd2e96d02cec8f0cfbf
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensyduino 1.62 Released.
    I've added code to my build scripts to automatically update -DTEENSYDUINO= in boards.txt for both Arduino 1.8.x installer and the 2.3.x Boards Manager package. Future releases should have these correct. However, there's nothing automated for...
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensy4.0.
    Did you connect the MIDI circuit in msg #8 to your Teensy 4.0? Did it work? Can you show a photo?
  • PaulStoffregen
    Here's my attempt to fix platform.txt for Export Compiled Binary to work properly on IDE 2.3.10 with Lockable Teensy. recipe.hooks.savehex.postsavehex.1.pattern="{teensytools.path}teensy_secure" encrypthex {build.board}...
  • PaulStoffregen
    Confirm, I'm able to reproduce the error with Sketch > Export Compiled Binary on Arduino IDE 2.3.10 using Lockable Teensy.
  • PaulStoffregen
    No, it's never been supported on Teensy 4.0 or Teensy 4.1. If PlatformIO or any other system is using the commented out lines, that's absolutely a bug with their software.
  • PaulStoffregen
    Oh that is a really interesting idea to use the flash chip erase/write suspend. But I don't see how it can work in practice with Winbond's timing requirements, unless there's some way I don't know for FlexSPI to integrate with timers. The...
    • 1792850423176.png
  • PaulStoffregen
    Maybe there is some misunderstanding? Or maybe I'm reading too much from only a few words like "AHB sequence" and "auto-resume"? Just in case of misunderstanding, please let me explain the pretty limited hardware capability and how the EEPROM...
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensy4.0.
    Did you connect the MIDI circuit in msg #8 to your Teensy 4.0? Did it work? Nobody can give useful help if you withhold info about what you've actually done and what result you saw. Remember, we can't see your screen, we can't see your...
  • PaulStoffregen
    PaulStoffregen replied to the thread PHP vulnerability.
    Thanks for this early warning. I did temporarily disable the forum for several hours. Updated PHP installed. Hopefully we're good now. :)
  • PaulStoffregen
    Usually this sort of hardware failure is due to the 3.3V power line getting accidentally driven with 5 volts or more.
  • PaulStoffregen
    Pretty likely you had a "ground loop" problem. It's a very common issue with all audio systems. MIDI uses an optocoupler input for this reason, so the input has no physical connection which can cause a ground loop. Most professional audio gear...
  • PaulStoffregen
    Maybe this is related, or maybe you've found a different problem I also need to investigate and fix? Replying now, but if it doesn't directly help with this @Thundercat problem, maybe a new thread only about this issue would be most helpful for...
  • PaulStoffregen
    That's both easy and difficult to answer. The easy answer is right there in the info: "error reading /Users/Mikey/Documents/Arduino/Fader_Pro_Premium_V6_31_SE/Fader_Pro_Premium_V6_31_SE.ino.TEENSY40.hex". The "exit status 1" just means...
  • PaulStoffregen
    PaulStoffregen replied to the thread True is false..
    I probably should have replied on those threads, but just to confirm now, I did put most of the "happy little" threads on my list of issues to investigate. Just to be realistic, in the absence of reports people are actually hitting these bugs, I...
  • PaulStoffregen
    PaulStoffregen replied to the thread True is false..
    The link in msg #14 points to line 44 which defines "txbuffer". But the only use of arm_dcache_delete() at line 80 uses "rx_buffer", which is indeed 32 byte aligned, as you can see at line 49. The pointer is added to an index multiplied by...
  • PaulStoffregen
    PaulStoffregen replied to the thread True is false..
    I need to weigh the needs of the many with the needs of the few. Many programs exist using DMAMEM to allocate variables and arrays in RAM2. Few programs (essentially none) exist which incorrectly call arm_dcache_delete() in violation of the...
  • PaulStoffregen
    PaulStoffregen replied to the thread True is false..
    The documentation clearly says "address must be 32 byte aligned and the size must be a multiple of 32 bytes".
  • PaulStoffregen
    1.62 updated the compiler from gcc 11.3 to 15.2. We tried to keep everything else as similar as possible between 1.61 and 1.62. Change any of the settings, like Tools > CPU Speed, so Verify will be forced to recompile everything. Watch...
  • PaulStoffregen
    PaulStoffregen replied to the thread True is false..
    From imxrt.h line 10336: // Delete data from the cache, without touching memory // // WARNING: This function is DANGEROUS!! The address must be // 32 byte aligned and the size must be a multiple of 32 bytes. // // DO NOT USE this function with...
  • PaulStoffregen
    We've had 3 releases so far in 2026, in February, May and June. Not as visible, we've also had 2 severe supply chain disruptions in 2026, first with flash memory and recently with Schottky diodes. Like in the pandemic, those take a huge amount...
  • PaulStoffregen
    PaulStoffregen replied to the thread "your IP has been banned".
    We only ban netblocks that originate spam or register fake accounts for spammers. Sadly, many VPN services are used by the automated forum posting software sold to spammers. It's a huge problem. Before we started blocking many IP ranges...
  • PaulStoffregen
    MicroMod boards have bootloader 1.06 or 1.07, depending on when they were manufactured. Yes, update for bootloader features will come to MicroMod. We will also publish the update for all DIY circuit boards made with the T4 bootloader chip.
  • PaulStoffregen
    I should also mention, PJRC has *not* published any update that changes existing Teensy boards from bootloader 1.08 to 1.09. Version 1.09 added support for many more flash memory chips. Full list on the T4 bootloader page. Version 1.08 and...
  • PaulStoffregen
    Latest version is 1.09. Can you give a screenshot with "1.0a", so we can see exactly what you're seeing?
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensy4.0.
    Looks like it should work. But be careful with the 5V and 3.3V wires, which are physically next to each other. If 3.3V accidentally touches 5V, even for a brief moment, Teensy 4.0 will be destroyed.
  • PaulStoffregen
    PaulStoffregen reacted to fouzi's post in the thread Teensy4.0 with Like Like.
    "Mr. Paul, I am trying to build this circuit on a breadboard first. If the project is successful, I will design and manufacture a PCB for it."
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensyduino 1.62 Released.
    Looks like the Arduino developers just a few weeks ago started working on a permanent fix for ctags on Apple Silicon.
  • PaulStoffregen
    PaulStoffregen reacted to bicycleguy's post in the thread Teensyduino 1.62 Released with Like Like.
    FYI Just updated my M2 mac to macOS 27.0.1 and found that Arduino IDE 2.3.10 wanted Rosetta installed. Thought I had gotten rid of Intel apps by looking at 'Activity Monitor'. Looked around and found Paul resolved the problem ~5/2026 and so I...
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensy4.0.
    Normally pin 7 on 6N138 would be unconnected. See recommended schematic at this page. https://www.pjrc.com/teensy/td_libs_MIDI.html But if you design a PCB, you could simple not add the resistor during soldering, or choose a different resistor...
  • PaulStoffregen
    Yes, confirm, DIY boards using the bootloader chip are lockable.
  • PaulStoffregen
    Friends, Here is my latest tutorial, which brings on-the-fly DDS synthesis (16-bit) to port IO on the Teensy 4.1. It can go surprisingly fast, and through careful testing, I show that the arm_sin_q31() function is the fastest way to compute the...
  • PaulStoffregen
    PaulStoffregen replied to the thread Audio and two serials?.
    Teensy 4.x doesn't have enough USB endpoints for Audio, MIDI and two CDC serial to all work simultaneously. You can have any 3, but not all 4.
  • PaulStoffregen
    Looks like NXP stopped making this eval board, but if you really want one for experimentation, some distributors still have stock. Mouser has 13 in stock today, part number is 771-MIMXRT1060-EVKB Newark has 19 in stock today, part number 25AK0898
  • PaulStoffregen
    The official answer is "not really". Teensy is really meant to be programmed by Teensy Loader, either the normal GUI version or the command line tool. Unofficially, you have more options with Lockable Teensy, which allows setting the boot...
  • PaulStoffregen
    Check MCLK output. SGTL5000 remains in a low power reset state where it's unresponsive to I2C if no MCLK signal is seen. If that doesn't solve your problem, perhaps get a Teensy 4.1 board and audio shield (known good hardware) to test your program.
  • PaulStoffregen
    PaulStoffregen replied to the thread Certificate of Volatility.
    Might also be worthwhile to mention this official statement covers Teensy 4.1 as shipped by SparkFun. Info about use of SD card or additional flash memory chips soldered to the bottom side isn't covered in the official statement from SparkFun...
  • PaulStoffregen
    PaulStoffregen replied to the thread Certificate of Volatility.
    Update, we now have a volatility statement on the Teensy 4.1 page under "Regulatory Compliance". https://www.pjrc.com/store/teensy41.html#compliance
  • PaulStoffregen
    I were to buy or borrow one for testing, which specific product? Quick google search turned up several. This one looks likely.
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensy 4.1 keeps dying.
    This 3.3V power may be turning on too early. See Power Up Sequence on the bootloader chip page for details. 1K pullup resistors to I/O pins should not destroy the hardware, but you can easily get Teensy stuck if current feeds through the I/O...
  • PaulStoffregen
    PaulStoffregen replied to the thread Teensyduino 1.62 Released.
    Existing releases are effectively frozen. Don't expect version 1.62 to ever be re-released, which would mean changing the data and thus all the SHA256 signatures in the platform index file. But do look for me to (hopefully) get it right in...
  • PaulStoffregen
    It's SparkFun's old part number for Teensy 3.6. Searching their site doesn't find it, but Digikey still has a reference. If you can't find any, I have 5 here which appear to be new condition, 3 without pins and 2 with pins. I have about a...
  • PaulStoffregen
    PaulStoffregen replied to the thread Bugs-AI.
    Just to confirm, I've added DMAPriorityOrder on my list of issues to address in version 1.63.
  • PaulStoffregen
    PaulStoffregen replied to the thread Bugs-AI.
    We've long had an informal expectation that bug reports need to show a complete program & details to reproduce the problem. My feeling is this applies equally whether 100% organic human or AI assisted. When this forum ran on vBulletin we even...
Back
Top