Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • mjs513's Avatar
    Yesterday, 11:54 PM
    Good thing I ordered a bunch of those breakout boards that @KurtE designed. You really weren't kidding when you said they were expensive :). Just ordered a set - probably won't be here until next late next week. ...
    458 replies | 7997 view(s)
  • mjs513's Avatar
    Yesterday, 06:25 PM
    Yeah the debug output is questionable but the timing is interesting. But not sure if it is surprising or not. SPIFFS assumes a flat file system (no directories) and think blocks of transfer are smaller so may make a...
    458 replies | 7997 view(s)
  • mjs513's Avatar
    Yesterday, 05:29 PM
    @KurtE Out of curiosity I decided to give the BigFile sketch a try using SPIFFS just as a comparison, if I converted the sketch correctly: these are the results with a date code of 1905 on my flash chip: Bytes Used:...
    458 replies | 7997 view(s)
  • mjs513's Avatar
    Yesterday, 03:40 PM
    Very cool on the changes - I like :) Should get my W25Q512's on Monday so will be fun to test.
    458 replies | 7997 view(s)
  • mjs513's Avatar
    Yesterday, 02:02 PM
    Just check and mine is showing 1949 - so very well could be a run number.
    458 replies | 7997 view(s)
  • mjs513's Avatar
    Yesterday, 01:42 PM
    @KurtE - others Not sure why you new ones are slower - the timings i showed in post 429 indicate that the beta is running slower then my fresh Flash. Maybe touch up the solder as you said
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-26-2020, 11:10 PM
    Yeah you are right - that was just me getting myself confused on QSPI. In terms of the flash not sure anything changed with LUTS - saw one difference but shouldn't impact the performance.
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-26-2020, 08:24 PM
    Think in all our earlier don't think we were using extmem_malloc implementations. Right now in LittleFS: bool begin(uint32_t size) { #if defined(__IMXRT1062__) return begin(extmem_malloc(size), size); #else...
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-26-2020, 05:30 PM
    Just out of curiosity just ran @defragster sketch in post #422 using a fresh PSRAM chip on a new T4.1. Some interesting results: D:\Users\Merli\Documents\Arduino\T41\BIgFileTest_defrag\BIgFileTest_defrag.ino Nov 26...
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-25-2020, 11:55 PM
    Just checked and you are write based on the envelop drawing - 315 mils.
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-25-2020, 10:25 PM
    Thanks Kurt. Been looking at some flash boards with pullups but it all over the place 1 has 10ks on all pins, another on CS, WP and hold. Not electronics guy so .... I will leave it at that :)
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-25-2020, 10:10 PM
    Very cool. Care to share your Gerbers :) Although think I would have edited the pad length on the pins to make them longer for things like the W25N01G chip :) Right now not using any pull ups on any of the lines -...
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-25-2020, 08:20 PM
    :) thank you
    13 replies | 738 view(s)
  • mjs513's Avatar
    11-25-2020, 03:55 PM
    @KurtE - didn't see any breakout boards for it but doesn't mean they are not out there. I made mine own using one of thest: https://www.amazon.com/gp/product/B07FK4BQHL/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1. ...
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-25-2020, 03:33 PM
    Morning All Tried porting the W25N01G QSPI over to SPI and kind of works - sort of. Yes I put one of them on a breakout board. But running into a strange problem. So here goes me trying to explain. 1. Did a...
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-24-2020, 02:54 PM
    Probably you are right. USB protocol I stayed away from. I do think functions changes in usb.c for T4 from the T3. But never got into it. BTW. I am the same trial and error.
    475 replies | 49000 view(s)
  • mjs513's Avatar
    11-24-2020, 02:51 PM
    Thought this sounded familiar so went back and it sound familiar and went back. It seems it may be similar to the W25Q256JV. See this post where I went and took a it:...
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-24-2020, 12:04 PM
    Great - see the cmtp responder also has a bunch on events. Didn't dig into so not sure if its both ways.
    475 replies | 49000 view(s)
  • mjs513's Avatar
    11-24-2020, 11:58 AM
    Think that is a great idea. For the last couple of days been playing with the W25N01G code to convert the QSPI lib to a SPI proof of concept lib along with looking at incorporating it into the current LittleFS lib. ...
    458 replies | 7997 view(s)
  • mjs513's Avatar
    11-24-2020, 11:42 AM
    Poking around on the web for MTP events came across a repsository: uMTP-Responder. its designed for linux but may give you all a few ideas.
    475 replies | 49000 view(s)
  • mjs513's Avatar
    11-24-2020, 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...
    475 replies | 49000 view(s)
  • mjs513's Avatar
    11-23-2020, 11:24 AM
    Very cool! Just did it myself on a Windows 10 machine. Thank you. :)
    23 replies | 1079 view(s)
  • mjs513's Avatar
    11-23-2020, 12:22 AM
    Same thing happens when you do a move directory as I mentioned. Guess events is on the todo list :)
    475 replies | 49000 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...
    475 replies | 49000 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,...
    475 replies | 49000 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...
    475 replies | 49000 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...
    10 replies | 276 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...
    10 replies | 276 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...
    10 replies | 276 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...
    475 replies | 49000 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...
    475 replies | 49000 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...
    475 replies | 49000 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...
    475 replies | 49000 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.
    475 replies | 49000 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...
    475 replies | 49000 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...
    475 replies | 49000 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.
    475 replies | 49000 view(s)
  • mjs513's Avatar
    11-20-2020, 07:04 PM
    Yep = already figured that one out :)
    475 replies | 49000 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...
    475 replies | 49000 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...
    475 replies | 49000 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.
    475 replies | 49000 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 :(
    475 replies | 49000 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...
    475 replies | 49000 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...
    458 replies | 7997 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...
    475 replies | 49000 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...
    458 replies | 7997 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...
    475 replies | 49000 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.
    475 replies | 49000 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
    475 replies | 49000 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...
    458 replies | 7997 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...
    23 replies | 1079 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 ...
    475 replies | 49000 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.
    458 replies | 7997 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.
    475 replies | 49000 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...
    458 replies | 7997 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 | 199 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...
    458 replies | 7997 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...
    458 replies | 7997 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...
    475 replies | 49000 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.
    458 replies | 7997 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
    458 replies | 7997 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...
    458 replies | 7997 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. ...
    458 replies | 7997 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 | 199 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 | 199 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.
    458 replies | 7997 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...
    475 replies | 49000 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 -...
    475 replies | 49000 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...
    458 replies | 7997 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...
    475 replies | 49000 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...
    475 replies | 49000 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...
    475 replies | 49000 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. ...
    475 replies | 49000 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"}; ...
    475 replies | 49000 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...
    475 replies | 49000 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...
    475 replies | 49000 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...
    475 replies | 49000 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. ...
    458 replies | 7997 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.
    458 replies | 7997 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. ...
    458 replies | 7997 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...
    458 replies | 7997 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...
    458 replies | 7997 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...
    458 replies | 7997 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 ...
    458 replies | 7997 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:...
    458 replies | 7997 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
    458 replies | 7997 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...
    458 replies | 7997 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.
    458 replies | 7997 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,893
Posts Per Day
2.52
Last Post
LittleFS port to Teensy/SPIFlash Yesterday 11:54 PM
General Information
Last Activity
Today 07:19 AM
Join Date
07-01-2014