Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • mjs513's Avatar
    Today, 12:30 AM
    @KurtE Very cool on adding the text names to the debug statements. Kept having to cross reference the numbers to the case statement in the MTP.cpp. Thank you. Good catch on the event list. Would be great if you...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    Yesterday, 11:24 AM
    Very cool! Just did it myself on a Windows 10 machine. Thank you. :)
    21 replies | 710 view(s)
  • mjs513's Avatar
    Yesterday, 12:22 AM
    Same thing happens when you do a move directory as I mentioned. Guess events is on the todo list :)
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-22-2020, 05:42 PM
    Morning again Well just soldered up another T4.1 with Flash and PSRAM. Ran MTP responder and all seems well especially after I put some files on the chips on the flash. Don't have your mods for timing to check though...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-22-2020, 02:24 PM
    Morning @KurtE In my latest iteration of my test sketch I changed the clock on QSPI to 132 Mhz and haven't seen any issues with copying files. Maybe give it a try with the higher speed clock As for the propshield,...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-22-2020, 11:27 AM
    That's really great news now to do some testing. See below Move directories and structure between storage areas: Works but doens't work. Tested moving directory between SPIFlash and QSPI. a. move...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-22-2020, 05:23 AM
    Just tested the SD version using Builtin_sdcard and a cardreader on pin4. Both worked and identified the existing files on the sd cards. This is on a windows 10 x64 pc. Tried the ramdisk version as well and it...
    6 replies | 144 view(s)
  • mjs513's Avatar
    11-22-2020, 04:55 AM
    Getting requirement to set a couple things in sdfat, sdconfig.h. So you need to download the Adafruit version of SDFat but this is going to be a problem. 1 It will conflict with the one in the core and 2 the adafruit...
    6 replies | 144 view(s)
  • mjs513's Avatar
    11-22-2020, 04:38 AM
    Very cool. Just downloaded to give it a try and also downloaded latest core files + Adafruit SPIFlash library. Just one question what is the mod to the board.txt file to select NO USB EDIT: Never mind just found...
    6 replies | 144 view(s)
  • mjs513's Avatar
    11-21-2020, 09:48 PM
    Are you talking about USB1_mtp.c or USB2_mtp.c. Never thought of looking there to be honest - you made me look :) Anyway USB1 I see TX_NUM = 1 and RX_NUM = 1, while is USB2 looks like its TX_Num = 4, and I think...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-21-2020, 07:07 PM
    @KurtE Went back just to look at the copy behavior when it transfers to the BreakOut board, specifically, with sending data in groups. If I watch the progress bar during the transfer of the 1.5Mb PDF it looks like it...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-21-2020, 04:11 PM
    SPICONFIG ???? On the off chance that the SPI Clock may need to increase I looked at what is setup in SerialFlash: #define SPICONFIG SPISettings(50000000, MSBFIRST, SPI_MODE0) In LittleFS its setup as #define...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-21-2020, 03:07 PM
    @Frank B - yes it is :) Fun..... I think Anyway been doing a bit more experimenting with MTP and the different storage areas and what transfers fail, where and when. There are three files that were problem children...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-21-2020, 10:51 AM
    Thanks for the explanation. Never really looked at those 2 files before so something new for me, again.
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 11:14 PM
    Just tried a T3.6 with MTP responder and LittleFS well strange things are happening. Basically have 2 SD cards and 2 SPIFlahsh attached (propshield and breakout). 1. All storage devices are found except when I try...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 10:04 PM
    Just to jump in here for a minute. As Frank and Paul said it would probably be safer in the long run would probably be better to use strlcpy(). As for filename length whatever gets decided probably should make...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 07:06 PM
    Hi Kurt Just got back on line and catching up -- see I missed a bunch. As @WMXZ could a problem with USB interface. Think Paul may have to check it out when he gets some time.
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 07:04 PM
    Yep = already figured that one out :)
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 03:55 PM
    Really getting confusing now. Especially since I was checking it this morning Ok just tried my propsheild again with a 914kb jpg which failed. Then tried with a 90kb file and it worked. copied 2 more jpgs to...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 03:23 PM
    @KurtE Ok just downloaded your screenshot.jpg (105KB) to QSPI flash. It copied it over and shows as 105kb. Then I copied a 1.1MB PDF to QSPI and it worked as well. Both files copied and opened correctly when I...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 03:01 PM
    Morning @KurtE Cool that you got it working. Can you send me your image. The one I copied is only 214kb. Want to use the exact one for testing on this end. Having a problem with 1 pdf out of the several I tried.
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 12:53 PM
    Yep just did that so printContainer would work. After the first click on the device or sub directory nothing additional gets sent. If I hit refresh same thing. I edited my post basically to say doesn't work :(
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 12:24 PM
    Thanks for the explanation, its been kind of interesting to dig around the guts of MTP when I was trying to do it myself. Gave me a new appreciation of the effort to get it working. Kudo's Refresh MTPIndex: Not...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 12:16 PM
    @PaulStoffregen Don't know if this has been brought up recently but one improvement to core to make MTP more using with existing sketches is to have MTP+SERIAL. Haven't tested @WMXZ changes that he has but if they...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-20-2020, 11:55 AM
    @WMXZ Set it up so that I now have 7 devices showing under Teensy. The other night when I tested with the old method was only able to to 6. Other thing is when I went back and retest deleting a folder with a file...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 11:28 AM
    Some MTP testing issues and successes posted in MPT Thread: https://forum.pjrc.com/threads/43050-MTP-Responder-Contribution?p=260290&viewfull=1#post260290. Summary for reference Copy/Pasting 1. Between devices on...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-20-2020, 11:23 AM
    @WMXZ. Just did a little testing using 2 SD cards (internal and External), 1 RAM disk, 2 SPIFlash, and 1 QSPI. Just tested some basic MTP functions like copy/paste, delete etc from windows explorer. For the most...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 11:17 AM
    Thanks will take a look. Getting confused now on where to post MTP/LittleFS :) But may have to post in both places.
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 09:32 AM
    Real quick. Thanks. I posted a test sketch that covers all the storage areas in the other thread. Was planning on checking some other functions in the morning. Will download the latest first though
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-20-2020, 12:19 AM
    Using TD1.54-beta5 plus the latest and greatest MTP_t4 repository (https://github.com/WMXZ-EU/MTP_t4) and the following modified mtp_test.ino sketch with no other changes to the library itself I can get a maximum of 6...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-19-2020, 11:39 PM
    Did a clean install on a Win10 x64 of Arduino 1.8.13. Installed TD1.54-beta5 with no issues. As a quick and dirty since it kind of hits everything that was edited on Filesystems tested with latest MTPResonder with...
    21 replies | 710 view(s)
  • mjs513's Avatar
    11-19-2020, 07:50 PM
    @WMXZ Can you take a look at what I did to address the issue with having multiple RAM storage areas and SPI devices, i.e, mod to setStorageNumbers to include type of storage: void ...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-19-2020, 07:46 PM
    This is probably a good idea. A beta5 at this point is probably a good idea considering all the changes. Guess beta6 can have MSC/usbhost_t36.
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-19-2020, 05:49 PM
    Just took a look. Alot cleaner implementation. Will play with it later and try to incorporate my mods for SPI and QSPI.
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-19-2020, 05:40 PM
    Hi Frank Not sure why you are having an issue - did you update the core files to the latest version. FS.h and USB_desc been changing, same goes with the FS library. As for the SD Card with 16Mhz, tested with my...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-19-2020, 05:32 PM
    @WMXZ This is probably going to be a evolving over time. But nice job - was lost on how to do it.
    13 replies | 196 view(s)
  • mjs513's Avatar
    11-19-2020, 04:55 PM
    First - nothing ever appeared in Serial Monitor for me either if printed from the Sketch. Probably have to do the mod for MTP + Serial. Was never brave enough to try it :) Anyway back to the the main issue. Just...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-19-2020, 03:17 PM
    @KurtE The new version is meant as a replacement for MTP_t4. At some point, after we play a bit, and see what other changes @WMXZ has up his sleeve will probably issue a PR. So basically delete your copy of...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-19-2020, 02:46 PM
    @WMXZ Went ahead and added in (with mods) to support QSPI and SPIFlash. I posted this in the other thread but just in case: Not going to push the changes yet, not 100% happy with it yet. But at least i can copy...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-19-2020, 02:36 PM
    OK - just added QSPI to MTP Responder: https://github.com/mjs513/mtp_responder-for-LittleFs/tree/MTPResponder-WIP so now besides SD Cards, it supports SPIFlash, RAM and QSPI.
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-19-2020, 02:21 PM
    @Frank B - glad you figured out the trick. Next beta release will probably have SDFat-beta in it - my guess. As far as I know there is not fix planned, thats up to @WMXZ
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-19-2020, 01:08 PM
    Haven;t posted my changes yet but will right now. EDIT: here is what I have so far: https://github.com/mjs513/mtp_responder-for-LittleFs/tree/MTPResponder-WIP Probably won't do anymore with this version. Looks...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-19-2020, 12:44 PM
    @Frank B Just ran @WMXZ's sketch as well and it works for me. Make sure you have the latest changes to the core files and the latest for LittleFS and SD libraries. I am also using Paul's SDFat lib from his fork. ...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-19-2020, 12:33 PM
    Agree - would make it alot cleaner Just tried your test sketch and it seems to work here too. Pointed you to that post just by way of added info. EDIT: if you include SPIFlash you are dealing again with CS pins...
    13 replies | 196 view(s)
  • mjs513's Avatar
    11-19-2020, 12:13 PM
    You might want to check this post out from Paul: https://forum.pjrc.com/threads/58033-LittleFS-port-to-Teensy-SPIFlash?p=259975&viewfull=1#post259975
    13 replies | 196 view(s)
  • mjs513's Avatar
    11-19-2020, 12:09 PM
    Using the current version of MTP with mods for RAM and SPIFlash: Right now this is a proof of concept. Extending now to QSPI should be easy.
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-19-2020, 12:06 PM
    Just read it after your post. Was doing some playing with current version of MTPResponder to add in multiple RAM areas and multiple SPIFlash devices. Making some progress. But had to do a slight modification to your...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-19-2020, 10:39 AM
    @WMXZ Just woke up and having my first cup of coffee. Downloaded the updated version of MTP and ran MTP_test. Seems like it is working. Nice job on the fix. Fully understand about the complications with this -...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-18-2020, 11:58 PM
    Evening Paul - been keeping this post in the back of my mind since you posted it and guess I am ready at this point to ask how does this really work. The reason I am asking is that @WMXZ came up with an interesting way...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-18-2020, 08:18 PM
    Unknown at this point - that is all I got up to. Don't think its a makefile issue - I'm using the Arduino IDE and have the same problem. Wound up doing something like this in MTP.h: #ifdef use_spi_disk #define...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-18-2020, 07:37 PM
    Missed the edits - must have crossed posted. Tried it with the include "LittleFS.h" commented out as well but then only the SD Card shows - never hits the RAM. Yeah was a pain to fix. Did it to ways - one was the...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-18-2020, 07:17 PM
    Thanks will check the changes out - I can play with SPI and QSPI thats not a problem but I can't seem to get it work with your example - see previous post. One thing i noticed is with begin, you use begin(8000000) but...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-18-2020, 06:39 PM
    @WMXZ Just saw what you did with LittleFS RAM. Cool way of doing it. Looks like will be easier than my approach and easier to maintain. Will have to play with it after you next update then add in SPIFlash and QSPI. ...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-18-2020, 06:14 PM
    Cool. Now I have another problem that I discovered while playing with MTP for spiflash. Just verified that it exists with SD Cards as well. So here goes, using the config: const char *sd_str={"sdio", "sd1"}; ...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-18-2020, 05:19 PM
    I love you moved the configuration outside the library makes it really easy to make adjustments. I just tested with a 512mb card and a samsung evo 32gb card. Only seemed to work at 16Mhz for both cards. Maybe add a...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-18-2020, 04:50 PM
    First this is the configure I am using: // edit SPI to reflect your configuration #define SD_MOSI 11 #define SD_MISO 12 #define SD_SCK 13 // const char...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-18-2020, 02:57 PM
    @WMXZ Just downloaded the latest update for MTP Responder using the Builtin_sdcard and a card reader on pin 4. Its failing! Builtin_sdcard works if thats the only thing being accessed. If I set it up so only...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-18-2020, 02:49 PM
    I will go on to other distractions. I just tested the updated MTPResponder with Builtin_SDCard and a breakout card reader and MTP for SD is failing reading anything but the Builtin_sdcard. So may be another issue. ...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-18-2020, 12:31 PM
    @KurtE Looks like MTP for storage areas isn't working so well after the last couple of updates. Still trying to figure out whats wrong. Going to take awhile I think. Need another diversion.
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 11:33 PM
    First will do but was playing with the T3.5 and Littlefs. Sort of work. Still problem with that on pdf I have that does work on a SD card. Anyway, the jpg that I have from downloading from your post is only 214kb. ...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 10:46 PM
    Can you try a different jpg file about the same size. Been testing pdf's as I mentioned, 1 4.9mb pdf worked no issue another pdf of 1.9mb failed. EDIT: OK going to use that PDF file that I have a test case. I...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 10:36 PM
    I am running Combined. Combined1 is just a copy of Combined to see if I could get QSPI/Ram working together or QSPI/SPI etc. It fails and gives me an error that I can not figure out how to fix. Also just using the...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 09:30 PM
    @KurtE LPSIntegrity looks like it working but still now sure why you can not copy a 214Kb file. As a test i tried coping a 4.7Mb pdf file to flash and it failed but a 1.5mb pdf file worked (yes it did open when I...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 07:09 PM
    To be honest, out of the one's listed by Kurt earlier in the thread, I've only used the ones I highlighted in red in most of my sketches: // open flags LFS_O_RDONLY = 1, // Open a file as read only ...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 06:52 PM
    Well just fixed that issue in the PR and on my PC. So hopefully its right now. Yeah, initialize has to be called after begin. All the chip initialization after begin since it has all the LUTS setup there. EDIT:...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 06:43 PM
    Oops forgot to add FLASHMEM to the function. Never mind. Its ok. Haven't done anything with SPI flash. Guess that's next. Now I have to go update my copies of everything as well
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 06:23 PM
    @defragster - Now you know how I feel when I wake up some days and you all have been working something new as well :) thanks for the updated function - will make it easier to for testing. @KurtE - cool that its...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 06:19 PM
    Thanks Paul - will be nice when this is all in the next beta. :) Now back to playing.
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 05:41 PM
    Yep - think we touched on this issue earlier in the thread as well. Was just documenting the changes I made from the SDFat benchmark sketch
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 05:14 PM
    @KurtE Just got back from some errands. Can't see anything wrong from the pictures to be honest or it just could be my eyes. I just added and tested basically a complete wipe of the QSPI disk based on Frank's stuff...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 02:50 PM
    @KurtE Think we are cross-posting now with these edits? Check the benchmark sketch is configure for QSPI not Program. The sketch as posted is configured for Program. The results you are getting is what I am...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 02:39 PM
    Good Morning Kurt Know the feeling everything seems to happen when I am sleeping as well :) Yes it is suppose to work. I just copied and pasted your card image to QSPI as a test with out a problem: Let me...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 02:06 PM
    For SPI flash on my breakout: LittleFS Test flash begin Flash ID: EF 70 18 Flash size is 16.00 Mbyte attempting to mount existing media couldn't mount media, attemping to format attempting to mount freshly...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 02:00 PM
    Well, as you said @manitou is better at this than me but I gave it a initial shot. I modified the SDFat Bench sketch to run with LittleFS but there were a couple of things: 1. there is no file.rewind function 2. ...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 12:32 PM
    @Paul - @defragster Added this function to initialize QSPIFlash and seems to work - extracted from SPIFFs lib which is all from FrankB: void LittleFS_QSPIFlash::initialize() { if(lfs_unmount(&lfs) < 0) { ...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-17-2020, 11:32 AM
    Very cool. Going to work on full chip reinit that @defrag mentioned in an earlier post. But first back to LitteleFS_Program. Downloaded and updated LittleFS and the eeprom.c file in the core. I modified my test...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-16-2020, 10:52 PM
    Well, we did manage to get that NAND chip working with the T4.1, don't really do anything with ECC (yeah I know - way over my head). But you can read and write data to the chip but it is slower. The thread we...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-16-2020, 10:13 PM
    @KurtE Yep the later 128MB NOR flash is the one to go with. The NAND is setup for direct memory read and writes. Think Paul mentioned that it is a bit more complicated to implement:...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-16-2020, 07:15 PM
    Recounted the files - there are 13. After the change it works without error with matches what i am seeing in MTP as well run 12319, errors 0 printDirectory -------------- PRINTOUTPUT1.txt 628...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-16-2020, 07:07 PM
    @Paul I think its working at least for me it seems. I ran my MTPResponder for QSPI and turned power on and off 5 times to see what the directory structure look liked. All 5 times they were the same even the...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-16-2020, 07:00 PM
    Well not good - let it run 10 times and had 9 errors, here's the dump (using the original T4.1 beta): IPRXFCR = 0 QSPI flash begin Flash ID: EF 40 18 Flash size is 16.00 Mbyte attempting to mount existing media...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-16-2020, 06:51 PM
    @WMXZ Good idea about moving all the defines into a base class - was thinking about it but low on the list. :) The one challenge with the virtual CS number is that the 3 storage areas SPI, RAM and QSPI all have the...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-16-2020, 03:31 PM
    To be honest wasn't looking for you to do anything more was just curious since I don't really have a setup using multiple SD cards right now to test.
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-16-2020, 03:17 PM
    Curious did you test moving one at time. Does it work with copying one and then another - not a show stopper for me. So far with what I am working on in the LittleFS thread got it working with your new stuff as of...
    455 replies | 48521 view(s)
  • mjs513's Avatar
    11-16-2020, 02:00 PM
    Like the cable idea. Then you can move the camera a bit without moving the whole unit. That was one of the drawbacks of the Arducam shield where the camera is mounted on the display board.
    200 replies | 4154 view(s)
  • mjs513's Avatar
    11-16-2020, 01:39 PM
    Morning Kurt If you want to give it a try I would use the WIP branch. Its now set up so you can have multiple SPIFlash chips and multiple RAMDISKs if you want. Use the mtp_test_combine.ino sketch. The change was...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-16-2020, 12:01 PM
    Just reverted my changes to the ScanDir function to use the version with file_.openNextFile to see what would happen (more as another data point). For RAM and SPI seems to working with a problem to display...
    386 replies | 6882 view(s)
  • mjs513's Avatar
    11-16-2020, 11:20 AM
    @Paul Was dreaming about this stuff last night so had to check and expand on p#244 and p#245 and check something with my error using "explicit statement which by the way can't find anything with google search on the...
    386 replies | 6882 view(s)
More Activity
About mjs513

Basic Information

About mjs513
Location:
New York
Interests:
Robotics, Image Processing
Occupation:
Aerospace Eng (Retired)

Statistics


Total Posts
Total Posts
5,873
Posts Per Day
2.51
Last Post
MTP Responder Contribution Today 12:30 AM
General Information
Last Activity
Today 03:21 AM
Join Date
07-01-2014