If that is really a concern, put waveshape and lerpshift into a struct and dynamically allocate them together, using a single pointer to access both values.
Heap fragmentation is really not a concern on the T4.x boards.
This is exactly the sort of thing I was talking about when I mentioned "acting like a victim" earlier.
When this thread began I had no idea who you were, nor Limor. Adafruit to me is just a business like any other, I don't care to know who runs...
The irony of someone with an account less than a week old, which was specifically created to announce a competitor to PJRC's products on their own forum, complaining about new accounts being used to "dunk" on them...
hi phil! i’m one of the new people who’s here to dunk on you!
just wanted to say that i had a similar experience with your closed source products as CollinK a few years back. talked to yall a few times online and in person about it but neither...
I thought the OP would have come back after they'd cooled off and asked for the thread to be removed, because it definitely doesn't reflect well on them. But it seems they've doubled down and are directing people here from their own website/blog...
usb_configuration is from the core, the TeensyUSBHost1 class is from my own USB host library (TeensyUSBHost1 is for the micro port, TeensyUSBHost2 is for the host pins on top of the T4.1).
I'd hope not, or at least if they do a way is found to have the port function as both device and host like the existing ones can. I have code that does this:
if (usb_configuration == 0) {
static TeensyUSBHost1 usb;
usb.begin();
} else...
Huh? Feels like we're talking in circles here.
They were talking about the molex connector that you ended up buying. The flex ribbon connector that the pads are actually designed for is this one, which has 1.0mm pitch and is used with the...
The problem with including pulldown resistors is that it locks the port into acting as a device. The existing micro usb port is possible to use as either a device or host port.
That's exactly what I'm saying. The MKL could be replaced with something else and while it wouldn't be possible to upload code with Teensyloader, another util (designed to work specifically with the MKL substitute) could perform the same job and...
It doesn't do this. It's not involved in the boot sequence (besides powering up DCDC at the correct time), that is purely handled by the IMXRT ROM based on the fuse settings.
If you have an alternative way to startup DCDC and a method to write to...
In case it helps, the SPI peripherals on the Teensy 4.x have a special register setting that can switch the MOSI/MISO pins (the OUTCFG field in the CFGR1 register).
I had no idea who OP was at the beginning of the thread, because they didn't make any mention of it - I suspect that was intentional, trying to keep it "under the radar" and trying to make it seem like this was a case of a small open-source...
I'm seeing something similar with "Serial + MTP" config, the serial monitor stops working after an upload and needs to be closed/re-opened several times before it starts working again.
These seem to be popping up everywhere lately: https://www.luckfox.com/EN-Luckfox-Pico-Pro
Cortex A7 is practically the bottom performer of the A series but still beats anything in the M series, plus with NEON it would be several orders of...
If you want to guarantee the arrays are stored sequentially (one after another) in memory, they need to be inside another object like a struct or class. The compiler is free to place global objects in any order it likes.
With regards to the...
The way it should be done, is that systick_isr (seen here) should be comparing ARM_DWT_CYCCNT with CYCLES_PER_MILLISEC*systick_millis_count to work out what amount to add to systick_millis_count instead of just adding 1. That way it wouldn't drop...
I think you mean millisecond, which is the period of the systick interrupt - and the flash procedures can easily disable interrupts for longer than that.
I have written an example that demonstrates the slowness:
#include <LittleFS.h>
#include <Entropy.h>
// NOTE: Entropy class defines "randomByte" and "randomWord" methods that aren't implemented!
LittleFS_Program progfs;
static elapsedMillis...
Supposedly there are some nightly arduino IDE builds with a "copy output" button in the serial monitor as a workaround for their broken behaviour. I haven't tested them (because I still think the Serial Monitor is pretty rubbish; why isn't it a...
The serial monitor simply isn't very good, even when it does copy it only grabs what is currently visible. Any selected text that is scrolled off-screen doesn't get copied.
You're better off using something like TyCommander if you want to...
Back to the topic at hand: making flash writes not block interrupts...
I've replaced the latter half of eeprom.c (everything after the eeprom_write_block function) like so:
#define LUT0(opcode, pads, operand) (FLEXSPI_LUT_INSTRUCTION((opcode)...
Something I did wonder about before I ditched it: LittleFS allows using a statically assigned programming buffer rather than dynamically allocating one. FlexSPI apparently allows mapping the TX FIFO to AHB memory, although I'm a bit unclear on...
I'm using the Teensy to emulate a playstation1 memory card. They hold 128KB of memory arranged as 1024x 128 byte sectors. The Teensy communicates with the console using SPI(-ish) over FlexIO and loads/stores the data to a 128KB memory array, with...