KurtE's latest activity

  • KurtE
    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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    @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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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
    KurtE reacted to PaulStoffregen's post in the thread MTP file size limits. with Like Like.
    @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...
  • KurtE
    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...
  • KurtE
    Different issue: uint8_t ROWS = 7; // 7 rows uint8_t COLS = 4; //4 columns // Analog pin_22 , Enc (2,3) , char keys[ROWS][COLS] = { {1,2,3,4}, {5,6,7,8}, {9,10,11,12}, {13,14,15,16}, {17,18,19,20}, {21,22,23,24}, {25,26,27,28} }...
  • KurtE
    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...
  • KurtE
    You are right this is yet another duplicate post... Isn't this maybe the third different thread? The first recent thread was by @graydetroit...
  • KurtE
    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 -...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
  • KurtE
    KurtE reacted to mjs513's post in the thread MTP file size limits. with Like Like.
    Yep noticed the same thing. Still trying to get everything synched on my win 10 machine
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
    • 1730582398522.png
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
    • 1730575833752.png
    • 1730575897116.png
  • KurtE
    KurtE reacted to PaulStoffregen's post in the thread MTP file size limits. with Like Like.
    Both Windows 11 Media Player and whatever unnamed media player Ubuntu 24.04 Gnome Files defaults to using cause GetPartialObject to be requested.
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
    • 1730561277329.png
    • 1730561370735.png
  • KurtE
    KurtE reacted to mjs513's post in the thread MTP file size limits. with Like Like.
    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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
  • KurtE
    KurtE reacted to PaulStoffregen's post in the thread MTP file size limits. with Like Like.
    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.
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
    • 1730492118452.png
    • 1730492406210.png
    • 1730492809107.png
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
    • 1730471385684.png
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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.
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
    • 1730380876321.png
  • KurtE
    KurtE reacted to mjs513's post in the thread MTP file size limits. with Like Like.
    @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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    What version of Ubuntu? Assuming TD60.3? Upload to or download from teensy.
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
  • KurtE
    KurtE reacted to mjs513's post in the thread MTP file size limits. with Like Like.
    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
    KurtE replied to the thread MTP file size limits..
    Looks like we have a few minor issues 😆
  • KurtE
    KurtE reacted to mjs513's post in the thread MTP file size limits. with Like Like.
    @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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
    • 20241028_14h47m49s_grim.png
  • KurtE
    KurtE replied to the thread Port access rather than pin access.
    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...
    • 1730122749672.png
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
  • KurtE
    KurtE replied to the thread MTP file size limits..
    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...
    • 1730035916142.png
  • KurtE
    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...
  • KurtE
    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...
  • KurtE
    KurtE replied to the thread Software detail.
    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...
    • 1729776667750.png
  • KurtE
    KurtE replied to the thread Many axis joystick.
    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...
  • KurtE
    I have no idea if this is relevant, but if you look at the IMXRT reference manual under UARTS...
    • 1729637647842.png
  • KurtE
    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...
    • 1729620849851.png
  • KurtE
    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...
  • KurtE
    @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...
  • KurtE
    KurtE replied to the thread Please help me, it's urgent..
    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...
  • KurtE
    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...
  • KurtE
    KurtE replied to the thread optimizing SD write access.
    Have you tried looking at some of the example sketches that come with SD and SDFat? Like with SD: Cardinfo.ino SDFat: Sdinfo.ino
  • KurtE
    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...
Back
Top