PaulStoffregen

Latest activity Postings About

    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      I found a fix for the toolbar icons on Windows. But the missing toolbar on MacOS is a hard problem. Looks like Apple wants toolbars to appear on the right side of the title bar in new versions of MacOS. That's just not going to work for the...
      • 1728298741776.png
    • PaulStoffregen
      Look, I know you've had a rough and frustrating experience, and right now you're probably not feeling very confident in the tools and compiler. But it really is working properly.
    • PaulStoffregen
      To explain what went wrong with the code in msg #19, is also a simple mistake in your code. Arduino IDE and the compiler are working exactly as they should. The problem is the close bracket that ends your setup() function went away. This is...
      • 1728075370464.png
    • PaulStoffregen
      It is indeed something very simple, exactly has jmarsh explained. Your variables "velocity" and "note" are local to only the setup() function. Using them in the loop function is an error. You need to create the code like this: int velocity =...
      • 1728074788785.png
    • PaulStoffregen
      In Arduino IDE, click Ctrl-A to select all code, and Ctrl-V to copy to clipboard. Then in the forum on your browser, click this button. In the popup box, press Ctrl-C to copy your code. Arduino IDE can open more than 1 file. If you have...
      • 1728063396284.png
    • PaulStoffregen
      That is very strange. We don't have any "Blink.cc" file in the core library code, which would be installed at AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\cores\teensy4/Blink.cc. Are you using Arduino IDE 2.3.3? Or another...
    • PaulStoffregen
      I'm going to go with answers: no and probably not, but maybe. First, no, chips added to the bottom of Teensy 4.1 aren't ever accessed as EEPROM. They are used with LittleFS as a filesystem. Maybe that can be useful, but if you're expecting it...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensy.exe icon.
      Just to add a bit more info, Teensy Loader is built using wxwidgets for all the GUI stuff. Internally these buttons are created from PNG files that get built into the code and converted to a wxwidgets abstraction class for images, and then used...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensy.exe icon.
      It's on my list. So is missing toolbar on MacOS, also mentioned the the beta test thread. Probably not technically the same issue, but both likely to be addressed looking into the toolbar details (which really haven't changed since the very...
    • PaulStoffregen
      These section type conflict errors happen for a couple reasons. Can't see enough of your code to say why. Briefly, #1 use of PROGMEM on functions (it's meant for data) or FLASHMEM on data (it's meant for functions). It's kind of a silly...
    • PaulStoffregen
      SDA and SCL are supposed to connect directly. The resistors are each supposed to connect between 1 of the signals and +3.3V. This photo looks like the resistors are connected between the display and Teensy, not connected as pullup resistors.
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      Sorry, didn't see this question earlier. I mostly started from the conversation on issue #58, especially this message from Sep 20, 2023. which explains Arduino IDE 2.x is based on Theia is really just VS code internally. These are the links...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensy and Raspberry pi 5.
      What does "console" mean? Are you talking about a gaming machine like Microsoft Xbox or Sony Playstation or Nintendo Switch?
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      Another exciting moment on my 4th day of Typescript programming! Actually generated the fuse write code in IDE 2.3.2.
      • 1727858038118.png
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      Exciting moment here, using dankeboy36's suggestion, I was able to get a new window to open with code from a temporary folder! Arduino IDE is able to compile and upload it (unlike my failed attempt with vscode.TextDocumentContentProvider). Now...
      • 1727827373713.png
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      I'm going to try that suggestion from the github conversation. Looks promising... Really wanted to try it late last night, but got distracted trying to get the forum responding.
    • PaulStoffregen
      It's really not a lot of total data transfer. The units are incorrect. Numbers at the last 2 lines are total bytes, not per second. 8.7 GB over 24 hours, if it repeated every day, would add up to only 1.3% of the server's 20TB monthly...
    • PaulStoffregen
      Looks like things are calmed down now.
      • 1727819563324.png
    • PaulStoffregen
      Difficult to tell if this is a malicious attack or a very badly designed bot. It's utilizing tens of thousands of distinct IP numbers, so sure seems like someone knows they're up to no good. The accesses keep coming, but the pace seems to have...
    • PaulStoffregen
      Looks like someone may be running a distributed denial of service attack. Or if there's some other nefarious purpose, difficult to know what it is. I cobbled together a couple fail2ban filters which are lightening the load, but the server is...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      Well, after spending all weekend learning Typescript, I started a VS code extension which can do the key generation for Lockable Teensy. Here's a screenshot. In anyone's curious, here's the source code so far...
      • 1727664471149.png
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      Hmm.... thinking about this a bit more, I wonder if there's a way to use Apache's mod_rewrite to "fix" these bad URLs? Obviously we can't do anything about the human errors where Teensy's URL gets appended to some other URL, but these cases...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      Also carefully check Settings for the URL format. If you have any other boards than Teensy, for the sake of troubleshooting copy the whole thing to clipboard and paste into a text file for safe keeping. Then delete it all, and starting with a...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      Did you try this beta version? I personally tested it on a M3 Macbook Air with MacOS 14.5 (Sonoma) which has Rosetta 2 installed, and also on a M2 Mac Mini with MacOS 15 (Sequoia) which lacks Rosetta. Everything worked fine on a M3 machine. It...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      Use File > Preferences to edit the URL. This beta has its own URL separate from the normal one. Most future betas will have their own URL, partly because it's the only way to test the port discovery and serial monitor utilities, partly because...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      This message is supposed always appear when you upload with "Serial ports" and never appear when uploading with "teensy ports". It was sometimes appearing even when "teensy ports" was used. There are many cases depending on which version of...
      • 1727552002624.png
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      Yeah, looks like we're going to need a VS code extension.
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #2.
      I updated my build machines for all platforms. MacOS is the biggest change. If you have a Mac, and especially any older version of MacOS, please give this a try. In theory it should run on all MacOS versions Arduino IDE 2.3.3 supports. In...
    • PaulStoffregen
      I kinda doubt anyone outside NXP (formerly Freescale) could really answer anything other than #3. For some speculation, reducing the clock speed should give you less internal heating. But it's probably only a small linear gain, because the MK64...
    • PaulStoffregen
      Please consider 3 essential steps when asking a technical question. 1: Good first impression - Humans will spend their time to answer when you give a favorable impression. The main factor is to show your effort. People usually enjoy helping...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #1.
      I haven't tried gcc 13.3. Maybe it will be smoother than the problems going from 5.4 to 11.3 (like constexpr contructor no longer giving static init), but at least for now I'm hoping to stay with gcc 11.3 and focus on merging audio library...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #1.
      I recently got a 2023 M2 Mac Mini running MacOS 15 (Sequoia). Until now I've done all MacOS work on a 2011 MacBook Pro running 10.7 (Lion) and a 2013 Trashcan Mac Pro running 10.14 (Mojave), which of course run very old versions of Apple's...
    • PaulStoffregen
      Yes, A0 pin. Or any of the analog input pins. Any can you as long as you specify the pin in the code where you actually connected the wire. Code looks better, at least the 36 lines I can see. When you post code here, click the </> button. A...
    • PaulStoffregen
      I'm having a hard time imagining anything useful to be gained by dynamic allocation. You still need to have enough memory available for the maximum possible number. Attempting dynamic allocation comes with some disadvantages. The main one is...
    • PaulStoffregen
      Why not try both? You can quickly build them on your solderless breadboard. Just plug the parts and wires in. :)
    • PaulStoffregen
      Test pin 7 first, since all 3 clocks have 1.65V and I2C previously worked. Pin 7 has the digital audio data from Teensy to audio shield.
    • PaulStoffregen
      During the connection testing, connect your voltmeter negative lead to GND near Teensy. Touch the positive lead to the solder on top of the pad on audio shield. The idea is to check whether each signal truly does connect all the way from Teensy...
    • PaulStoffregen
      You can also use the LED blink example to test any pin. Just edit the pin number and upload. Your voltmeter should see that 1 pin changing at the location on the audio shield, and all the others should not change (check if 2 pins are shorted...
    • PaulStoffregen
      On the 3 clocks, approx 1.65V confirms a 50% duty cycle waveform. If you measure close to 0 volts, the signal is not really connected.
    • PaulStoffregen
      Do you have a voltmeter? While the Guitar program is running, please try measuring DC voltage at several places. In all tests, connect the negative lead to Teensy GND. Connect it close to Teensy. Measure these as DC voltage: (touch these...
      • 1727267406136.png
    • PaulStoffregen
      I tried to listen to the "Voix 002.m4a" audio file. I can not hear any guitar sound. No indication the I2S data is causing even slight output.
    • PaulStoffregen
      You can see the PCB images on the website: https://www.pjrc.com/store/teensy3_audio.html
    • PaulStoffregen
      Those headphones should work. Yes, the message about downloading package_teensy_index.json is normal. Arduino IDE automatically downloads this file over and over to check for new versions of the software. If you are hearing some guitar sound...
    • PaulStoffregen
      Mark has a good point about the AC nature of this piezo sensor. If you know for certain the polarity of the signal, you could use a circuit which clamps the negative signal to (nearly) zero and allows the positive signal to reach Teensy's ADC...
      • 1727258809457.png
    • PaulStoffregen
      If you hear the guitar sound, perhaps the Teensy and audio shield are working, but there is some problem with the connection to whatever hardware you are using to listen? Best to use ordinary headphones. Remember, we can't see what you're...
    • PaulStoffregen
      Can you reproduce the WS2812Serial problem without the EtherCat hardware connected? Or to ask more specifically, can you share a (hopefully small) program which I or anyone else with WS2812 LEDs (but not the other special hardware) can run on a...
    • PaulStoffregen
      Quick comments on possible issues here. 1: Restructure your program to not use delay(). You will miss activity during the delay time! I'd recommend adding a bool variable to remember whether the fan is on, and an elapsedMillis variable to...
    • PaulStoffregen
      Yes, this is the normal way to use Teensy 4.0 and Audio Shield rev D. These 2 products are designed so all the pins line up for proper connection when assembled this way.
    • PaulStoffregen
      Your GND and 3.3V wires are unusual. Normal way is to connect to the same physical location, as if the 2 boards were directly connected. This unusual way is probably ok, but because things are not working, why continue doing this the unusual...
    • PaulStoffregen
      You're calling eeprom_read_block(), which doesn't read actual memory. It reads the emulated EEPROM. And you're asking it for bytes far beyond the tiny emulated EEPROM size, so it just gives you the default 0xFF. To read actual memory, just...
  • Loading…
  • Loading…
Back
Top