Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • mjs513's Avatar
    Today, 12:08 PM
    Don't think its setup for use with a PSRAM chip mounted on a SPI bus versus under the board. Only flash chips are setup with SPIFlash from what I saw. Thought I'd play with that FRAM chip a bit so I setup the...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    Today, 02:40 AM
    @defragster Thanks but not happy with the weirdness with using it with SPI? Inconsistency with trying to get it to work with LittleFS - probably me doing something wrong. Only just started. Looks like you are...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    Yesterday, 10:27 PM
    Ok got both sketches now working with the Cypress 8Mbit chip. Yeah. anyway here is the sketch: #include <SPI.h> #define SPICONFIG SPISettings(30000000, MSBFIRST, SPI_MODE0) // address masks #define...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    Yesterday, 07:26 PM
    Thanks = will definitely take a look - have a feeling its probably similar.
    510 replies | 10051 view(s)
  • mjs513's Avatar
    Yesterday, 07:17 PM
    Thanks Frank - I was looking for it in the Audio Library but couldn't find it, at least in beta5. However, I did find that Cypress had s dev kit that contained a Arduino library for their FRAM chips. I did manage...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    Yesterday, 03:26 PM
    As a follow-up to using the Cypress FRAM chip. After some more testing its just not working properly. Appears that SPI implementation that I posted works once in a while. Not sure what I am doing or what pullups or...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    Yesterday, 03:10 PM
    As a FYI MTPspiffs_t41 is standalone so there should be no conflict with MTP_T4. Does still use usb1_mtp.h . It is only to be used if you implemented SPIFFS on the Flash chip.
    489 replies | 49968 view(s)
  • mjs513's Avatar
    12-03-2020, 10:30 PM
    Just figured that I would give a little status on Flash Chips. Received my Cyprus 8Mbit Fram and put it on a breakout board as usual. In prep for trying to incorporate it into LittleFS I threw together a little sketch...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    12-03-2020, 03:19 PM
    @KurtE Agree that it was probably some change to USB stuff in the core for MTP but didn't look at it - had to get some more sleep. Think I may know what the problem may be. Wondering if you have do an include...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    12-03-2020, 12:57 PM
    Latest CORE Updates + New Version of MTP LittleFS Testing Ok folks just a heads up. Downloaded the latest and greatest changes to the Core and MTP. While LittleFS still works new version of MTP fails - Teensy...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    12-03-2020, 11:52 AM
    W25Q512JV LittleFS/MTP Transfer File Test Will have to brush off and maybe test with @defragster's LFSIntegrity sketch. But just loaded up my MTP test sketch and just testes with various file sizes. Seems to...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    12-03-2020, 03:43 AM
    Evening all Just soldered up a W25Q512JV chip to a breakout board and using SPI as opposed to QSPI. Running @defragster's BigFileTest sketch: Started SPI_DISK Bytes Used: 8192, Bytes Total:67108864 Start Big write...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    12-02-2020, 03:13 AM
    If you are going to use a Teensy you can check this out: https://github.com/luni64/TeensyStep. As for using the encoder library and stepper library and issues with DUE/UNO I can not help you with that that. Don't play...
    5 replies | 137 view(s)
  • mjs513's Avatar
    12-02-2020, 03:00 AM
    Well may not be too bad. Basically what seems to be happening is that all operations are done on using the buffer. So you have to load the buffer, write data to the buffer and execute a transfer command to move the...
    163 replies | 5831 view(s)
  • mjs513's Avatar
    12-01-2020, 08:55 PM
    Ok got the W25N01GV working with standard SPI. At least I think so :) Have fun testing. Oh - one thing you can only write to page elements that have been previously erased. In other word you can't over write...
    163 replies | 5831 view(s)
  • mjs513's Avatar
    12-01-2020, 02:33 PM
    Funny person :) :) :)
    61 replies | 2694 view(s)
  • mjs513's Avatar
    11-27-2020, 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. ...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    11-27-2020, 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...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    11-27-2020, 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:...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    11-27-2020, 03:40 PM
    Very cool on the changes - I like :) Should get my W25Q512's on Monday so will be fun to test.
    510 replies | 10051 view(s)
  • mjs513's Avatar
    11-27-2020, 02:02 PM
    Just check and mine is showing 1949 - so very well could be a run number.
    510 replies | 10051 view(s)
  • mjs513's Avatar
    11-27-2020, 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
    510 replies | 10051 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.
    510 replies | 10051 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...
    510 replies | 10051 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...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    11-25-2020, 11:55 PM
    Just checked and you are write based on the envelop drawing - 315 mils.
    510 replies | 10051 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 :)
    510 replies | 10051 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 -...
    510 replies | 10051 view(s)
  • mjs513's Avatar
    11-25-2020, 08:20 PM
    :) thank you
    13 replies | 970 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. ...
    510 replies | 10051 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...
    510 replies | 10051 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.
    489 replies | 49968 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:...
    510 replies | 10051 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.
    489 replies | 49968 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. ...
    510 replies | 10051 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.
    489 replies | 49968 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...
    489 replies | 49968 view(s)
  • mjs513's Avatar
    11-23-2020, 11:24 AM
    Very cool! Just did it myself on a Windows 10 machine. Thank you. :)
    61 replies | 2694 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 :)
    489 replies | 49968 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...
    489 replies | 49968 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,...
    489 replies | 49968 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...
    489 replies | 49968 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 | 367 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 | 367 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 | 367 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...
    489 replies | 49968 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...
    489 replies | 49968 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...
    489 replies | 49968 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...
    489 replies | 49968 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.
    489 replies | 49968 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...
    489 replies | 49968 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...
    489 replies | 49968 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.
    489 replies | 49968 view(s)
  • mjs513's Avatar
    11-20-2020, 07:04 PM
    Yep = already figured that one out :)
    489 replies | 49968 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...
    489 replies | 49968 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...
    489 replies | 49968 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.
    489 replies | 49968 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 :(
    489 replies | 49968 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...
    489 replies | 49968 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...
    510 replies | 10051 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...
    489 replies | 49968 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...
    510 replies | 10051 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...
    489 replies | 49968 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.
    489 replies | 49968 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
    489 replies | 49968 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...
    510 replies | 10051 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...
    61 replies | 2694 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 ...
    489 replies | 49968 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.
    510 replies | 10051 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.
    489 replies | 49968 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...
    510 replies | 10051 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 | 210 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...
    510 replies | 10051 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...
    510 replies | 10051 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...
    489 replies | 49968 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.
    510 replies | 10051 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
    510 replies | 10051 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...
    510 replies | 10051 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. ...
    510 replies | 10051 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 | 210 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 | 210 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.
    510 replies | 10051 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...
    489 replies | 49968 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 -...
    489 replies | 49968 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...
    510 replies | 10051 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,909
Posts Per Day
2.52
Last Post
LittleFS port to Teensy/SPIFlash Today 12:08 PM
General Information
Last Activity
Today 12:34 PM
Join Date
07-01-2014