So have you actually run your HelloWorld project on a T4.0?
maybe add the HellowWorld.hex to your git repository.
I believe T4.0's are in stock at pjrc.com
Paul, have you examined mbed-os/targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/TARGET_TEENSY_4X/bootdata.c
Above my pay grade ...
Seems like the mbed T4.0 code is derived from the 1050. I did some...
Good results Fast!
Yes, that confusion has come up before where the display examples don't fit the PJRC display.
@Paul might see this - but there is a 'Web-site-could-use-a-few-updates' edits needed thread - if...
The post seen should resolve your issue.
To answer this - some Touch Screens present analog output to represent the touch position. The PJRC display has onboard logic to parse the analog values and present them...
I see this section in the code.
What is the relationship between this snippet and the config on the PJRC page? #define YP A2 // must be an analog pin, use "An" notation!
#define XM A3 // must be an analog pin, use...
That uses library #include "TouchScreen.h"
That is not the one for the PJRC display.
Use a sample from this library folder: github.com/PaulStoffregen/XPT2046_Touchscreen/tree/master/examples
That uses library:...
Hey guys, me again.
I bought this touch screen display from PJRC.com
and applied the code written here to a teensy 4.1
the display seems to be working but i cannot get touch to work. I triple checked the jumper...
Jimmie:
Why not use a small laser and a sensor at the other end?
or,
You could try two thin strips of aluminum foil very close to each other on a non conductive layer perhaps made of Capton or something like it. You...
BriComp:
A while back I decided to try your suggestion on my Mac(OS Monterey 12.6.3). It would not even install, I got a whole lot of errors with no explanation as to what the errors meant.
Regards,
Ed
NEWSFLASH
Sysex file transfer works!
/* one tool to rule theM 1. - | copy left | M1Addict 2023
*
* a KORG M1 -> Translator + Midi repeater
*
Midi CH | function
I glanced at the linker script and generated code. Can't see anything obviously wrong.
I noticed you have a .csf section. Are you supporting code signing and BEE on-the-fly decryption? Of the many developments on...
OC Trial posts long ago - but not sure it ever has worked over 1.08 GHz.
Internal voltage has to rise as the speed goes up - and over max spec voltage before 1.08 GHz.
There is some cusp/spike internally when it...
While I have little experience with the audio capabilities of the T4.1, this thread does raise some interesting questions about memory management. The one that intrigues me the most is whether it would be possible to...
There are a couple of changes that should be made to ensure 3.3V compatibility:
1. D2 and D3, the 4.7V zener diodes in the input limiter to the analog pins should be changed to values below 3.3V
2. The encoder...
Do you mean the problem of copying data from a large buffer to a smaller one? You had the basic idea, but you had some mistakes in your logic. I suggest you make more use of print() and println() for debugging, because...
Tried it here. Same result, doesn't work. Same 8 blink error.
It printed this at the end of the build process
Linking CXX executable HelloWorld.elf
-- built: /tmp/mbed-ce-hello-world/build/HelloWorld.bin
--...
did that. and voila!
static uint16_t MIDI_BUFFER_LENGTH = sizeof(midi_buffer)/sizeof(midi_buffer);
Now everything works as i wanted it to :)
Thanks for the help!
ITS WORKING !!!
data array gets read into 128 byte buffers.
if the buffer size is bigger then the remaining data from the data array
the missing bytes are padded with 0x00. (overwriting the garbage that was there...
Tried but failed. :confused:
on Ubuntu 18.04.06 with stock arm-none-eabi-g++ version 6.3.1, cmake looked OK, and ninja built HelloWorld.hex
ninja
Linking CXX executable HelloWorld.elf
-- built:...
Thank you for the timely reply and helpful answers to my questions, Neal.
Understood. Good thing that I haven't already deleted it from the schematic and haven't wasted my $ on purchasing the CAT811T ICs.
Thank...
Hi everyone, I would like to extend RAM on the Teensy 4.1 to make a four channel looper.
I would like to make a new version of Frank's board for the APS6404L-3SQR-SN 8MB SPI memory chip with 8 chips on it.
I am...
joepasquariello: Did it. Its ok. prints out the same numbers. so i revert it to non static declaration.
31520
128
the garbage after the last byte is also the same. as with fixed values for the array lengths.
Ok, so far. it almost works when i use a buffer size of 128.
Still having problems with the padding. and "random" values
following the last byte of the source array.
1B 58 05 00 00 00 00 00 1C 5A 05 00 00 00 00...
Try adding these two lines after you compute the lengths of the buffers. With this information, can you see what's wrong?
Serial.println( SYSEX_PRESET_LENGTH );
Serial.println( MIDI_BUFFER_LENGTH );
A1: In my experience, the CS42488 reset line startup requirements are a bit sensitive. You need the CAT811T to make sure no short glitches occur during the power up process. If a glitch occurs, the CS42488 doesn't reset...
Just noticed that my midi buffer was 10 bytes short.
i fixed that and added some 0xff on the end and on the beginning of the array as markers.
Still memcp doesnt seem to work and doesnt overwrite the buffer.
...
ok, changing the size does help in that it doesnt reset the teensy anymore.
EDIT: joepasquariello, kd5rxt-mark : So you are totally right that is wrong.
i did miss that cause it made no difference in mey...
Sorry, I may have been editing my post at the same time as you were replying, so you may not have seen the question about the memcpy length parameter.
Since the CrashReport is saved from the previous crash, load/run...
In your call to memcpy(), the 1st argument is the destination (midi_buffer), the 2nd argument is the source (sysex_buffer), and the 3rd argument is the number of bytes to copy. You are passing in the size of the...
Thanks, i tried but still no output on the serial :(
void setup()
{
Serial.begin(115200); while (!Serial) {;} // wait for serial
if (CrashReport) {
Serial.print(CrashReport);
}
...
Should the length to be copied in your memcpy call be MIDI_BUFFER_LENGTH instead of SYSEX_PRESET_LENGTH (assuming that the MIDI buffer is smaller than the total SYSEX array) ??
Maybe try adding the following to...
Hello!
Im playing around with copying data from a large u_int8 array into a small u_int8 buffer.
the large arrays size is 31520 bytes, the buffer is 256 bytes wide.
Seems that my code does something really bad....
Hi guys, I am messing around with overclocking a T4 and managed to get it to pass CoreMark at up to 1.08GHz.
Disclamer: I did this at work where we make high performance coldplates.
I used a 10x10mm coldplate and...
what i am using
/**
* Audio Guestbook, Copyright (c) 2022 Playful Technology
*
* Tested using a Teensy 4.0 with Teensy Audio Shield, although should work
* with minor modifications on other similar hardware...
I installed fresh everything from the original repo. After applying the audio tweak, my recordings sound choppy. I tried several high speed SD cards, all with the same error.
If in continueRecording() function...
Indeed 71.582788266666666666666666666667 Minutes - the question mark was there for a reason ... Opps
There is a 1 ms interrupt that is used to track Millis() systick - that is also the base of Micros() response...
micros overflows after 71 minutes right? Or am I remembering incorrectly.
I had a couple questions to this, I know there's the systick interrupt which goes at 1 ms. So I figure millis uses this in part for...
Now that we're into February, is there any updated information (one way or the other) from NXP regarding the future availability of the MK20, MK64, and/or MK66 chips? Thanks very much.
I agree @MichaelMeissner but if you look at @jmoore's basic design (see post #1) there does not seem to be any reason why a T4.0 might not work.
He would have to make sure non of the T4.0 inputs were more than 3.3V.
The systems used in the UK for temporary speed measurement consist of a rubber tube with one end (the far end) closed and I assume a pressure sensor on the sensing end measuring pressure pulses. Each positive pulse is a...
Incredibly, if you simply ask it "Are you sure?" it will return a (more) correct answer, with an apology for the previous mistake. You can even ask it to double-check its answers before it sends them to you in the...
Not quite. It depends on what you do. Many programs will work fine, but others won't. I wrote the following pages to look at the differences:
Unofficial Teensy Wiki, teensy differences:...
upload_protocol = teensy-cli
Many thanks, kind stranger! That worked like a charm! Uploaded a large-ish program 20 times, and it was blazing fast every time.
So it looks like there may be an issue with the...
Very satisfied PlatformIO user here. Have used it without any problems for many years. Perhaps one of the reasons is that I *don't* use the native graphical teensy uploader. In my platformio.io for all my projects I...
A little more info. After I rebooting my Mac, I no get the "An error occurred while uploading..." message. For the first ~8 uploads everything was very quick, but after that it started to bog down again. So basically...
Thanks for the quick response, Paul! I haven't used the Arduino IDE in a long time, but I fired it up and tried it with the Blink example sketch. (It would take a while to translate my multi-file program back to that...
My first question for all PlatformIO issues is whether the same problem happens when using Arduino IDE.
Going to skip another PIO rant, but please understand PIO is not a consistent software install we can easily...
I've been using the Teensy 4.0 for several years as part of an LED controller for outdoor art installations (like this one). I've had some challenges for sure, but all were eventually overcome, often with help from this...
You could try something like the sensor strips that cities put on roads to measure the volume of traffic. I presume what they do is the weight of the wheel momentarily closes a circuit consisting of two wires in what...
I'm using noteFreq in the audio library to detect a notes down to 220 hz. In researching the underlying code I saw this comment in analyze_notefreq.h
1. AUDIO_GUITARTUNER_BLOCKS - Buffer size is 128 AUDIO_BLOCKS....
Yes, it seems like we're experiencing the same issue. I think I'll start a new thread about this, since the responses here are mostly about the SD library compatibility issue. I've been using PlatformIO for a few years,...
Hello! I'm Jamie, one of the developers of Mbed OS Community Edition. We are working on a port of Mbed OS for the Teensy 4.0 (and soon, Teensy 4.1) boards, and I need help from someone who owns a board to test our...
I would appreciate advice on creating an axle sensor using a Teensy 4.1 connected to a sensor.
Basically, I need to detect when a wheel of a vehicle rolls over a thin/narrow aluminum strip which is glued to the...
Trying again the answer these questions as clearly as I can.
For SDIO used on Teensy 4.1's built in SD socket, there is only 1 way to initialize. Unlike SPI where you can choose various options, you don't get...
Hi Folks,
I'm currently designing a PCB which combines the CS42448 with differential op amp XYRGB outputs. So, I'm basically duplicating the OSH Park schematic and combining that with my own single ended TL082 op amp...
That reply suggests proper setup - both methods resolve to SdFat code - but getting to SDIO is unique - provided examples should make it clear. Once they are setup they are using the Max Perf Code - as long as they are...
I was asking about the best way to initialize the SD card and how I could get max performance out of it. I also had asked if overclocking the Teensy itself (not the SDIO) would make any difference.
This error means you don't have the 00-teensy.rules file.
Maybe you downloaded it to a different directory. In that case, you'd need to use "cd" to change to that directory. Or add the pathname to that directory to...
Yes that's another advantage of VisualMicro with Code Studio, it piggy backs on top of the Arduino IDE.
You don't have all the reported PlatformIO problems.
Of course it won't work if you use a SD library published by Adafruit.
These are the libraries Teensy uses:
https://github.com/PaulStoffregen/SD
https://github.com/PaulStoffregen/SdFat
Now here is the part...
Have you considered adapting your project to use the T4.0? Unless you require the touch input or something specific to the T3.2 ADC, you should be able to plug a T4.0 into the T3.2 socket and recompile your software. ...
Yeah, I got so tired of making that mistake that I wrote a macro to remind myself that I'm setting a corner:
#define SetCorner(reg, h, v) reg = (h<<16 + v)
The macro is used like this:
...
Hehe :) That was my thinking too. And since writings of resistor values
often skip the Ohm i thought MatrixRat has fixed some timing issues by
changing some resistors from 100Mega Ohm to 65Mega Ohm :)
some...