-
Older Activity
-
Yesterday, 01:13 PM
Good Morning Paul (and all),
If you are following the MassStorage... thread, you probably have noticed a few comments about corruptions of lists. Yesterday I did find a very possible set of conditions that maybe...
29 replies | 438 view(s)
-
03-29-2023, 11:34 PM
Note: most of the cases that this would hopefully fix are those that are initiated from the user code. Like: please write 4096 bytes to the file... Things like Reads are mostly handled by first doing the queue out of...
781 replies | 115631 view(s)
-
03-29-2023, 10:06 PM
Installed W11 using IDE 2 todays nightly build.
Ran a couple of tests. So far so good!
Will try on Ubuntu although I think my hard on that machine is toast and/or the install is.
29 replies | 438 view(s)
-
03-29-2023, 10:01 PM
Thanks @mjs513 I have also run a few more tests. Will try some more. So far not noticing anything.
781 replies | 115631 view(s)
-
03-29-2023, 08:33 PM
Note: I just pushed up a new fork/branch: https://github.com/KurtE/USBHost_t36/tree/queue_transfer_protected
Where I updated:
bool USBHost::queue_Data_Transfer(Pipe_t *pipe, void *buffer, uint32_t len, USBDriver...
781 replies | 115631 view(s)
-
03-29-2023, 07:20 PM
Sounds good. I am playing a little with the USBHost stuff, to maybe plug a few more possible data corruption possibilities.
For example, in RAWHID you do a sendPacket
It simply calls through to the HID code:...
91 replies | 6280 view(s)
-
03-29-2023, 04:18 PM
Again it is sort of on a case by case basis. For example already within: the USB Serial code. I know that: the ::write method, may queue a data transfer.
But it already protects itself, by disabling the USB interrupt...
781 replies | 115631 view(s)
-
03-29-2023, 02:24 PM
Good catch. Have you changed it to see if it makes any differences?
Can you issue a PR back to @PaulStoffregen and maybe get it into the up coming release? Not sure if he would pull it in or not or if he maybe is...
781 replies | 115631 view(s)
-
03-29-2023, 02:14 PM
Maybe not... But maybe some/all queue_data_transfer calls need to be protected.
For example maybe add optional parameter to queue...
like:
static bool queue_Data_Transfer_Debug(Pipe_t *pipe, void *buffer,
...
781 replies | 115631 view(s)
-
03-29-2023, 12:54 PM
Sorry, been busy doing things like sleep ;)
Wondering if some of this in Midi is also a red herring, or symptoms of other problems...
Here are some random thoughts, on things to maybe look at, or try to see if we...
781 replies | 115631 view(s)
-
03-28-2023, 08:24 PM
Building for USB type - midi
Does it work? Note: I know almost nothing about midi, nor use it at all.
But tried opening the TransmitEverything.ino example sketch on a couple of day old Arduino 2 nightly build....
91 replies | 6280 view(s)
-
03-28-2023, 07:55 PM
What USB type are you building for?
781 replies | 115631 view(s)
-
03-28-2023, 05:48 PM
I don't have much of anything:
Audio library, there were two different PRs to allow one to play a wav file from all Filesystems, not hard coded to SD... Again not overly critical.
Cores: Looks like you have...
91 replies | 6280 view(s)
-
03-28-2023, 05:12 PM
Hard to really know what is going on. As we may not know the whole setup including the setup code, what else is connected...
But code too large: you would normally think that would behave the same for reboot versus...
10 replies | 181 view(s)
-
03-28-2023, 01:31 PM
@Garug - not sure here... Especially if for example your Arduino 1.x version and 2.x version are both running the same version of Teensyduino code. Then I would think
they should give you more or less the same...
91 replies | 6280 view(s)
-
03-28-2023, 01:10 PM
@yeahtuna Quick thing on your sketch, which may or may not help.
On the second teensy, it logically looks like it boils down to:
void loop() {
myusb.Task();
if (rawHIDTimer > 50) {
...
781 replies | 115631 view(s)
-
03-28-2023, 01:13 AM
Sorry, there is not much of checking in this code. Like most of the commands in that sketch, it runs off of the currently selected drive.
SO in Command prompt after comes up if you use the 1 command
1<cr>
It will...
781 replies | 115631 view(s)
-
03-27-2023, 09:40 PM
If you are curious about MTP:
The main document I look at when doing this, can be downloaded from: https://www.usb.org/document-library/media-transfer-protocol-v11-spec-and-mtp-v11-adopters-agreement
This gives you a...
1378 replies | 105947 view(s)
-
03-27-2023, 04:55 PM
@wwatson @mjs513 @defragster and all
I hacked up the USB_MTP-logger.ino sketch and added a write file test. Pretty primitive:
void test_write_file(int ch) {
test_file_write_size = CommandLineReadNextNumber(ch,...
781 replies | 115631 view(s)
-
03-27-2023, 03:58 PM
You are right... For awhile, I did not see ones from some libraries I have worked on... like FlexIO... But it is there now
Thanks
781 replies | 115631 view(s)
-
03-27-2023, 03:25 PM
Sorry, I am just trying to be pragmatic here and go with the flow.
As I mentioned, I have tried to keep things within the ways that Paul has used in some of these areas. And with the case you mentioned, tried to...
781 replies | 115631 view(s)
-
03-27-2023, 01:28 PM
Again I am not a MAC person, but have pulled mine out of the cupboard, and going to update it now... was 2.0.3...
Easy parts: What version of Teensyduino are you running?
With Arduino 2.x:
You can see it a...
91 replies | 6280 view(s)
-
03-27-2023, 12:48 PM
I understand what you are saying, but at least in many of these cases it may depend on who and how these methods are called. For example if you look in Serial.cpp,
where the txTimer is used.
Whenever we start or...
781 replies | 115631 view(s)
-
03-27-2023, 12:22 PM
Maybe one of us (me?) may have left a debug line uncommented.
Look in the USBHost_t36 directory.
And look in hid.cpp for:
void USBHIDParser::out_data(const Transfer_t *transfer)
{...
91 replies | 6280 view(s)
-
03-26-2023, 09:39 PM
I am still sort of curious on the speed of these drives:
So put an elapsedMillis into the sendObject code, and at the end (debug >= 1)
printf("SendObject complete size:%u dt:%u\n", size, (uint32_t)emSendObject);
...
781 replies | 115631 view(s)
-
03-26-2023, 08:38 PM
It works on mine:
Note: if it does not work, try to make sure it is trying to write to the Teensy port code and not the generic Arduino port code.
You should see it in the tools menu:
Also should make sure...
4 replies | 119 view(s)
-
03-26-2023, 08:21 PM
Personally I would only send one device reset event, after you have changed the file or file(s).
What it does is it tells the host to end the current session, the host will send MTP a new begin session, at which...
1378 replies | 105947 view(s)
-
03-26-2023, 04:45 PM
Note: As for the not seeing the last lines... There was a fix since the last released version.
You can download from the main arduino.cc software page.
As mentioned there are still many issues with the Serial...
91 replies | 6280 view(s)
-
03-26-2023, 04:25 PM
Again I don't use the MAC, except at times for MAC specific issues. I mostly use Windows (main machine has W11), secondary machine Ubuntu 22.04 (or W10)...
Note: At times I think of Ubuntu in the same way that Paul...
1378 replies | 105947 view(s)
-
03-26-2023, 04:02 PM
Note: you will never exit the line: while (1) yield();
77 replies | 10272 view(s)
-
03-26-2023, 02:37 PM
Quick update:
The problem child (SDCZ73-032G-G46) that "works now"
https://www.amazon.com/dp/B01FTQP7ZM?psc=1
I was able to transfer a 6.44mb file to it, but it took probably over a minute to complete.
As...
781 replies | 115631 view(s)
-
03-26-2023, 01:36 PM
Note: I am not much of a MAC person, but have older MAC laptop that I use to debug stuff on from time to time.
On it I was using some version of MTP like you mentioned, that had a 10 day trial period...
But then...
1378 replies | 105947 view(s)
-
03-26-2023, 12:30 PM
@wwatson @mjs513 - I tried the change and as mentioned it appears to fix the issue with at least the problem child I picked up. I ran the MTP USB example and was able to both have it create the log file on the drive. ...
781 replies | 115631 view(s)
-
03-25-2023, 11:14 PM
Did the udev rules get installed
9 replies | 129 view(s)
-
03-25-2023, 10:13 PM
Sounds like something to try. I have seen the clear feature like this somewhere else.
781 replies | 115631 view(s)
-
03-25-2023, 04:26 PM
@mjs513 @wwatson
@PaullStoffregen (if you are watching) - thread shows last look about a week ago.
Some of this lower level USB stuff is above my pay grade (of $0) ;)
Stalls - I have looked a little bit...
781 replies | 115631 view(s)
-
03-25-2023, 12:59 PM
Another simpler option for you maybe to try:
That is if you call begin() before it is there, maybe we should still try to use that baud rate when it does connect:
If you go into the USBHost project sources on your...
3 replies | 68 view(s)
-
03-25-2023, 12:40 PM
Writing: 'this is a test.' to sector: 1000000
msWriteBlocks()
msDoCommand()
USBDrive CallbackOut (static)
transfer->qtd.token = 0
USBDrive dataOut (static)31
55 53 42 43 09 00 00 00 00 02 00 00 00 00 0A 2A 00 00...
781 replies | 115631 view(s)
-
03-25-2023, 02:07 AM
Strong guess, FTDI cable is buffing the stuff...
If you output your 82 bytes to userial1 and then do userial1.flush();
Does it work? My guess maybe not.
The cable probably has some logicai IOCTL that tells the...
7 replies | 122 view(s)
-
03-25-2023, 12:08 AM
Sorry, it has been awhile since I looked at the USB Host Serial code.
I think there is sort of a chicken and the egg problem.
It does appear like the code does default to 115200 when the object first connects. ...
3 replies | 68 view(s)
-
03-24-2023, 11:35 PM
Sorry I am not sure exactly what you are asking, So will try to give some generic information.
The Serial object, tries to fill up a USB buffer and then sends a USB packet to the host. Things that control how USB...
7 replies | 122 view(s)
-
03-24-2023, 04:51 PM
Will have to take a look at those.
But first I am curious about the failure:
File "annie3 - Copy.bmp" size:230454 Created:641d6f21 Modified:61e3a02e
read consumed all data (TODO: how to check ZLP)...
781 replies | 115631 view(s)
-
03-24-2023, 12:52 PM
Yes those are the ones. The ones that grow maybe near an inch wide, and maybe 50' long, with long sharp thorns...
These gloves help:...
781 replies | 115631 view(s)
-
03-23-2023, 07:10 PM
Any luck on this yet?
I will try to take another look soon. Right now doing fun things like: cutting Himalayan Berry vines out and chipping them.
781 replies | 115631 view(s)
-
03-23-2023, 12:59 PM
For me, the AD_B1_ is the pin name, the GPIO number is closer to the PORTA, B, C, D of the AVR processors.
For example if you look at my excel sheet in GPIO pin order.
You will see a column with name... the AD_B1_...
6 replies | 188 view(s)
-
03-22-2023, 06:47 PM
Quick note, I picked up my delivery of 4 of the Sanddisk ulta Flair 32gbs...
Looks more or less identical to what @mjs513 showed yesterday...
I did also try reformatting it on PC to FAT32 and no differences. MTP...
781 replies | 115631 view(s)
-
03-22-2023, 03:48 PM
Many/Most of the HID drivers keep a back pointer to the USBHIDParser object.
This is passed to you in the claim_collection method.
Many use it to restrict their object to only dealing with one HID parser.
And...
16 replies | 184 view(s)
-
03-22-2023, 12:46 PM
Quick update, this morning:
C:\Users\kurte>ping pjrc.com
Pinging pjrc.com with 32 bytes of data:
Reply from 162.254.150.250: bytes=32 time=105ms TTL=44
Reply from 162.254.150.250: bytes=32 time=88ms TTL=44
Reply...
48 replies | 963 view(s)
-
03-21-2023, 04:34 PM
Sorry, I am distracted as I am trying to debug some of my own not related code.
Count of devices really only impacts as you mentioned amount of memory. And maybe in few cases where it walk the list of objects.
16 replies | 184 view(s)
-
03-21-2023, 04:30 PM
Probably. It is probably with the DNS that I am using. I think I still have it hard coded at my connection to my provider as something like: 1.1.1.1
Or might have been googles: 8.8.8.8
Was earlier having problems...
48 replies | 963 view(s)
-
03-21-2023, 02:36 PM
C:\Users\kurte>ping pjrc.com
Pinging pjrc.com with 32 bytes of data:
Reply from 162.254.150.250: bytes=32 time=506ms TTL=42
...
C:\Users\kurte>ping forum.pjrc.com
Pinging forum.pjrc.com with 32 bytes of data:...
48 replies | 963 view(s)
-
03-21-2023, 01:32 PM
That is the normal way the HID parser code works.
However there is a hook that some of the client code, like the RAWHID and for example some cases the Keyboard and maybe some others use.
That is, when the message...
16 replies | 184 view(s)
-
03-21-2023, 01:04 PM
Sorry, I was not doing much monitoring up here yesterday... Sort of off doing different things.
I have found with some of the Wireless Mice or keyboards, that yes, they can consume several objects.
For example,...
16 replies | 184 view(s)
-
03-21-2023, 12:50 PM
I am wondering if this display has a display driver chip on it or if it might be something like the KeDei display we were playing with a few years ago.
Which was another RPI 3.5" display, but it did not do standard SPI...
6 replies | 146 view(s)
-
03-20-2023, 12:51 PM
Is there anything that we should be looking for?
That is, was this a "simple" server change or was there other things that changed as well?
My guess is simple is never simple!
I noticed recently that you...
48 replies | 963 view(s)
-
03-20-2023, 12:31 PM
As mentioned, it shows up in current FIrefox on windows 11:
But not with Edge.
Also looks fine in Adobe Acrobat.
5 replies | 134 view(s)
-
03-20-2023, 03:15 AM
I ordered the other one…
781 replies | 115631 view(s)
-
03-18-2023, 07:40 PM
Note: I looked up at amazon, and they have a few Kingston Datatraveler G2 drives, but none look like the one in picture. So not sure if they would be apple to apple...
And if they are all different not sure worth...
781 replies | 115631 view(s)
-
03-17-2023, 04:21 PM
Note: I am a software guy... But..
If you look at the T4.1 schematic it shows a voltage regulator that in main part says range up to 5.5v, but in the spec part it says absolute max 6v.
So you might be able to live...
20 replies | 223 view(s)
-
03-16-2023, 04:22 PM
Sorry, I know sometimes less is more...
If you look at the memory section of the T4.1 product page:
https://www.pjrc.com/store/teensy41.html#memory
everything except RAM1 (DTCM/ITCM) uses the cache.
The DTCM/ITCM...
7 replies | 124 view(s)
-
03-16-2023, 02:02 PM
Yes you should be able to do 8E1. Don't remember if you need to enable 9 bit support within HardwareSerail or not, probably not.
By default, the support for 9 and 10 bit and more is disabled within the source code...
11 replies | 138 view(s)
-
03-16-2023, 01:52 PM
Sorry, I missed seeing the DMAMEM on your example.
To me, the keyword DMAMEM translates to, almost the worst place to do DMA ;)
External memory can be worse :D
The issue: These areas of memory are configured to...
7 replies | 124 view(s)
-
03-16-2023, 01:19 PM
Paul has a github project to track issues about the website.
Did a quick look, and sure enough, I opened up an issue about this, about a year ago:
https://github.com/PaulStoffregen/Website_Updates/issues/26
11 replies | 138 view(s)
-
03-15-2023, 08:33 PM
Side comments to self:
Part of the write9 code that currently runs, I have wondered if it still fails at times:
while (tx_buffer_tail_ == head) {
int priority = nvic_execution_priority();
if (priority <=...
2 replies | 114 view(s)
-
03-15-2023, 07:45 PM
I was playing around with some different stuff, and ran into an interesting issue.
And I am trying to decide if it is worth fixing.
Here is some quick typed in code (probably has errors) that will likely hang a...
2 replies | 114 view(s)
-
03-15-2023, 12:47 PM
My first try would be to add call: dma_ch1.clearComplete();
right before you the dma_ch1.enable();
7 replies | 124 view(s)
-
03-14-2023, 05:37 PM
Do you have any links, for example on Amazon for some of these drives?
Preferably ones that are pretty cheap?
781 replies | 115631 view(s)
-
03-14-2023, 02:00 PM
Sorry, I am not sure who the "maintainers" are?
The only person who can merge in any changes to this library is the Paul. @wwatson, who did most of the original MasStoreage work, has been very active on this...
781 replies | 115631 view(s)
-
03-07-2023, 03:17 PM
In case anyone has not noticed:
Arduino released version 2.0.4. A few days ago.
I have not had any new issues with it, but have seen some reports up on Arduino forum, where some people have run into issues, like...
416 replies | 55248 view(s)
-
02-27-2023, 12:45 PM
Couple of thoughts here:
I have had times where the crash is very near to startup code and kept in an endless beep reset, beep reset.
So sometimes I put code in like:
if (CrashReport) {
while (!Serial &&...
6 replies | 170 view(s)
-
02-18-2023, 06:26 PM
If you are going to muck with the register, I would do it right after you did any/all SPI.begin() (including SPI1 and/or SPI2...) as they all use the same underlying clock.
Note: the code was setup to try to avoid...
9 replies | 268 view(s)
-
02-18-2023, 04:57 PM
Note: The SPI library is setup to allow you to choose a different Clock setting for base of it.
It is all controlled by the clock register: CCM_CBCMR
Which the SPI library inits each time you call SPI.begin()...
9 replies | 268 view(s)
-
02-17-2023, 12:48 PM
You might try to use some built-in hardware support...
For Encoder: not sure if it is a quadrature encoder? if So you might want to look at:
https://github.com/mjs513/Teensy-4.x-Quad-Encoder-Library
For Analog...
6 replies | 190 view(s)
-
02-16-2023, 12:57 PM
Sorry, you may need to explain more about what you are doing or wanting to do.
For example you are sampling Analog. Are you using the analog capabilities of the Teensy to do this, or are you using some external ADC...
6 replies | 190 view(s)
-
02-13-2023, 06:08 PM
I am saying in particular the logical output flush (tcdrain) on the linux machine, mainly SBC like RPI, or UP, would stay in this function for an extended period of time.
So my setup code to talk to the Dynamixel...
14 replies | 379 view(s)
-
02-13-2023, 02:17 PM
Sorry, I am probably not much help here. But with USB latency, when talking with PC/RPI...
When I have worked on different simple robots in the past, where I used a Teensy or other board as a Servo controller and the...
14 replies | 379 view(s)
-
02-13-2023, 01:08 PM
Note: I posted the code I tried, plus output, that at least in the simple case the hardware and digitalWriteFast is working
And potentially if you have a logic analyzer or Oscilloscope, you maybe could try to see if...
4 replies | 247 view(s)
-
02-12-2023, 09:10 PM
I don't see that issue: Here is a complete sketch:
#define GATE_OUT_1 39
#define GATE_OUT_2 38
#define GATE_OUT_3 37
#define GATE_OUT_4 40
void setup() {
pinMode(GATE_OUT_1, OUTPUT);
pinMode(GATE_OUT_2,...
4 replies | 247 view(s)
-
02-10-2023, 02:22 PM
Sorry, other distractions.
Yes - if I remember correctly (year plus ago) - that github project was where I had done some rawhid host code to test the rawhid 512 stuff.
There is an Open PR on core:...
4 replies | 172 view(s)
-
02-09-2023, 10:42 PM
Sorry, I know off topic, probably should take to another thread, but:
Earlier I was playing with Two Teensy 4.x talking to each other using RAWHID, with the version I made that supports 512 byte transfer. But so far...
102 replies | 4255 view(s)
-
02-09-2023, 07:37 PM
Thought I would mention, I was able to build it using W11 sort of using your guide. My first attempt using Visual code, the cmake stuff failed.
Started over and used the Command line. stuff and there I saw the...
102 replies | 4255 view(s)
-
02-09-2023, 12:16 PM
Sorry have no idea if the sketch can or can not work on ESP32.... We don't see the actual sketch.
But the error:
C:\Users\Tom\Documents\Arduino\LEDmetronome\MetroD rumv1.19\MetroDrumv1.19.ino: In function 'void...
11 replies | 508 view(s)
-
02-02-2023, 01:32 PM
For what it is worth, @mjs513 and I were playing with a picture viewer sketch, which is up at: https://github.com/KurtE/mtp_tft_picture_view
It cycles through pictures on a storage and displays them on a display.
It...
23 replies | 951 view(s)
-
01-31-2023, 08:41 PM
Sorry I am not a platformerIO user, but your simple images/code do not show you including <SD.h>
You have some other <dbSD.h> which I don't know what that is.
It does show in your platform.ini file stuff that it...
2 replies | 215 view(s)
-
01-31-2023, 03:34 PM
Sorry, throwing darts...
How are these Teensy boards being powered? Is it through USB? Or through VIN? If VIN, what is the voltage?
Just wondering if it could be differences in which VR or the like...
Again...
31 replies | 1302 view(s)
-
01-30-2023, 08:53 PM
The QSPI memory does not use LPSPI it instead uses: FLEXSPI controller (Chapter 27) - There are two of these, one for main memory and second for those bottom chips.
Pins 48-54 - Mode 8 If my quick look is correct.
...
12 replies | 439 view(s)