Yes - with c++ (.h .cpp) files, you can only reference those things that are defined in the source file or header files
Note: I have not used the keypad library or at least much so I can't give you the best code...
that were included in the...
@PaulStoffregen I re-forked the pauls_branch after merging in your PR...
Note: I believe your changes may have busted the MSC integration into MTP... At least the volume I was working with no longer shows up.
I was testing with a modified...
Sorry, I took yesterday late afternoon and evening off. I created: pauls_branch
I hear you about git commands. These days I normally do most stuff using the github desktop. Which you can now install on linux as well...
@KurtE - Could I talk you into creating another branch from the large_files branch? I'll use it to do the stuff I was planning before the chip shortages hit. I normally use only the simple git command and github website, so syncing back to your...
Alternative -
Here is a quick and dirty which did not require any edits to any of the libraries.
I added two files to the sketch process_keypad.h and process_keypad.cpp - this file did not include
#include <TeensyVariablePlayback.h>
Header file...
Note: I am not an EE so take this with a grain of salt!
In some of my earlier boards for playing around with robotics, I would use a NIMH or Lipo type battery to power
my board. With some of them I used some form of buck converter.
Some of...
Finally got a display delivered and some time to come back to this..
Had a few little hickups to integrate the usbhost with the display (ili9341 3.2" with touch), but got around to have it working. Tested your lib for the display, @KurtE -...
Yep the current upload/download tries to write out each packet as received (or sent) so either 500 (first) and 512 after that.
We had other implementations before, where we would cache up the data into larger buffers, but it was problematic on...
Still wondering if FS.h should have a member function to return the file system type. Sort of along the SDFat methed fatType which
returns which type of FAT.
Would be nice if it would return: FAT, exFAT, LittleFS, Other or some such thing. (FAT...
Yep - My 128GB SDCards were exfat... So was able to upload, others failed and left the disk with size like 3.9GB... I just confirmed I could create a 5GB file on my other SSD that I reformatted to exFat... Now to try to download that file.
With...
Not sure if better to edit previous post, or new one here. I added code to test if the number bytes written did not equal the number
of bytes requested and bail and print info...
size_t cb_written = testFile.write(test_file_buffer...
Not sure same thread stuff, or different thread, but I know that the MSC code is a LOT slower than the the exFat SDIO card, and I believe it also has limits of 4gb on a file. Not sure if by bug or ...
I updated one of @mjs513 test programs for...
I can confirm the timings!
:eek: >1 hour to copy over MSC to USB SSD drive. I have not waited that long yet...
May play around some with how it is output to see if it can be sped up some without major changes...
On the one sound file I tried...
Just a quick update. Been playing with the latest set of changes from this morning and still having issues with 4 and 5gb file transfers. I am currently using a win 11 pc using ide 2.3.3 with 0.60.3 installed.
1. From sdcard takes about 8.5...
Simple answer, I have no idea.
The description includes:
So as you mentioned the offset can not be > 4gb... So far I have not found anyone who calls GetPartialObject, so not sure.
But for sure it should at least understand that the local file...
Merged,
Which apps/user actions call this? I see several more things that probably need fixing in it.
Like the size/pos fields probably need to be 64 bit. The size field argument is the maximum size to transfer and
we need to check the actual...
Sent a pull request to fix size handling in GetObjectPartial.
This may not be the only issue. I still hear weird artifacts in Windows Media Player. Playing on Linux is also not 100%, but it at least works for a while now.
I have ubuntu 24.04 installed now. and MTP appears to somewhat work.
I was able to download this jpeg file and then open it... But it did not want to show the image if I double clicked on it in the
MTP window. Or maybe I did not wait long...
Updating my Ubuntu machine to 24.04 may take a few hours...
Would not surprise me if it does different things. Guessing it probably is downloading to a temporary file, that it plays. I know with some image files it comes up fine, other larger...
Uploaded large file :D debug is still on... Currently taking about 8.5 minutes from/to my 128gb SD card.
Appears to be a lot slower on some thumb drives. Wondering how much it would help to align the Reads and Writes.
That is the first packet...
At one point we had code that we could pass in some additional information about an FS to MTP when we added an object. However, Paul wanted the code to be simpler, so the only thing we know is it is an FS... So probably the only way we will...
I have my ubuntu machine hooked up again. I am pretty sure I am running 22.04, should I update it to 24.04?
I did build the current stuff and was able to send some files to the teensy and retrieve some. Have not tried yet with large files...
Quick update: Fixed one upload a file bug, where it did not compute free space correctly (32 bits) so depending on
size test would fail if the lower 32 bits of free space was < size of file to be uploaded.
Note: I left debug output turned on.
I was able to upload a photo again on W11 machine, and then double click and the picture came up.
Now to work on larger ones - which always were a PIA even before worrying about >4GB
Currently my Ubuntu machine is not hooked up. But was able to...
@KurtE
Just tried downloading my 5.2GB file from a USB drive. It failed:
This was on my Win11 machine running 0.60.3. Last night I tried it on a Win 7 machine running 1.59 and same thing but was able to see that about 4.99Gb transferred...
Try sync up again, I pushed up fix for the exiting at the early time. One last variable needed to change from uint32_t to uint64_t
I have had the file download successfully. Turned off debug And Windows and downloaded again, and looked the...
Finally loaded up my MTP test sketch and didn't seem to have the issue with opening different directories. Did try to transfer the 5gb file but after about 1GB a MTP reset was issued and transfer stop. Tested with 2 drives - USB and SD card.
@KurtE
Downloaded your latest changes and loaded it up on a T3.6 using a USB stick (ps running on a Windows 7 maching running 1.8.19). Loaded up a 5GB file:
however noticed that when trying to look at the subdirectories only works when I...
I thought I would mention, that I have started hacking on the MTP code to hopefully handle 64 bits. Not there yet, but making some
progress.
WIP branch - https://github.com/KurtE/MTP_Teensy/tree/large_files
For the fun of it, doing the code on...
Short answer - yes you can read in ports. They are different than T3.x.
You need to know the mapping from Arduino pin number to port number and pin on port....
I usually do that by using my excel document. There are links to it on the forum...
You are correct! Appendix H does show how to send and receive files > 4GB.
Which I am pretty sure we have not implemented.
@mborgerson - you might want to create an issue against the library. Hopefully at some point in the near future we will...
Sorry, I am really really rusty on the MTP stuff. Other than fixing some sketches that were not compiling, we have not done anything for about two years...
But as for large files, I believe it is a limitation of MTP. That is if you look at the...
Sorry, I am not a up to date c++ person... I started programming back in the 70s...
But taking a guess, do you have something in some global header like:
using namespace std;
My guess is that is being used somewhere...
Otherwise, I don't...
For the last 2 years, I've switched from SD cards to flash chips for storing telemetry data. I wrote a what I feel is a robust database driver where data is stored as records of fields. Just like DBase III, and Microsoft access. My needs are to...
PWM uses timers. Looking at my excel document: this time will show part of the MUX page (https://github.com/KurtE/TeensyDocuments/blob/master/Teensy4x%20Pins.xlsx)
Shows that pins 3 and 6 both use FLEXPWM for PWM. Chapter 55 in reference...
Unclear from your question. Do you need the normal Serial port or only the ability for Serial monitor? Why I am asking is that by the
looks of your USB descriptor, it looks like you have defined
I am assuming T3.x as your listing matches the...
As Paul said, yes all of the channels you define by doing writes to them will output. Actually more precise all channels up till the highest channel number you have used, up to 16 will output.
Not really sure what you are wanting, or trying to...
Have you looked at the PJRC web page:
https://www.pjrc.com/teensy/td_libs_PulsePosition.html
Have you looked at the example sketches like ShiftRegisterOutput? or Loopback?
From Loopback?
void setup() {
myOut.begin(9); // connect pins 9 and...
@AntiLoop - No it would not. First of all the RA8876 libraries are very large now. Secondly, every time the ILI9341_fonts library which by the way belongs to @mjs513 I would have to change my RA8876 libraries. I assume the font structure from the...
Have you tried, the old fashion ways? ...
like:
Have your build generate a map file - and edit it in your text editor. I typically sort the file and look for nearest address...
Current Arduino Teensy builds create this file: (.sym)
use...
First off could you show me the complete compilation output? Particularly the end where it shows which libraries are used. Like this:
Memory Usage on Teensy 4.1:
FLASH: code:71884, data:11252, headers:9020 free for files:8034308
RAM1...
I had to try :D so was able to build as well. Took a bit as git clone kept dropping ... the all in one git project is sort of a PIA for those
who only want this, but... Also took a bit to figure out how to install QT6 and the lib usb stuff, But...