-
Older Activity
-
Yesterday, 07:48 PM
Actually I received a response on github from Bill... Now there is not a leak as the new is not actually allocating memory...
As the code like: m_fVol = new (m_volMem) FatVolume;
is actually just assigning the...
908 replies | 65055 view(s)
-
Yesterday, 05:14 PM
I sort of started a thread a little bit ago: https://forum.pjrc.com/threads/66338-Many-TLAs-MTP-MSC-FS-SD-SDFat-LittleFS-UsbMSCFat-to-work-with-each-other-8)
Where I was maybe setting up for some integration stuff... ...
908 replies | 65055 view(s)
-
Yesterday, 03:42 PM
@wwatson - Sounds great.
@all as I mentioned over in the MTP thread (https://forum.pjrc.com/threads/43050-MTP-Responder-Contribution?p=271721&viewfull=1#post271721)
I am playing around with seeing about the...
532 replies | 29785 view(s)
-
Yesterday, 02:53 PM
@mjs513 - Yep I am also thinking a smaller test with fewer Storage types would be nice and/or split some of them into multiple tabs...
And yes right not I am still playing with the MSC multi partition sketch...
908 replies | 65055 view(s)
-
Yesterday, 01:47 PM
Glad you found the issue... :D
Wonder what is different between T3.x and T4.x?
Or does something in your interrupts also touch the Analog?
Sounds like maybe need test case to see and maybe the core code needs...
28 replies | 440 view(s)
-
Yesterday, 01:39 PM
@all - Sometimes hard to know which thread to discuss things like integration of MTP amd MSC... and the like.
I am going to try doing some additional changes to my branch of the code to add some more support for...
908 replies | 65055 view(s)
-
Yesterday, 12:15 AM
Thanks @mjs513 will probably look more in the morning.
Today I also hacked up that function some more that printed that data, and used digital Write high/low with pin 0 for the whole duration and pin 1 around each...
532 replies | 29785 view(s)
-
02-26-2021, 06:48 PM
@defragster and @mjs513 I am sort of curious about fragmentation works ;)
For the Fat32 volume:
I mucked up the beginning of the method most all of the class variables
int32_t FatPartition::freeClusterCount() {...
532 replies | 29785 view(s)
-
02-26-2021, 05:13 PM
Full current sketch, Note I commented out the earlier calls to get sizes...
Waiting up to 5 seconds for USB drive 1
^^Waiting up to 5 seconds for USB drive 2
^^^^^^^~~~~:(Initialize USB...
532 replies | 29785 view(s)
-
02-26-2021, 04:56 PM
So I tried adding in the above test sketch currently just to the FAT16 and FAT32 section code like:
for (uint8_t i = 1; i < 5; i++) {
switch (partitionTable) {
case 11:
case 12:
{
...
532 replies | 29785 view(s)
-
02-26-2021, 04:26 PM
Maybe the code in the sketch is wrong...
It is not applying the partition... I am going to move those calls into the sections by partition type and see what I get...
Looks like we crossed posted.
I am going to...
532 replies | 29785 view(s)
-
02-26-2021, 02:49 PM
Something does not appear to be working correctly at all with the freeClusterCount:
int32_t FatPartition::freeClusterCount() {
#if MAINTAIN_FREE_CLUSTER_COUNT
if (m_freeClusterCount >= 0) {
return...
532 replies | 29785 view(s)
-
02-26-2021, 02:22 PM
@all - Another quick question: while starting to look at why the free space is TAKING SOOOOOOOO LLLLOOONNNGGG
I noticed in the SDFat code:...
532 replies | 29785 view(s)
-
02-26-2021, 02:12 PM
Quick note: I am thinking it might make sense to add the VolumeName.ino as an example sketch to maybe MscFS.h project. That way we can all keep track of it?
Make sense?
532 replies | 29785 view(s)
-
02-26-2021, 02:00 PM
Morning,
Try picking up the latest UsbMSCFat project - I added a hack into it that if you ask for the Used size, twice (or more) it remembers the first call to it, which we do as a debug message at the time we add...
532 replies | 29785 view(s)
-
02-26-2021, 01:22 PM
Thanks @defragster,
I updated to your version.
I ran again, still real slow on my older thumb drives:
Waiting up to 5 seconds for USB drive 1
^^Waiting up to 5 seconds for USB drive 2
^^^^Initialize USB...
532 replies | 29785 view(s)
-
02-26-2021, 03:32 AM
Just an FYI: I updated the Volume name sketch to also print out the total size and used size sort of plus elapsed time to get them for the different partitions:
// VolumeName.ino
// An example of how to retrieve...
532 replies | 29785 view(s)
-
02-26-2021, 01:48 AM
@mjs513 which code fragment... MSC or MTP... So far in MTP I have not converted the main code to try to do anything with partitions, other than so far I am printing them out and I am able to get the first volume ID.
...
532 replies | 29785 view(s)
-
02-25-2021, 10:25 PM
Might really help to understand what exactly is your setup?
Windows? Linux? MAC? ... What version of Arduino are you running? What version of Teensyduino are you running?
Anything changed on your machine, like...
9 replies | 204 view(s)
-
02-25-2021, 09:54 PM
@wwatson - not sure, about NTFS here. It looks like both partitions have type=7 which I believe is exfat. although looking at:https://en.wikipedia.org/wiki/Partition_type
It looks like type of 7 could be either. ...
532 replies | 29785 view(s)
-
02-25-2021, 09:02 PM
Any luck?
Looks a bit complicated to jump in... I prefer easier things like MSC and MTP :D
Is it easy to setup and see failure when you don't have the hardware? Steps, and what to see when it fails versus OK?
...
28 replies | 440 view(s)
-
02-25-2021, 06:31 PM
Updated to fix the Fat16, also implemented a one call to find volume label.
And did some more gratuitous changes to have a function called by loop to process a drive, as to not need to reproduce it for more drives......
532 replies | 29785 view(s)
-
02-25-2021, 04:54 PM
Another quick note: I updated my sketch to the last one @defragster and found it was using the old non working Fat16 code. i.e. the one that was reading the boot sector and appears to always be: NO NAME
Will fix and...
532 replies | 29785 view(s)
-
02-25-2021, 03:28 PM
Good morning again:
Just for the fun of it you might try adding the asm("dsb");
somewhere...
The reason I mention it, I have been bit several times where ISR gets triggered multiple times for the same interrupt....
28 replies | 440 view(s)
-
02-25-2021, 02:30 PM
Some More not fleshed out thoughts on MSC and Partitions and FS...
I first off think it will be great all of the pieces in place and part of Teensyduino!
What I am sort of wondering is if it makes sense to have a...
532 replies | 29785 view(s)
-
02-25-2021, 02:01 PM
Good Morning!
I have not had a good chance to go through all of the code:
I don't see anywhere that you call attachInterruptVector, but if you did, I would probably make sure all of my interrupt vectors had...
28 replies | 440 view(s)
-
02-25-2021, 01:39 PM
Good Morning all:
Sounds like we have things coming along well here, to understand some about partitions and getting the volume label. :D
But our test has not handled SD Cards with multiple partitions ;) For...
532 replies | 29785 view(s)
-
02-25-2021, 02:23 AM
My exfat was failing as well, will look tomorrow unless someone beats me to it.
532 replies | 29785 view(s)
-
02-25-2021, 01:18 AM
Have Fat16 working I believe at least for USB, have not tried with SD yet...
// VolumeName.ino
// An example of how to retrieve Fat32 and ExFat volume names using SdFat.
// Works with SD cards and USB mass storage...
532 replies | 29785 view(s)
-
02-25-2021, 12:51 AM
Hi @defragster and others...
Thought I would show so more stuff that is not working :D
// VolumeName.ino
// An example of how to retrieve Fat32 and ExFat volume names using SdFat.
// Works with SD cards and...
532 replies | 29785 view(s)
-
02-24-2021, 08:26 PM
Note: I have been playing some with adding Fat16 maybe stuff and not finding the VolID...
Some output currentlly:
Waiting up to 5 seconds for USB drive
Initialize USB drive...FsVolume::begin(20001b28)...
532 replies | 29785 view(s)
-
02-24-2021, 05:30 PM
@all - Wondering in my above Partition table dump you see:
msc1 Partition Table
part,boot,bgnCHS,type,endCHS,start,length
1,0,0x4,0x1,0x4,0xB,0xFE,0xC2,0xFF,2048,8192000...
532 replies | 29785 view(s)
-
02-24-2021, 05:00 PM
Hi @mjs513,
I slightly hacked up your sketch, by moving a lot of it from setup() to loop() with a wait at the end of loop() for user to enter character.
That way you can hopefully rerun.
I also have it wait up...
532 replies | 29785 view(s)
-
02-24-2021, 02:59 PM
@all...
I am winding my way through the different layers and trying to figure out how to get USB Drive partitions to work.
It might be nice to be able to do something like: today the VojumeName.ino does: if...
532 replies | 29785 view(s)
-
02-24-2021, 01:16 PM
Glad you have some building and ready to play :D
Did not get as much done yesterday, but will now try to see if I can get this MSC volume code and the like to read from all 3 partitions on my USB stick...
532 replies | 29785 view(s)
-
02-23-2021, 04:47 PM
Take this with a grain of salt, but what I am planning to look at includes:
In the sketches we have: msController msDrive1(myusb);
Each one of these is for a physical USB drive, I believe it claims the device at...
532 replies | 29785 view(s)
-
02-23-2021, 04:27 PM
Note: the get volume label code was not working for me as probably timing. My USB is connected through HUB and so takes a bit of time before all of the stuff is setup. So I have it check to make sure the drive is...
532 replies | 29785 view(s)
-
02-23-2021, 03:03 PM
As far as I know it should work. The code just figures out which Serial port gets passed in to dxlInit:
void dxlInit(long baud, HardwareSerial* pserial, int direction_pin, int tx_pin, int rx_pin ) {
As the AX12...
28 replies | 3285 view(s)
-
02-23-2021, 02:15 PM
Sort of an old thread to resurrect.
But by PMs been asked if I could convert the board to Altium... Not sure if you would gain much. The whole design:
I did try to export the board layout to Eagle file in...
21 replies | 6346 view(s)
-
02-23-2021, 04:54 AM
Mtp serial still need the usb_desc.h stuff copied in
532 replies | 29785 view(s)
-
02-23-2021, 02:33 AM
Thanks @wwatson - tried the sketch, but the two drives I tried were exfat... Will try again.
Thanks for the hints:
I verified that in my debug outputs, the first calls msReadBlocks is in the this case is from a...
532 replies | 29785 view(s)
-
02-22-2021, 11:07 PM
@wwatson @mjs513 and @all - my eyes are mind is not seeing some things...
For example:
I fixed my USB thumb drive partitions to not use extended partition...
I turned off USBHost_t36 debug (in that header) but...
532 replies | 29785 view(s)
-
02-22-2021, 09:40 PM
@... I have been playing around and understanding some more with the MSC stuff and partitions...
If you run the sketch SdInfoUSB it will print the partition table stuff (Block 0).
My output is way too much to...
532 replies | 29785 view(s)
-
02-22-2021, 07:33 PM
I tried formatting a thumb drive to have 3 partitions,
A Fat32 primary
An extended partition table
With a secondary partition with Fat16
and a secondary partition with Fat32
And my MTP with MSC, goes BOOM.....
532 replies | 29785 view(s)
-
02-22-2021, 06:55 PM
@mjs513 an d @wwatson I will try playing some with that.
Have anyone tried doing some of the same type tests on thumb drives or the like? I think I will try to partition a test thumb drive and see what might work......
532 replies | 29785 view(s)
-
02-22-2021, 06:22 PM
@mjs513 - Not a problem... Hope not too much snow! Here it is raining and upper 40s...
Will play more, but may want to switch gears to see about partitions on USB disks, which is probably more interesting.
Also...
532 replies | 29785 view(s)
-
02-22-2021, 04:17 PM
For the fun of it, I thought I would see if I could get it to read an ExFat one...
I think this one sort of works for it. Probably a real hack, but...
When you are dumping out the top partition table, I keep the...
532 replies | 29785 view(s)
-
02-22-2021, 03:16 PM
@defragster - Looks great. Interesting with Low memory availability messages, I assume they most use a percentage... As 4K free on an LC would be 50% ;)
I see the changes were pulled in
88 replies | 3238 view(s)
-
02-22-2021, 02:59 PM
@...
@mjs513 - tried you sketch above with a few cards. And it looks like it dumps lots of interesting info...
Tried reformat 32gb SD to exFat. As you mentioned not able to read that data (yet)...
Side...
532 replies | 29785 view(s)
-
02-22-2021, 12:48 PM
@mjs513 @wwatson - looks like you are having some fun. Now to figure out how to integrate this with MTP :D I was happy yesterday to be able to plug in USB drive and it shows up and unplug it and it goes away...
Now...
532 replies | 29785 view(s)
-
02-22-2021, 02:20 AM
I put in a fix for now... Which is during the reset when the host asks for Storage IDS, I check to see if the name has been removed and if so it skips that slot...
So now when I remove the drive it updates to not show...
908 replies | 65055 view(s)
-
02-22-2021, 01:49 AM
It appeared to work on my RPI4 with 64 bit... looked good when I did ls -l /dev/hidr*
Plus I told it to program the keyboard one which the reboot worked and so did the terminal monitor.
Thanks
(Now back to my main...
76 replies | 1516 view(s)
-
02-22-2021, 01:06 AM
In case anyone wishes to play along.
I have added some code to the MTP-Test with the MSC stuff where your define for including it value > 0 is the Max count of USB drives you wish to use...
I also now have code in...
908 replies | 65055 view(s)
-
02-21-2021, 08:09 PM
Was able to substitute the usage of MSCClass for the UsbFs class and that appears to work.
I just updated my branch (warning left the define = 2, so will require the additional libraries.
But with this I have a USB...
908 replies | 65055 view(s)
-
02-21-2021, 08:06 PM
Looks like sort of a pain... But you got to to do what you got to do :D
908 replies | 65055 view(s)
-
02-21-2021, 06:22 PM
First attempt is to substitute MSCClass for UsbFs and it compiles and runs for 1 item...
Again hard to know if should talk about it here or MTP or...
But my MTP test code is setup now like:
#if USE_MSC_FAT > 0...
532 replies | 29785 view(s)
-
02-21-2021, 05:32 PM
As I asked in the MTP thread:
My next question to self and others maybe other thread
is to support multiple MSC drives, I was using the global object (MSC) to add the one MSC object as is in the FilesUSB object.
...
532 replies | 29785 view(s)
-
02-21-2021, 05:31 PM
My next question to self and others maybe other thread
is to support multiple MSC drives, I was using the global object (MSC) to add the one MSC object as is in the FilesUSB object.
Thought I would try the stuff out...
908 replies | 65055 view(s)
-
02-21-2021, 05:25 PM
I wonder if maybe you may want to play around with the different pin configurations information like speed, or drive strength...
i.e. look at the RM for the different IOMUXC_PAD_ values like DSE, SPEED
6 replies | 179 view(s)
-
02-21-2021, 04:32 PM
Now hopefully will get a little time to play a little more and see about defining multiple MSC objects.
Also see about them coming and going... Sort of along the line of SD card being inserted.
Then wondering...
908 replies | 65055 view(s)
-
02-21-2021, 04:01 PM
Decided to go ahead and check the other two regions as well and error out.
Also print out message... Feel free to change anything :D
88 replies | 3238 view(s)
-
02-21-2021, 03:44 PM
I submitted a PR for first pass:
I have an RA8876... test sketch that did a picture embed. That compiled fine with PROGMEM defined, but if as I have now, commented that out, it errors out the build.
I did the...
88 replies | 3238 view(s)
-
02-21-2021, 02:54 PM
Sounds good,
For the fun of it you might try a simple on your machine like: grep hidraw /etc/udev/rules.d/*
76 replies | 1516 view(s)
-
02-21-2021, 02:46 PM
I took a look and there were a few things I changed and it now does not crash :D
In the file RF24.h
The SPIClass object I don't initialize in header as you are doing it in constructor:
SPIClass *_pspi;...
6 replies | 153 view(s)
-
02-21-2021, 02:29 PM
Thanks,
Will play soon, trying to help someone update the RF24 library right now to handle multiple SPI ports.
88 replies | 3238 view(s)
-
02-21-2021, 02:04 PM
I will take a look,
I remember from my other size program based off of Franks stuff (https://github.com/KurtE/imxrt-size)
simply returned -1 from main which caused the build to error out.
88 replies | 3238 view(s)
-
02-21-2021, 01:42 PM
@mjs513 and @wwatson @wmxz @paul - That is why I started playing and why I started that other thread. Sometimes hard to know what is going to happen when you try to integrate several of these sub-systems.
Or some of...
532 replies | 29785 view(s)
-
02-21-2021, 01:07 PM
Looking good, I will have to try it out.
Wondering, In my size program I put check in for in your case free for local variables if it <=0 the program returns an error status
don't see it in this code base. I...
88 replies | 3238 view(s)
-
02-21-2021, 02:09 AM
Another issue came up today in the thread: https://forum.pjrc.com/threads/66335-MTP-dependency-issues-w-Teensy-3-6-and-SDFat-2-0-4?p=270956&viewfull=1#post270956
in there he is trying to enable the use of UNICODE...
6 replies | 142 view(s)
-
02-21-2021, 02:02 AM
I have done a little playing here with the MTP-test to add an MSC drive. I turned it off by default as you need to install the libraries mentioned here.
I also did a Pull Request to change the #define that was in...
532 replies | 29785 view(s)
-
02-21-2021, 01:54 AM
@WMXZ - I have a package coming from digikey with some more external sdcard units... For the fun may play with a few, probably won't get up to 6.
And yes you would need to hook up extra pins for each of the card...
908 replies | 65055 view(s)
-
02-20-2021, 11:32 PM
Sorry, I am not sure if the main owner @WMXZ of the library has looked at Unicode stuff yet.
I will try to take a quick look, but busy playing with other stuff :D
16 replies | 361 view(s)
-
02-20-2021, 11:06 PM
Have you looked at using the Adafruit library? Adafruit_SSD1306
One of it's constructors:
Adafruit_SSD1306(uint8_t w, uint8_t h, TwoWire *twi = &Wire,
int8_t rst_pin = -1, uint32_t clkDuring...
7 replies | 276 view(s)
-
02-20-2021, 10:58 PM
@mjs513 - I totally agree that in many cases posting to a thread specific to a library for something specific to that library...
But was wondering where for example would be a good place to post things that maybe...
6 replies | 142 view(s)
-
02-20-2021, 10:42 PM
Hard to say without looking through all of the changes.
And checking any other places that do something funky...
You might try embedding a copy of your current library changes. Could zip them up and add the zip...
6 replies | 153 view(s)
-
02-20-2021, 08:56 PM
Not sure if some of this should go on MTP thread(https://forum.pjrc.com/threads/43050-MTP-Responder-Contribution(
and/or the MSC thread:...
6 replies | 142 view(s)
-
02-20-2021, 07:56 PM
Radiohead does support multiple SPI buses, at least the RH_RF95 does. I played with this a long time ago.
Where in my case I used SPI1, so I included:
#include <RHDatagram.h>
#include <RH_RF95.h>
#include...
1 replies | 49 view(s)
-
02-20-2021, 07:49 PM
If it were me, I would install the latest Teensyduino beta from the thread: https://forum.pjrc.com/threads/66182-Teensyduino-1-54-Beta-6
This has some better support for SD and the like... Plus some of the stuff built...
16 replies | 361 view(s)
-
02-20-2021, 04:37 PM
Good,
It also might have worked if you had made sure Arduino was not running and the teensy was not plugged in. Then when you plug in the teensy the rule should fire...
Was going to upload the file here, but it...
76 replies | 1516 view(s)
-
02-20-2021, 03:15 PM
Thanks,
Note: on my 20.04 x86, looking at udev rules associated with hidraw I see:
kurt@kurt-XPS-8300:/etc/udev/rules.d$ grep -i hidraw *
98-openocd.rules:SUBSYSTEM!="usb|tty|hidraw", GOTO="openocd_rules_end"...
76 replies | 1516 view(s)
-
02-20-2021, 02:49 PM
@mjs513 - Did you get output if you choose USB type: Keyboard
This should output using SEREMU
I just updated one of my 20.04 x86 (64 bit Ubuntu) and the teensy program works, but the SEREMU does not want to either...
76 replies | 1516 view(s)
-
02-20-2021, 02:19 PM
I am not sure about "Best" practice, but...
Again that library looks like you can hard code it to any specific SPI port, (by changing the code)...
On my install the file is:...
6 replies | 153 view(s)
-
02-20-2021, 01:42 PM
Did you try: ubuntu ;)
76 replies | 1516 view(s)
-
02-20-2021, 01:12 PM
Tried new build on RPI4 running Ubuntu 64 bit ARM,
And the teensy app works :D
Tried the Simple USB keyboard example, where I added simple wait up to 5 seconds for serial, and commented out the Keyboard prints,...
76 replies | 1516 view(s)
-
02-19-2021, 11:23 PM
@wwatson - I would like to start playing around some as I know these capabilities would be great addition to Teensy world.
Are the instructions up at:...
532 replies | 29785 view(s)
-
02-19-2021, 09:51 PM
Sounds good, I am doing an update...
Edit: The Ubuntu is now more up to date.
I downloaded sources for the teensy_loader_cli and was able to build it and program a T4 with the blink hex file in project.
Then...
76 replies | 1516 view(s)
-
02-19-2021, 09:12 PM
Just installed latest beta tried a build
Error shows could not find directory and Teensy app is shown in all White...
I had to reboot, but it kept this in the Firefox queue...
If I then tried to manually...
76 replies | 1516 view(s)
-
02-19-2021, 08:30 PM
It has been a while, need to see if I still have a setup.
76 replies | 1516 view(s)
-
02-19-2021, 07:50 PM
Oops see there was another update :D
And it appears to work!
76 replies | 1516 view(s)
-
02-19-2021, 07:42 PM
On my notebook with 18.04 installed 20.04 with latest ISO release...
And it duplicates the slow issue:
Not sure if it helps, ran it from command prompt and it first complained about missing GTK file, then lots of...
76 replies | 1516 view(s)