Something like
if (Serial) {
Serial.print(...);
}
should do the trick, I think.
Type: Posts; User: Silverlock
Something like
if (Serial) {
Serial.print(...);
}
should do the trick, I think.
I pretty much duplicated your setup; Raspbian instead of Ubuntu, but otherwise identical, down to the version of Teensyduino and the library used. It's been running now for over 10 minutes with nary...
It sounds like that person may be using an older version of the Teensy loader that didn't know about the 4.1. If Help -> About doesn't say "Teensy Loader 1.53" (or newer), it's time to upgrade.
Good to hear that you've got it working.
You could try replacing these lines 344 and 345 in teensy_loader_cli.c
char reboot_command = 134;
int response = usb_control_msg(serial_handle, 0x21, 0x20, 0, 0, &reboot_command, 1,...
Depending on which Teensy it is; I've yet to get the "-s" option to work with a Teensy 4.1. The usage text does say it's just for the 3.x series, but I was hoping!
It does see main power for several hours pretty much every day. But even so it's been off for at least 12 hours a day through all that time, and that's a very conservative estimate.
It was in the usage text from the program itself (source line #43 in teensy_loader_cli.c):
earth:~/Documents/src/teensy_loader_cli $ ./teensy_loader_cli
Filename must be specified
Usage:...
I missed that. And as I've had the same dollar store CR2032 cell in a T4.0 setup since October of last year I was a bit concerned. So I just measured its in circuit voltage and it's still reading 3V...
Curiosity got the better of me. The command line loader definitely does not reset the time when uploading a new sketch. It does require pressing the button on the T4.1 to start the download; the soft...
Have you tried using the command line version of the loader? From admittedly just a quick glance, I can't see any code in there that sets the target's time on loading. You would have to compile the...
DNS or hosting snafu, perhaps? It's working here as well.
Also, make sure that any alpha characters in the file name and extension are upper case. Lower case characters will result in a LFN even if the name fits in 8.3.
Put me down as another vote for KiCad on Linux. It's usable even on a Raspberry Pi.
Digikey now has stock of the PSRAM chip.
This is how I start things up with SdFat-beta (in use since June of this year with no issues):
SD SdFat;
.
.
.
if (SD.begin(SdioConfig(FIFO_SDIO))) {
.
.
The uSD breakout board that I use with the T4.0 has no pullups, and as you've already seen on the T4.1 schematics, the onboard uSD there has none either.
As for wire lengths, I've got a 2" FFC...
Right there could be a big part of your troubles. Don't change the config file. I've haven't. Use plain old SdFat file system in your program, and resist the temptation to turn knobs and twiddle with...
I've been using an SDIO connected uSD card with the T4.0 and T4.1 and the SdFat-beta library, on a daily basis, for many months now. I imagine if there was an issue with the SdFat-beta library, I'd...
The consensus on this thread was that it just was an error in the T4.0 schematic.
When you say you're "having a hard time getting my T4.0 to talk to an SD card", are you using the SDIO pads on the...
A 3V coin cell on VBat will maintain the real time clock while the main power is off.
I did that as well. DigiKey had the W25Q128JVSIQ FLASH chip and the ESP32-WROVER-B (8MB) so I ordered both. Pried the shield off the ESP32 and removed the PSRAM chip with the aid of some solder wick...
I was lucky enough to start accumulating these interlocking drawers many decades ago. (I was also lucky enough to add a whole bunch more when my father downsized his workshop.) I'd love to get even...
Ahh, interesting. When DigiKey started stocking the Teensy 4.1 it was only a day between the entry showing up and stock being available. I'll have to remember to keep an eye on that over the next few...
Try this. It's a stripped down version of the TimeTeensy3 example (yes it works with Teensy4, don't let the name throw you):
/*
* TimeTeensy3.ino
* example code illustrating Time library...
I feel like I'm missing something obvious, but after a quick glance I got this:
86400 seconds in a day.
That's 86400000 mSecs in a day.
unsigned long is 32 bits, with a maximum value of...
What SD library are you using? SD? SdFat? Does it support a dateTimeCallback function? Did you set it up?
Changing the optimization level can make these kinds of warnings pop up and disappear too, resulting in a "what the..." moment. switch() statements that set a variable in all cases followed by code...
The same: 1.53 with Arduino 1.8.13.
Ran one more test with Optimize = Faster, which is the default in the IDE. (I always use Optimize = Fast because, though I can't prove it with a simple example...
I loaded up the Test example from USBhost_t36 it on a T4.1 here and saw +5V on the USB host power pin as soon as I opened the Serial monitor so that the program could start and the USB host object...
I can verify that. With just a blink sketch loaded, there was no voltage on the USB host +5 pin. Once USBHost_t36 was loaded and enabled the output that switches on USB host power, there was...
No issues so far with ARM 32 on Raspbian Stretch, installed over 1.53b3.
And I'll be fairly surprised if that happens. My hunch is a marginal solder joint or a bit of flux where it oughtn't to be.
Reran the test with Optimize Fast, Optimize Fastest and Smallest Code. All three worked. The only oddity I noticed was that under "Smallest Code" that the result line that usually reads something...
Compiled, loaded and ran teensy41_psram_memtest.ino w/o modifications or problems with the following setup and settings (some of which I'm sure don't matter but are included for completeness):
...
Linux ARM on Raspbian Stretch
The installer picked up on the fact that I'd modified the udev rule file to add a symlink. And it allowed me to skip the check, which was a nice touch and...
If I was doing this again with the T4.1, I'd probably rotate the battery holder 90 degrees and put it as close to the LS245 and 23017 as possible. The T4.1 ought to fit underneath it (from the...
Over the winter, I'd started a project to take RunCPM and extend it into a complete computer. One with a RTC, serial and parallel port, an ANSI terminal with colour GSX graphics.
I just heard...
Using 1.53b1 with Raspbian Stretch and Arduino 1.8.13; no problems so far.
From https://github.com/arduino/Arduino/issues/10345
Due to a server-side issue yesterday (June 10th), the Arduino IDE failed to start due to downloading corrupt board files. The server-side issue...
And I got my changes to work on the mainline code as well. If you want to check anything, I've pushed my changes to https://github.com/mecparts/RunCPM. It's up and running on one of the spare T4.1s....
No trouble at all. I'd just finished a 22km bike ride before sitting down at the computer so my mind is fresh even if my knees are complaining.
And right now, grabbing a couple extra 4.1s as soon...
Unfortunately, it's not that easy... I've done all this on my own "gone way out in left field" fork of RunCPM. ZCPR3.3, ZSDOS, serial and parallel port (yeah, it's me, mecparts).
Let me start over...
I think it took me about an hour of skullwork to get things migrated over to SdFat-beta before I got my T4.1 and plugged it in. The increase in speed is very, very noticeable.
On the T4.0 with the...
Oh right, forgot about all those internal renaming bits... One sec... dir_t became DirFat_t.
There was also a function that went private (SD.vwd()) that was used in _sys_renamefile in...
For both the T4.0 and the T4.1, I used SdFat SD;. It worked on the T4.0 and I really never thought of playing with it when I switched over to the 4.1.
In the SD.begin, I used...
The solution I've come up with is to rename the SdFat-beta library from SdFat to SdFat-beta: in library.properties change name=SdFat to name=SdFat-beta, rename src/SdFat.h to src/SdFat-beta.h, and...
I'm in full agreement with that. And at one time, that was the way things were done; upgrades didn't break existing functionality. But, like it or not, things are viewed differently now by a lot of...
There have been some changes in the ADC library since the snapshot taken when 1.52 was put together. I noticed that at one stage the original methods were put in, but marked deprecated (so they'd...
I tried compiling your program for both a T3.6 and a T4.0.
After declaring some values for readPin and readPin2, it sailed through both pinMode lines, and then errored out on setAveraging,...