For what it is worth, @mjs513 and I were playing with a picture viewer sketch, which is up at: https://github.com/KurtE/mtp_tft_picture_view
It cycles through pictures on a storage and displays them on a display.
It...
Sorry I am not a platformerIO user, but your simple images/code do not show you including <SD.h>
You have some other <dbSD.h> which I don't know what that is.
It does show in your platform.ini file stuff that it...
Sorry, throwing darts...
How are these Teensy boards being powered? Is it through USB? Or through VIN? If VIN, what is the voltage?
Just wondering if it could be differences in which VR or the like...
Again...
The QSPI memory does not use LPSPI it instead uses: FLEXSPI controller (Chapter 27) - There are two of these, one for main memory and second for those bottom chips.
Pins 48-54 - Mode 8 If my quick look is correct.
...
@luni - I was thinking the same thing in my earlier post.
Maybe it is one interrupt interfering with the other.
...
inline void TriggerGenerator::PeriodicCallback()
...
prepare_message(type_, seconds_, micros_,...
LPSPI - I know somewhere in the PDFs, it says like LPSPI should not exceed something like 25 or was it 30mhz.
The QSPI is a setting on LPSPI so would have the same speeds. However, I am pretty sure that there are...
Maybe it is one interrupt interfering with the other.
That is, if you have code like this:
inline void TriggerGenerator::PeriodicCallback()
{
digitalWriteFast(pin_, HIGH);
// REVIEW: need no interrupt?
...
I would definitely go more by what Paul says here, but earlier I did query on Digikey and Mouser and found what looked like sevaral available.
In the last search I restricted my search to TQFP type as the other types...
So you added the json file to the preferences. That is if you bring up the preferences and click on the list yours should include:
Your list includes the one I highlighted in green:
Note: Just to be sure I often...
Like the others, I am pretty sure that is simply two connectors. that is there are 2 groups of 4 pins, which probably match the 4 pins of our one connector where then the 5th pin would connect up the shield...
If you...
I would double check the udev rule, as when I install teensyduino directly for Arduino IDE, on Ubuntu, I have to manually copy the file to the right location.
Edit, and I would also maybe see what the linux tells you...
Did you install the udev.rules on this machine?
https://www.pjrc.com/teensy/td_download.html
Maybe try different USB cable. Maybe it is a power only one?
Quick note: I personally try not to make any assumptions about the experience levels of different members up here, unless of course if they mention it. To me it is often more, a matter of what your current project is,...
Everything is a tradeoff... There used to be code in place, that would remember if the last output was 8 bit or 16 bit and if the next one is different it changes the setting. Which in isolation worked great.
...
Guessing that you used older compiler and maybe either did not see the warnings or maybe did not generate them.
Yes there are three of them:
void getTextBounds(const uint8_t *buffer, uint16_t len, int16_t x,...
Yes updating to new compiler that checks things more... can get you lots of warnings.
I did a quick look of the github source for the header file and the blame view says that the api changed 2 years ago.
Note some...
Note: The IDE already has the preferences settings for warning levels.
It is just that the Teensy install does not use them. Possible changes and the like mentioned over in the Arduino forum in the post:...
Assuming you are still trying to use SPI...
I could be wrong, but not sure the special transfer16, will gain you a whole lot. Maybe the save, set, restore eats some cycles, but as compared to the rest of the stuff...
...
Sorry, maybe I am missing something here...
But with this code, it looks like a lot of the classes are on the stack as part of setup?
So they disappear once setup completes?
What do you mean by not responding? Is...
Any time you pass or use a string like: "ABCD"
and pass it to somewhere as a char* if will give you this type of warning, as doing somghing like
const char*sz = "ABCD";
*sz = 'Z';
will fault the processor as you...
Yes, the other positive side effect with Mike's version, is we converted it to an archive library.
The benifit is, with the official version, if you include it, all of the fonts will be loaded into your sketch.
With...
The version of ILI9341_font library from @mjs513 is setup to work with most all of our graphic libraries.
The problem is that they depend on the font definition, which is not local to this, but instead part of each...
Is it possible for rawhid to do 512 byte transfers? Yes
I experimented with it over a year ago, and did do a Pull request: https://github.com/PaulStoffregen/cores/pull/629
Note: the PR has not been incorporated and...
Yes you can have IDE2 and IDE1 both installed on same machine.
Appimage on Ubuntu: Currently has a minor issue that a shared library is not installed by default on Ubuntu.
fixed by: sudo apt install libfuse2
...
Note: I believe there have been some other threads in the past about this.
Like: https://forum.pjrc.com/threads/64573-Exception-handling-on-Teensy
There are times it would be great, but not sure as a default as...
These can be challenging to find.
First thing I might try, if you have not already done so, is to put in the Crashreport code in and see if it captures a crash.
Something like:
while (!Serial && millis() <...
Good luck!
Sorry, I sort of stopped looking after I saw that it is not using the standard Serial Interrupt handler.
You probably still need to look at some of the RX states and clear them.
And/or wondering if...
@bramke and @Paul
The sketch went completly nuts on my machine. Caused things like TyCommander to not want to run...
I could be completely wrong, but don't you need to add Audio memory? to this?
At least it...
Two parts to this:
a) Frame buffers: For a 320x240 display each frame buffer takes 153600 bytes Plus overhead. And the board has 256KB of memory, so two won't fit.
T4.x has more memory and can easily fit a couple...
Quick Side notes:
Paul - did you try running the sketch after powering it off and powering it back on? From his post sounded like it worked on right after programming it.
If there is an issue with this. ...
Sorry I don't really do that much with some of the different USB types...
But for me on a Teensy 3.2 I tried simple sketch:
uint8_t button_index = 1;
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
...
From your post #30 it is just an integer array: int bit2btn = {-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1}; // working array of buttons
Note there is code in...
Looks like that one used SPI_MODE0 where I guessed SPI_MODE3 in the other one.
MSBFIRST/LSBFIRST tells SPI the order of the bits, that is if I output an 0x01 are the bits output: 0 0 0 0 0 0 0 1 or is it 1 0 0 0 0 0 0...
Now wondering about:
Serial.begin(9600);
SPCR |= _BV(CPHA);
SPCR |= _BV(CPOL);
SPI.begin();
We have some stuff in place to try to emulate the AVR register SPCR, but not to say it works overly well.
...
Sorry, I don't believe the Wire library will work here.
Not sure if there are any SSD1306 libraries that have bit bang code built in or not.
There are some Software Wire libraries out there that emulate Wire, but...
Note: my original post, was with only the information that you were using a "TeensyLC button box" And the example program was to see if potentially the buttons were
connected simply, with a one button to a pin...
It may be difficult to help much without more information.
As I mentioned in a different thread recently. A few of us hacked up a sketch:
#ifdef ESP_PLATFORM
#define digitalWriteFast digitalWrite
#define...
We had some cases working in USBHost where dealing with NULLPTR. ...
Not sure if this shows similar or not:
#include <ILI9341_t3.h>
ILI9341_t3 *ptft = nullptr;
void setup() {
if (CrashReport) {
while...
Sorry, sounds like something might be wrong with your display and/or wiring.
Is this a new display? Did you buy it from PJRC or for example from somewhere else like EBAY? Could you show a picture of the bottom of...
I am able to build it on a RPI4, I have built it both for Ubuntu as well as Raspian... But I am running 64 bit.
kurte@kurte-rpi4:~ $ uname -a
Linux kurte-rpi4 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT...
There is some information about Flexio up on my github project: https://github.com/kurte/flexio_t4
The readme shows the different pins for the T4.x boards.
The Teensy 4.1 (ARDUINO_TEENSY41) Will have additional IO...
Couple of things:
a) I have found these displays more reliable when you setup a Reset pin which is passed into constructor.
b) If I find it not working well, I try to drop the SPI speed. I believe this library...
I believe all of them will be included into your sketch if you use the Arduino menu item: sketch->Include library.
We could avoid that if we updated the library.properties file and added the includes line:
Quick update, here it is slightly extended.
// Quick and dirty sketch to see if I can blink the LED on T4.x using DMA.
//Which is pin GPIO 2 pin 3
#define PIN_NUMBER 13
#include <DMAChannel.h>
DMAChannel...
Here is one that blinks the LED...
// Quick and dirty sketch to see if I can blink the LED on T4.x using DMA.
//Which is pin GPIO 2 pin 3
#define PIN_NUMBER 13
#include <DMAChannel.h>
DMAChannel dma1;
extern...
Sorry, each time I do DMA it takes a bit to get it working. And I have never tried triggerContinously. I typically would want it driven at some specific speed or the like.
Most of my usages have been with SPI and...
A couple of different thoughts:
First is you are pushing it hardware wise.
If you look at the 1060 Datasheet you will see:
So they say 5mbs is the limit.
And hopefully your wires are real short and the...
As has been mentioned in other threads. The arduino-cli teensy support was setup to allow the compiles to go on headless. So far the upload code has not been updated to allow headless operations.
However, there are...
You might try adding a pinMode(14, INPUT_DISABLE);
to the setup in the program to see if that helps:
https://forum.pjrc.com/threads/63050-Teensy-4-0-analogRead-bug?p=252693&viewfull=1#post252693
@Paul,
I am guessing you already saw this, but there were questions asked by Arduino Developer on the Port Discovery stuff on github:
https://github.com/arduino/arduino-ide/issues/1366#issuecomment-1380031914
As I tried to mention earlier...
You set the callback to your function:
Then you call SD.begin() which does the FsDateTime::setCallback to it's own function.
If you really want yours, maybe make your call AFTER...
I am pretty sure that the Teensy does not retrieve the current date/time over usb or the like. Could be wrong.
I believe that the teensy has the date/time when the teensy was programmed, and maybe uses this to...
My guess is they all use some form of paint program or the like.
For my own usage I used Excel to create my own extended version of the cards, like:
Which I then print to my home printer or to PDF, like:
What I was trying to say is did you try out the currently built in stuff and it failed?
For example, here is a sketch that I hacked up:
//=============================================================================...
Is the normal SD setup for setting the Create and modify date/times not working?
You created your own callback, but so does SD.
That is:
bool SDClass::begin(uint8_t csPin) {
#ifdef __arm__...
Also glad you found it.
Been there.... Done that (or off by one pin)...
Why I keep a sketch that @defragster and I hacked up, that can turn all of the IO pins to pull-up or pull-down and then cycles through...
when you do Serial1.begin() it will enable the RX of the UART. The TX is only enabled when there is stuff to output or has been output.
As mentioned in the other thread, I have done half duplex several different...
Note: the current versions of Teensyduino have a halffduplex mode built in. Which you only connect up to the TX pin, and it turns that pin into Bidirectional. When you do SerialX.write()... it sets the pin for output,...
With the new compiler, that is being used in the current beta builds, the addr2line has not worked very well.
So instead, I find the list file, that is generated and is in the directory where the HEX file is...
It may depend on which serial interface:
For main serial you might try: #if defined(CDC_STATUS_INTERFACE) && defined(CDC_DATA_INTERFACE)
For Serial emulation you could check for: #if defined(SEREMU_INTERFACE) &&...
Maybe I am missing something, my browser does not want to allow me to go to their interface... link (your first one) saying it is not private...
But the second link shows:
Does this not work with your sensor?
...
@PerT and @PaulStoffregen
Quick follow on to the: It feels like it takes a long time to read in the Teensy JSON file, sometimes like 15-20 seconds or more:...
I know Paul has posted about this in a few threads, but part shortages (SD socket), including:
https://forum.pjrc.com/threads/71669-Audio-Shields-delayed-by-SD-socket-shortage
Did you cut the VIN/VUSB connection on the bottom of the board? If so, did you jumper it back? I have a few teensy boards where I have split them this way, and if I try to plug one of these into some other board and...
Hopefully someone will see something obvious.
But if it were me, I would try to remove as much of the stuff as possible, and see if the teensy will startup using USB.
If it does, I would then try seeing if it will...
I think there is something like that in the RA8875/76 code bases. Where it will only wait if it is trying to send the next command and the appropriate response from the previous command had not been received.
I am...
No: Pin 28 is:
28 EMC_32 SEMC_DATA10 FLEXPWM3_PWMB01 LPUART7_RX CCM_PMIC_RDY CSI_DATA21 GPIO3_IO18 ENET2_TX_EN
So in normal GPIO mode this is GPIO3 pin 18.
But assuming you are using the standard core all of...
What I will typically do in cases like this is, to instrument the code potentially with Serial.prints... But often times with digitalWriteFast/digitalToggleFast of some unused pins.
(with pinMode(OUTPUT... in setup)
...
Things I would probably do, would be to turn on the debug kernel stuff.
Go into teesns4\debug\printf.h
and uncomment the line: //#define PRINT_DEBUG_STUFF
Then debug stuff will be printed out on Serial4, by default...
Note with images, as @thebigg mentioned you can do something like JPG to hold your files, which might require a jpg decoder.
Or sometimes you can roll your own. I know @mjs513 and myself a while ago was playing...
Depends on how you build...
But as I showed in the thread/post about arduino-cli: https://forum.pjrc.com/threads/53548-Arduino-CLI-And-IDE-now-Released-Teensy-Supported!?p=185984&viewfull=1#post185984
Headless...
Good Morning all,
Paul, @PerT,
If I am reading the last few messages correctly, I think there may be at least two parts to it.
The last part talking about how Windows caches information.
But I believe he is...
Sorry I am only seeing bits and pieces here, like the simple test program, but not the whole thing.
So for example I don't know what all you do with setting up the PWM. Nor which other pins you might be using.
...
Might help to know what your settings are? That if we go off of the same stuff like was mentioned on the first posting, it might be something like:
#ifdef TEST_PIN_7
volatile uint8_t my_eFlexPWM_pin ...
Picture of setup might help. Might show if wires look wrong, plus show which breakout you are using.
Things I would try including:
a) Plug your USB stick into a pc and make sure it can see the contents. Maybe run...
Note: if you edit boards.txt or plaform.txt, arduino likely won't see the changes as it will use its cached version.
This is mentioned in the first post of the thread:...