Search results

  1. PaulStoffregen

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    Try a full PC search for teensy_post_compile.exe. If that doesn't turn it up (might be in a well hidden folder), probably time to ask on the Visual Micro forum where they put teensy_post_compile.exe and teensy_reboot.exe. Edit: might also be good to mention this on their forum, just in case...
  2. PaulStoffregen

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    Here's my first attempt at a workaround for KB5127936. To install, extract this ZIP and copy the 3 EXE files to C:\Users\{username}\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.62.0\, replacing the copies from 1.62. I changed GetTcpTable() with GetExtendedTcpTable() using...
  3. PaulStoffregen

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    Thanks. I'll give that a try. So far I've been adding more code to check the GetTcpTable() result. Sure enough, I'm getting rows with dwState set to zero. But that's not a defined value. The legal values defined in iprtrmib.h are 1-12. My guess in Microsoft's netstat program skips printing...
  4. PaulStoffregen

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    Teensy Loader already use SO_REUSEADDR before it starts listening on port 3149. To be a bit more specific, Teensy Loader is built with wxWidgets. I'm using wxSocketServer (which nicely integrates network data reception with the GUI event loop). It's instantiated like this, where "addr" is...
  5. PaulStoffregen

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    More Windows 11 testing here with KB5127936 installed. Often I see 127.0.0.1:3149 on the list but with wrong state like FIN_WAIT_1, but sometimes it's completely missing when I know Teensy Loader is running and listening. :(
  6. PaulStoffregen

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    If you try the netstat test, please also look for 127.0.0.1:3149 on the list but shows in wrong state. Here's a reddit conversation. Unsure if it's related, but it is 9 days old which is about the time frame this problem started.
  7. PaulStoffregen

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    I'm looking further into this problem. I updated my Windows 11 laptop, and indeed I'm able to reproduce the problem. Teensy utilities are calling WIN32 GetTcpTable() to check whether Teensy Loader is listening, because on many versions of Windows there is a substantial delay for connect() to...
  8. PaulStoffregen

    Future Teensy features & pinout

    We decided to skip RT1170 and wait for the next generation. PJRC signed a NDA with NXP, so if I knew anything about NXP's next-gen chips, I would not be able to say a word until NXP makes the info public. However, info about next generation ARM microcontrollers is public. Cortex-M85 is...
  9. PaulStoffregen

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    This question on Microsoft's site has an answer to uninstall those 2 updates, but also has an accepted answer that just updating Windows Defender may also fix the problem.
  10. PaulStoffregen

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    Oh my, looks like Microsoft may have published a buggy update that breaks localhost. :( https://learn.microsoft.com/en-us/answers/questions/5585563/localhost-not-working-anymore-after-2025-10-cumula People in that conversation are reporting uninstall of KB5066835 fixes recent localhost...
  11. PaulStoffregen

    Error: Unable find Teensy Loader - Windows KB5127936 issue

    Please, everyone seeing this problem, start by clearly saying which operating system version you have, and if the computer has any special networking or security software setup. These details matter! Now to quickly explain what's going on, when you click Upload in Arduino IDE, a program called...
  12. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    Committed to github https://github.com/PaulStoffregen/cores/commit/27adf000f85619481a47233bb977b64ac41f71d8
  13. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    Ok, I've run all 28 tests. Everything looks good. Board MPU Memtest Fault Timing Preload ----- --- ------- ------------ ------- None + flash 0MB none 112 cycles 1 Hz 8MB + flash 8MB pass 112 cycles 1 Hz 8MB + 8MB 16MB...
  14. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    Today I'm running 4 tests on each of the 7 boards. Just to quickly document how I'm actually testing, these are the 4 programs: MPU size test, code below PSRAM memtest Fault timing, msg #16 Preload instruction, msg #37 - slightly modified, code below The 7 test boards have these memory chips...
  15. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    The extra 16MB PSRAM chips arrived today. Will soon test the 24MB cases. Just now soldered them...
  16. PaulStoffregen

    Teensy 4.0 Schematic Clarification

    Yes, confirm, the K9 pin (signal NGND_KEL0) is missing from Teensy 4.0 schematic. But it is indeed connected to GND on Teensy 4.0 and Teensy 4.1.
  17. PaulStoffregen

    Custom Teensy 4.1 Board

    Should be fine. The best physical placement is underneath the BGA with minimum length connection.
  18. PaulStoffregen

    Teensy 4.1 Secure Boot update?

    Yup, secure boot is baked into the silicon.
  19. PaulStoffregen

    Eagle library with Teensy 4.0 (test)

    Yes. On the Teensy 4.0 page, in the Technical Information section look for Dimensions.
  20. PaulStoffregen

    Would everyone like USB-C on the Teensy 4.1?

    We're probably on a path to USB-C device mode only for future Teensy 4.1 (but of course the 5-pin host port will remain the same). It's not just the CC pins. The VIN-VUSB jumper pads and the through-hole VUSB pad on Teensy 4.1 with Micro-B simply can't fit when the larger USB-C connector is...
  21. PaulStoffregen

    eurorack: what to do with digital inputs

    I can't see what's wrong, but if you're stuck I would recommend pulling the ADC and DAC chips and install fresh opamps. If the opamp still gets burning hot, at least you'll know to focus on just its circuitry. And if not, then you'll know to focus on how parts (don't) work together.
  22. PaulStoffregen

    Would everyone like USB-C on the Teensy 4.1?

    Which specific USB devices won't work? Most just connect pulldown resistors to their own CC pins.
  23. PaulStoffregen

    I need to test an old EEPROM and I need single cycle writes and reads (20ns timing is OK)

    Just to confirm what others have said, these old 27Cxx EPROM chips do not require tight timing. They also work fine for reading only if the just wire CS and OE always low and keep the WR pin high. You can change the address pins and the data pins change accordingly after only a short delay. I...
  24. PaulStoffregen

    Would everyone like USB-C on the Teensy 4.1?

    What would you recommend instead?
  25. PaulStoffregen

    Would everyone like USB-C on the Teensy 4.1?

    Normally I don't talk of future products, but in this case I'll just say "we're looking at this". I can't promise a date or details. I can say only Teensy 4.1 has room for a USB-C connector. It simply can not fit on Teensy 4.0. When (not if, but when) a USB-C version of Teensy 4.1 arrives...
  26. PaulStoffregen

    I need to test an old EEPROM and I need single cycle writes and reads (20ns timing is OK)

    How many times do we need to explain not all GPIO6 and GPIO7 pins are connected as this code assumes. If you want it to actually work, you need to craft the code to make use of the actual pins you've connected. But you're unwilling to tell or show us which pins you actually used, so nobody can...
  27. PaulStoffregen

    I need to test an old EEPROM and I need single cycle writes and reads (20ns timing is OK)

    I want to help you, and everyone else here probably does too, but the way you're communicating makes effective help pretty much impossible. We really do help on this forum, but we're not psychics. We can't see your hardware unless you show us photos or clear accurate diagrams. We can't see...
  28. PaulStoffregen

    I need to test an old EEPROM and I need single cycle writes and reads (20ns timing is OK)

    Is your goal only the read the chip and display its data on your screen or capture to a file?
  29. PaulStoffregen

    Odd behavior on custom board - MKL02 issue

    Thanks! Regular address is fine. Would really help me if you could write "Forum 78172" on the package.
  30. PaulStoffregen

    MIDI Disconnects unless connected to powered hub

    Yes, exactly. Usually I type "blah" on a blank line. It's easy to waste a lot of time editing the wrong file and wondering why your changes have no effect. Just 1 simple syntax error can quickly confirm if you're actually editing the right code. On disabling 480 Mbit/sec speed, yes, just...
  31. PaulStoffregen

    I need to test an old EEPROM and I need single cycle writes and reads (20ns timing is OK)

    Since you're unwilling to even tell us the EPROM part number (maybe 27C1024), I'd imagine you *really* don't want to tell us what you're trying to actually accomplish? But if the goal is simply to read all the data from an old chip, which is my guess from such a simple AI-gen program that reads...
  32. PaulStoffregen

    MIDI Disconnects unless connected to powered hub

    Best way to check if you're editing the right file is add any syntax error and click Verify in Arduino IDE.
  33. PaulStoffregen

    I need to test an old EEPROM and I need single cycle writes and reads (20ns timing is OK)

    This AI generated code has a built in assumption of wiring 20 address pins to GPIO6 bits 0 to 19, and 8 data pins to GPIO7 bits 0 to 7. At least it was nice enough to say so in the comments. // Mask for 8 data bits (e.g., bits 0 to 7 of GPIO6) // Mask for 20 address bits (e.g., bits 0 to 19...
  34. PaulStoffregen

    Linker error when using unordered_map

    Holding shift key while clicking the toolbar's Verify button also causes full recompile.
  35. PaulStoffregen

    Linker error when using unordered_map

    In latest Arduino IDE 2.3.10, press Ctrl - Shift - R (or Command - Shift -R on Macintosh) to recompile all.
  36. PaulStoffregen

    Odd behavior on custom board - MKL02 issue

    Wow, I'm glad you got to the bottom of this. Must admit, I read this a few times yesterday and watched the video, but didn't reply because I couldn't think of any plausible explanation. Is there any chance you might send me a couple of those fake chips? I'm really curious to experience with them.
  37. PaulStoffregen

    USBHost_t36 enumeration stalls with a flaky MIDI controller (Jieli chipset), logs from current master

    Confirm I'm able to reproduce this problem using a Donner StarryCtrl which I got from Amazon.
  38. PaulStoffregen

    Linker error when using unordered_map

    If you can send it to me (private email ok), I will try compiling it here. Can't make any promises, but just being able to reproduce it would be a first step.
  39. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    Opps, sorry, I mis-spoke. The MPU shouldn't get disabled. I only meant disabling the 6 lines which replace the default 32MB config with the actual PSRAM size. I should know better to be precise... wrote this after a session testing lots of stuff with 5 boards. My hope is to get the FLSH*CR0...
  40. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    Here's another version meant to cover the 14MB window you observed. It configures the last used FLSH*CR0 to 32MB rather than double the chip size, which is only 16MB for the 8MB chip. I had hoped to use smaller to maximize the amount left available for LittleFS, but taking another 16MB or 24MB...
  41. PaulStoffregen

    eurorack: what to do with digital inputs

    A resistor between the external signal and Teensy (or whatever other circuitry) is the main thing you need. Diodes to clamp the voltage also help, but they're far more effective if a resistor limits the amount of current. The input pins have tiny clamping diodes built it, meant for small ESD...
  42. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    After you've done plenty of testing with it as-is, please try deleting these last 6 lines from configure_external_ram(), so we can get some measurement of fix #2 without fix #1. asm("dsb"); SCB_MPU_CTRL = 0; SCB_MPU_RBAR = 0x70000000 | REGION(9); // FlexSPI2...
  43. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    Yes, but they're both with big NAND flash. When I get the PSRAM chips next week, will solder a couple boards with PSRAM + normal size NOR flash chips.
  44. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    I've been working on a hopefully permanent fix for core library. Please give this startup.c code a try. I tried to incorporate both fix #1 and fix #2. The MPU is configured for exactly the total detected memory size. The last required FLSH*CR0 region is also configured for twice the actual...
  45. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    Running is here on a board with two 8MB PSRAM. Looks like 3.58 second period.
  46. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    This is the part which gives me pause and makes the decision for 1.63 so difficult Yes, I hear you're only concerned about the bus timeout problem. But for a public software release, false memory faults are not an acceptable outcome! The info I'm hearing so far is you're certain your large...
  47. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    Ok, look, I'm going to do something for 1.63. But I want you to understand how uncomfortable I am doing anything without a test case and so much guesswork and uncertainty as to what actually causes this problem.
  48. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    We never execute code from PSRAM. The MPU setting has NOEXEC and the linker script doesn't generate any code in that memory region.
  49. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    As I understand this so far, these are the 3 bad outcomes? Access beyond A1 + A2 regions stalls because B1 and B2 aren't configured. Access meant for PSRAM into A2 region with PSRAM + Flash could trigger LittleFS QSPI sequences. Access outside MPU allowed range causes a fault. Is #3 an issue...
  50. PaulStoffregen

    Teensy 4.1: exact 2^30-cycle CPU stall (1491 ms @720 MHz), depends on the build

    Ok, just to make sure I understand this, it seems the fundamental problem is Cortex M7 speculatively fetches beyond actually accessed memory. I have seen mention about the cache controller speculatively fetching the next row after what the program actually used. I'm a bit skeptical about the...
Back
Top