-
Older Activity
-
Today, 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...
467 replies | 28820 view(s)
-
Today, 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...
467 replies | 28820 view(s)
-
Today, 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...
467 replies | 28820 view(s)
-
Today, 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...
467 replies | 28820 view(s)
-
Yesterday, 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...
467 replies | 28820 view(s)
-
Yesterday, 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...
467 replies | 28820 view(s)
-
Yesterday, 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 | 3226 view(s)
-
Yesterday, 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 | 6306 view(s)
-
Yesterday, 04:54 AM
Mtp serial still need the usb_desc.h stuff copied in
467 replies | 28820 view(s)
-
Yesterday, 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...
467 replies | 28820 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...
467 replies | 28820 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...
467 replies | 28820 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.....
467 replies | 28820 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......
467 replies | 28820 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...
467 replies | 28820 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...
467 replies | 28820 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 | 3172 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...
467 replies | 28820 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...
467 replies | 28820 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...
899 replies | 64554 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 | 1441 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...
899 replies | 64554 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...
899 replies | 64554 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
899 replies | 64554 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...
467 replies | 28820 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.
...
467 replies | 28820 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...
899 replies | 64554 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 | 160 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...
899 replies | 64554 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 | 3172 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 | 3172 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 | 1441 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 | 141 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 | 3172 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 | 3172 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...
467 replies | 28820 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 | 3172 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...
5 replies | 117 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...
467 replies | 28820 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...
899 replies | 64554 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 | 340 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 | 262 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...
5 replies | 117 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 | 141 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:...
5 replies | 117 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 | 46 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 | 340 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 | 1441 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 | 1441 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 | 1441 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 | 141 view(s)
-
02-20-2021, 01:42 PM
Did you try: ubuntu ;)
76 replies | 1441 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 | 1441 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:...
467 replies | 28820 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 | 1441 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 | 1441 view(s)
-
02-19-2021, 08:30 PM
It has been a while, need to see if I still have a setup.
76 replies | 1441 view(s)
-
02-19-2021, 07:50 PM
Oops see there was another update :D
And it appears to work!
76 replies | 1441 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 | 1441 view(s)
-
02-19-2021, 01:26 PM
Sounds strange: Not sure which image I started from. My guess is one of the two earlier ones. I am not sure if I still have the DVD or thumb drive... My guess is it was awhile ago so probaby the 20.04 or 20.04.01...
76 replies | 1441 view(s)
-
02-19-2021, 01:19 PM
Note: my experiment for the SD is so far only for the BUILTIN_SDCARD that uses SDIO and I have a fixed pin number for DATA3
OOPS, I see issue in the example: Although probably not ever hit:
#ifndef BUILTIN_SCCARD...
899 replies | 64554 view(s)
-
02-18-2021, 11:16 PM
Tried running same code on Ubuntu 20.04 (MTP+Serial) so I have debug...
Interesting the window that pops up is Shotwell and it shows that I have 4 storage items all named Teensy MTP Disk/Serial
No where it shows...
899 replies | 64554 view(s)
-
02-18-2021, 10:29 PM
Quick update, I updated the code for handling the BUILTIN SDCard, if it is not plugged in. Instead of adding it the first time we detect it on DATA3, I go ahead and add it at startup time. I do however defer adding it...
899 replies | 64554 view(s)
-
02-18-2021, 09:00 PM
On my 20.04 machine, which matches your setup:
kurt@kurt-XPS-8300:~/Desktop$ sha1sum arduino-1.8.13/hardware/tools/teensy
ea99f1c8c1ae6e7ac52ee7cbca90e7caaabd667b arduino-1.8.13/hardware/tools/teensy
The Teensy...
76 replies | 1441 view(s)
-
02-18-2021, 01:46 PM
Probably... ;) Probably won't do anything with that yet as it still is unclear how much will make it into a release... But could be nice, to hopefully in the background cleanup the Chips such that very seldom would...
899 replies | 64554 view(s)
-
02-18-2021, 01:38 PM
Would help to know which library you are using: This one? https://github.com/fmalpartida/New-LiquidCrystal/blob/master/LiquidCrystal_I2C.h#L178
You will notice a couple lines down the init is defined in the private:...
5 replies | 136 view(s)
-
02-18-2021, 01:25 PM
Sorry hard to read, also difficult to read the errors. Many look like typical warnings, signed versus unsigned, likewise something set but not used.
But the error I believe talks about loop:
void loop();
{...
1 replies | 108 view(s)
-
02-18-2021, 01:16 PM
Hard to say, why it stopped, maybe the command was taking longer to finish, and the PC side decided to complain? Or maybe file size? Or ???
There are times with these FS, I wonder about would it make sense to add...
899 replies | 64554 view(s)
-
02-17-2021, 10:43 PM
I have not looked too carefully through your stuff, but one issue I see right off the bat is:
You are including two libraries: Wire and i2c_t3 that define and use the same resources and can not both be used in the same...
5 replies | 136 view(s)
-
02-17-2021, 02:44 PM
With many things like this, it might help to see the code that is not working. For example which library? What version of Teensyduino? How do you have the SD Card wired?
Dito for what OLED display? How is it...
8 replies | 170 view(s)
-
02-17-2021, 01:22 PM
Thanks, I was pretty sure of that as well.
Now just trying to figure out what I would expect as a user and what is possible with MTPD (Both code base as well as by spec).
For example in the case of a fixed SD...
899 replies | 64554 view(s)
-
02-17-2021, 12:57 PM
I need to see how much out of date my sync is to your version of tset...
Other things I keep meaning to look at and/or play more with include:
a) What about the SublimeText 4? I have the dev build on my machine...
134 replies | 25628 view(s)
-
02-16-2021, 08:45 PM
@mjs513 and all
Just pushed up some more changes.
a) I brought over some of the stuff from other unused branch where simple command processing and use case statement... Will add some more specific event tests...
899 replies | 64554 view(s)
-
02-16-2021, 06:36 PM
Sorry, I am not an expert on the XPT2046, with all of it's specifics.
There is some data up on Paul's Github readme: https://github.com/PaulStoffregen/XPT2046_Touchscreen
As for Touch X and Y versus Screen X and...
15 replies | 373 view(s)
-
02-16-2021, 02:04 PM
Warning: I just pushed up changes to my MEM_send_object_large branch which removed the send object yield code and the send object simple code.
This removed the extra parameter I added to storage class to tell...
899 replies | 64554 view(s)
-
02-16-2021, 01:16 AM
Yes and NO - Right now I do the low level format in 2 passes. First pass does nothing and returns with status OK. The Host sees that it is done... But then I call back again to format and here I do the low level...
899 replies | 64554 view(s)
-
02-15-2021, 08:24 PM
Note: the Touch stuff. Returns the X and Y values at the same logical X and Y value that is in a different scale than the actual display is. Also it knows nothing about what orientation the TFT screen has been...
15 replies | 373 view(s)
-
02-15-2021, 07:45 PM
I just pushed up change where the IntervalTimer handler returns device busy for all messages.
With this I was able to format one of the drives, and when it finally completed was able to copy files to it. Then I...
899 replies | 64554 view(s)
-
02-15-2021, 03:23 PM
Quick update - I updated all of the example sketches that used SPIN.h to not use it any more. I also in some of sketches reduced the #ifdef for different configurations of pins and instead left it with in many
cases...
15 replies | 373 view(s)
-
02-15-2021, 02:28 PM
The stuff describing DMA is in chapters 5 and 6 of the reference manual.
Chapter 4.4 shows you the DMAMUX sources.
You can find all of these DMAMUX sources in the imxrt.h file look at the defines that sart with...
7 replies | 239 view(s)
-
02-15-2021, 02:12 PM
Question is, if after it completes, if you in debug terminal type:
r<cr>
does it fix it without having to restart. The code is supposed to do that already, but when I got a beep or the like, doing the manual one...
899 replies | 64554 view(s)
-
02-15-2021, 02:09 PM
Morning all - I am thinking we may need to more reduce how many messages I try to handle at all in the function processIntervalTimer. Probably to make sure that it does not do anything that may actually have to go and...
899 replies | 64554 view(s)
-
02-15-2021, 01:52 PM
With my touchpaint_xpt2046 - you may need to edit to match whatever your pin configuration is... Sorry many of these examples were setup to work as test cases and may not be in what is shown on PJRC displays page: ...
15 replies | 373 view(s)
-
02-15-2021, 12:38 AM
Sorry not sure what the glitch is? Does not start writing at start? When you close file does not remove data after last write? Probably by design. If you want to truncate you probably have to explicitly call member...
66 replies | 3303 view(s)
-
02-14-2021, 10:18 PM
Been playing around and pushed up a new update, that partially sort of works.
First pass - split the format to work in two passes. The first pass is called like before, but in the case of low level format it starts...
899 replies | 64554 view(s)
-
02-14-2021, 07:46 PM
Actually sort of a two part answer, which may depend on what Teensy board you have.
Example T4 and 4.1 have exposed pins for 3 SPI ports, although the SPI2 pins are a little harder to get access to.
And if you...
15 replies | 313 view(s)
-
02-14-2021, 07:35 PM
Hard to say, without seeing the code and hookup.... My guess is the board is getting reset and still has content or the like and during the reset.
Does your display have a reset pin? Do you have it connected up to...
3 replies | 103 view(s)
-
02-14-2021, 06:06 PM
@mjs513 defragster ...
I was playing around some more with Format code. The quick format goes through without timing out the MTP connection.
SO I would try a two step low format version, where I call twice...
899 replies | 64554 view(s)
-
02-14-2021, 03:36 PM
Thanks @mjs513,
Yes, that one is more or less the same as the SParkfun one. But the Adafruit one is bigger and different ordering of pins:
For the Shield version, I mentioned I actually did two versions, one that...
2 replies | 96 view(s)
-
02-14-2021, 02:35 PM
Currently I am playing around with a few different board designs to play with the newer Lynxmotion Smart Servos(LSS) with a hexapod.
I am playing around with a few different options for boards using T4.1, one that is...
2 replies | 96 view(s)