Thanks, I've just take another look. I did not see before how I could "Inspect" and the drill down in the explorer looking at contributions to flash.
I see it now, and will figure out where the fat...
Type: Posts; User: Davidelvig
Thanks, I've just take another look. I did not see before how I could "Inspect" and the drill down in the explorer looking at contributions to flash.
I see it now, and will figure out where the fat...
No luck yet with optimizing parameters at compile/link time.
I know I have a chunk of code in the Adafruit libraries:
#include "Adafruit_ST7789.h"
#include "Adafruit_ST77xx.h"
These are meant to...
Well, dang!
both of these:
-D TEENSY_OPT_SMALLEST_CODE
-D TEENSY_OPT_SMALLEST_CODE_LTO
cause a non-functional app.
I cannot see entrance to the setup() function
(i.e. Serial.print() does...
Oh my goodness, @thebigg !
-D TEENSY_OPT_SMALLEST_CODE - drops it to 45%
-D TEENSY_OPT_SMALLEST_CODE_LTO - drops it to 40%
I'm going to see if this runs well.
and thanks @blackketter, I'll...
Thanks, Paul. I'll have a look at the PlatformIO build flags.
I would have to wean myself from printf's with floats... but I could define them out.
I'm also wondering about two hefty libraries...
I have a project using 58% of flash (on Teensy 3.2 architecture) and I need to get under 50% to try the easiest form of OTA updates.
Can someone point me to strategies to whack unneeded code from...
This is such great stuff! I'm going to see how it can apply in my case.
I'm using Teensy 3.2 architecture on my board, and my toolchain is VSCode (Platformio) on Mac OS.
The toolchain leverages...
I'm starting to build an audience for a Teensy-based MIDI wind controller here.
27449
Thanks to the forum for lots of advice along the way!
I've been using these sensors for a MIDI wind controller breath sensor. It has an appropriate pressure range and has been reliable.
Sourcing was problematic last year - competing with ventilator...
Interestingly, I need a bit longer pause to "resynch" the serial when sending to the ESP32. 1500uS works, though 1000uS did not reliably.
Funny how the world looks like a better place now!
And now also with similar code on a Teensy-->ESP32 setup.
25241
Thanks again!
25240That was it!
Dang, I had it grounded in earlier iterations... when I must have had other code errors.
Error free now.
Thanks a bunch! My confidence and sanity are returning.
Representative Sender side serial monitor snippet:
Representative Receiver side serial monitor snippet
Picture of setup - each Teensy USB-connected to its own MacBook running Teensyduino 1.5.3
25239
(Coin cell and Audio Shield are non-contributing extras, I hope)
Update:
This simplified code still works flawlessly on a loop-back-connected single Teensy, and fails on cross-connected dueling Teensy's
I can't figure out where the phantom / erroneous inbound...
Well that's annoying - and perhaps encouraging. Two emotions at once!
I'll keep looking - perhaps after I see if SPI Slave on ESP32 is easy.
I can try "getting in synch" the first time on the...
I have a MIDI Wind controller that needs BLE MIDI out for playing music on a phone or PC synth,
and BLE UART bidirectionally to a phone app for configuration.
I've made this work with the...
Interesting,
Attaching an ESP32 as the second device - same code, requires:
- dropping the BYTES_PER_DELAY from 12 to 2 (so a delay every 2 sent bytes); and
- increasing the INTER_BYTE_DELAY to...
OK,
Delay of 1ms (1000uS) works with a delay every 12 bytes, but not every 15 bytes.
Good throughput at nearby 11 Kbytes/second.
Seems like a reasonable fix.
After the two boards get "in synch",...
Got it. I'll try a whole millisecond delay, and stretch out the number of bytes between such delays.
Sounds like the issue. Thanks!
I am indeed at full speed here, and it won't be "in real life".. That is, I can go slower.
You mention in the other post a "10 microSecond delay every 5000...
Now that I have your attention...
I'm new to inter-board UART communication.
I'm testing 2 Teensy 3.2's using Serial2 on each, and the attached code.
Each works flawlessly, delivering...
I think I've narrowed down a hard crash on my older (and now newer) MacBook Pro.
I recall the old blue-screen-of-death days on a Windows PC.
These are equivalent Mac crashes. Exceedingly rare in...
Thanks, MarkT.
1) I see that control_sgtl5000.cpp uses Wire.h and Wire.begin
and the included WireKinetis.h defines Wire1, Wire2... etc.
Should I assume that I have to modify...
I have a few Teensy audio adaptors, and want to add their functionality to a custom Teensy 3.2-based board I've built.
I need all of the touch pins on the Teensy for other puposes.
So want to use...
OK... trying to grok this...
I'd like to Over-the-Air (OTA) update using BLE on a custom Teensy-3.2-designed board that has a Teensy Bootloader.
The board also has an internal uSD card for...
@MatrixRat, are you saying that your MIO-10 from iConnectivity DOES communicate MIDI with your Teensy when it is compiled for SERIAL + MIDI?
That was the fail point for me on my iConnectivity...
I'm leveraging the Teensy-to-PC USB connection for more varied functions, and hitting some snags.
I've paid attention to this thread. I have what I hope are simple questions:
How to handle...
Thanks so much for explaining these options!
I'm using a solution like #1 for setting my device's USB-MIDI name.
Now that I think of it, I wonder if it has the same timing limitations - that it...
Thanks!
Are these stored in flash?
Is this modifiable at run-time?
i.e. could I put a default in here, that after flashing, run a method to accept an input (from Serial, let's say) and set the...
I'm using a Teensy 3.2-type board with a PJRC boot loader.
Stefan Staub's Teensy ID library returns the following:
From my Teensy 3.2-type board with PJRC boot loader
USB Serialnumber:...
I’ve been introduced to the Processing toolset to make a Teensy flasher leveraging TyCommander command-line tool.
I’d like to expand the flashing tool to communicate with the running Teensy...
@bolau, did you figure this out? I posted a recent thread in a related vein.
I have found that neither my iConnectivity iConnectAudio4+ nor my Yamaha digital piano (DGX-660) recognize my Teensy 3.2...
I found this thread after posting this one
@lokki, it looks like you've built a USB MIDI hub for MIDI devices using a Teensy 4.0 and a USB Hub... Is that correct?
I'd like to build or buy a device to use between a MIDI Wind Controller I've developed on Teensy, and a common digital piano, such as this Yamaha DGX-660. This piano has a USB MIDI jack on the back...
I'm excited about the possibility of this MTP Responder.
I see in as an (Experimental) USB option now.
Is it likely that this will be usable simultaneously with other USB types ? I use USB MIDI.
My Teensy 3.2-based product includes a uSD card for internal storage.
I've been testing with SanDisk Pixtor from BestBuy and have seen no failures. My test cards happen to be 32GB.
I'm looking...
I see that on my Teensy 3.6 now. It look rock-solid!
That looks like this one that I was considering above
Thanks!
I have a Teensy 3.2-based board that's working well. I just ordered 110 boot loaders for the next batch.
And I just managed to rip the uUSB socket off my board. It's happened twice now in...
I've been using GarageBand on the Mac for testing of my Teensy 3.2-based MIDI wind controller.
I'd like to do the same on Windows with the rough requirements:
- receive and play MIDI messages...
That's very helpful! Thanks!
I'll digest this.
I expected that the AdaFruit implementation through AT commands would have a fair amount of overhead. Thanks for quantifying it.
I have the...
Thanks, Pieter!
I'll check it out.
I'm queuing because I have several inputs and several outputs (including the USB in and out)
The outputs have different latency (USB, Serial and Bluetooth) and...
I'll be adding MIDI message queues to my MIDI wind controller.
Any suggestions as to a useful, solid, fast queue library to use (such as this one that is one of several in Arduino libraries)?...
Is there someone who I could hire to construct a Teensy-3.2-related field update process?
I'd like to leverage the skills of someone who's done this before.
The user will be a novice PC or Mac (or...
Thanks! That looks just right !
Thanks, Paul!
I had a quick look. The PJRC Unique Serial Number looks out of my wheelhouse.
As for the 16-byte NXP number... that looks useful and almost accessible.
Have you a quick reference to...
Sweet!
I'll dig in.
Thanks, Paul!
I'll be shipping a Teensy 3.2-based device soon, and would like each device to have a unique number, to be included in error and usage logs.
What's the best practice for that, or is there a unique...
I'm way late to this party, but...
Are you compiling with Tools/USB Type: "Serial + MIDI"?
I have some pure MIDI USB devices fail with that (iConnectivity MID interface, Yamaha digital piano). ...
I’m interested to add haptic feedback to my Teensy-3.2-based project.
Any guidance on where to start?
Devices to use? Libraries? Strategies?
Thanks!