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...
Type: Posts; User: KurtE
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...
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...
My exfat was failing as well, will look tomorrow unless someone beats me to it.
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...
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.
// ...
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...
@all - Wondering in my above Partition table dump you see:
msc1 Partition Table
part,boot,bgnCHS[3],type,endCHS[3],start,length
1,0,0x4,0x1,0x4,0xB,0xFE,0xC2,0xFF,2048,8192000...
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...
@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...
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...
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...
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...
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 )...
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:
23820
I did try to export the board...
Mtp serial still need the usb_desc.h stuff copied in
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...
@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...
@... 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...
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...
@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...
@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...
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...
@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
@...
@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...
@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...
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...
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...
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...
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...
Looks like sort of a pain... But you got to to do what you got to do :D
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:
...
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...
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...
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,...
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.
...
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
23791
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...
Sounds good,
For the fun of it you might try a simple on your machine like: grep hidraw /etc/udev/rules.d/*
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:
...
Thanks,
Will play soon, trying to help someone update the RF24 library right now to handle multiple SPI ports.
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.
@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...
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...
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...
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...
@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...
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
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 =...
@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...
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...