-
Older Activity
-
01-13-2021, 11:45 AM
I only wanted to clarify the "d - first dump list of storages" option
this prints out the relevant info of the index file, mtp uses to access the files.
It is only useful during development and requires understanding...
810 replies | 19602 view(s)
-
01-12-2021, 07:31 PM
One application of MTP is to transfer files, while the Teensy is not accessible, so disk access should IMO be optimised.
If this can be done using info from filesystem, so better. Yes, FS.h should provide basic...
628 replies | 57001 view(s)
-
01-11-2021, 02:21 PM
Well, I only adapted the original code to my needs and made it available.
I understand that Paul is interested to integrate it at some time, but he seems to be busy with other (hopefully pleasant) actions.
At the...
628 replies | 57001 view(s)
-
01-10-2021, 04:53 PM
The 2.9 ms is result of acquisition buffer (128 samples) and sampling rate (44.1 kHz) so you must change one of the two values to change the delay.
This requires changing some basic parameters. It can be done, but not...
14 replies | 241 view(s)
-
01-10-2021, 02:10 PM
They cannot be 180 deg out of phase. there is a fixed travel time through the audio library
Output is NEVER without delay to input.
AFAIK
I2S-input: data are buffered for 128 samples (2.9 ms @44.1 kHz)
Amp:...
14 replies | 241 view(s)
-
01-10-2021, 06:58 AM
the way it is wired now, connect audio signal to both line in and oscilloscope channel 1 to ,say, left and channel 2 to right
you could simplify, by connecting both amp inputs to same i2s input channel (left or right)
14 replies | 241 view(s)
-
01-09-2021, 07:36 PM
sorry about formating
here is the audio code
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S ...
14 replies | 241 view(s)
-
01-09-2021, 06:27 PM
no, I was suggesting
i2s ->mixer (+1) -> I2S left
|-> mixer (-1) -> I2S right
so left and right path have same internal delays
14 replies | 241 view(s)
-
01-09-2021, 01:55 PM
if you insert an audio object then you have to consider a 128 sample delay.
So, insert two mixers in parallel one with +1 and the other with -1, then you should get the desired effect
14 replies | 241 view(s)
-
01-09-2021, 01:41 PM
the SPI speed and the CPU speed are total different clocks
.
However, if you use code where SPI clock speed is derived from CPU clock then you may run into issues.
If this happens in old low speed avr code, I don't...
21 replies | 343 view(s)
-
01-09-2021, 12:28 PM
use
SPI1.beginTransaction(SPISettings(4'000'000, MSBFIRST, SPI_MODE0));
spi commands
SPI1.endTransaction();
or similar to control SPI speed (here 4 MHz)
21 replies | 343 view(s)
-
01-09-2021, 10:29 AM
which library you are using?
could not find a MPU9250 for SPI that is compatible with your code
21 replies | 343 view(s)
-
01-05-2021, 09:40 AM
I use 5 lines into my waterproof housing
Voltage, Ground, USB D+, USB D-, Program line
this allows me to reprogram Teensy at all circumstances.
3 replies | 106 view(s)
-
01-03-2021, 09:29 AM
Yes but SE
A10,A11 are Differential (it is clearly written)
7 replies | 146 view(s)
-
01-03-2021, 07:16 AM
I corrected the Readme file (thanks for pointing out)
re TyCommander, I'm not using this, so I cannot comment
If you update boards.txt (modifications for teensy_avr) then there should be two entries MTP DISK...
628 replies | 57001 view(s)
-
01-01-2021, 05:08 PM
USB mode is fixed at compile time.
You can use MTP with Serial if you install MTP from https://github.com/WMXZ-EU/MTP_t4 and follow instructions
5 replies | 140 view(s)
-
12-30-2020, 04:15 PM
I had that too, but having storageID above 16 bit did not change anything.
I know it violates the document, but coding was simpler.
one events:
notifying every new file, for me is not an option, as files are...
628 replies | 57001 view(s)
-
12-30-2020, 02:39 PM
maybe one needs an ISR also for events. don't think TX ISR is called.
628 replies | 57001 view(s)
-
12-30-2020, 02:06 PM
@KurtE
On T3.x, my interpretation was that after malloc you need also a free, but I may be wrong.
So I use always the same buffer for multiple events, assuming that I will not send multiple events one after the...
628 replies | 57001 view(s)
-
12-30-2020, 06:43 AM
BTW,
My Github has also a tested T3.6 version on events included (in MTP.cpp)
I would keep event handling outside cores
I did a couple of days ago a PR on teensy3/usb_desc.h to have tx events, but no action by Paul...
628 replies | 57001 view(s)
-
12-28-2020, 07:24 AM
MTP per se does not need Serial connection, but MTP is usually integrated in other programs that need serial connections.
Seremu without Arduino monitor is a little bit complicated.
Consider headless hosts in...
184 replies | 9945 view(s)
-
12-27-2020, 08:44 PM
@KurtE,
Yes I'm following your modifications and try them out.
There are couple of things I may have a different starting point, so I'm curious to see how they work out.
So please go ahead with modifications and if...
628 replies | 57001 view(s)
-
12-26-2020, 05:43 PM
That is my observation also.
F5 seems to be necessary
628 replies | 57001 view(s)
-
12-26-2020, 09:16 AM
and 3 characters after the "."
4 replies | 129 view(s)
-
12-25-2020, 08:54 AM
Teensy4.x are 3.3V I/O so do do not want a board that is made to interface with a 5V board.
5V in Teensy4 pins may kill these pins
2 replies | 133 view(s)
-
12-25-2020, 08:45 AM
what about
extmem_malloc(size)
as used in LittleFS_RAM of LittleFS library?
20 replies | 2456 view(s)
-
12-24-2020, 07:46 PM
Chip,
mtp-test.ino does work now with T3.6
to use USB_MTPDISK_SERIAL you need to copy the desc.h parts into desc.h cores files
if you prefer to use old mtpdisk (seremu) you should edit desc.h to have for USB_MTPDISK...
628 replies | 57001 view(s)
-
12-24-2020, 06:24 PM
Chip,
Have not integrated yet events to T3.6.
I'm still testing with T4.1 (my real application runs on T4.1)
T3.6 needs own usb interface so it needs a mind-change to get integrated.
otherwise it should work with...
628 replies | 57001 view(s)
-
12-23-2020, 03:24 PM
Chip
you mean
N_k = (Q * f_s) /f_k
anyhow, it does not matter, as one can use FFT to approximate the spectral resolution (with summing of bins), then one can sum the temporal bins to approximate the windowing.
...
18 replies | 498 view(s)
-
12-23-2020, 02:06 PM
AFAIK
N_k * f_k = Q*f_s
N_k window length
f_k center frequency
f_s sampling frequency
see e.g. https://en.wikipedia.org/wiki/Constant-Q_transform
Obviously, one needs to read a little bit more than the first...
18 replies | 498 view(s)
-
12-23-2020, 06:06 AM
Chip,
I would not call it "approximation to constant-Q", as a simple logarithmic frequency scale (logarithmic summing frequency bins) is equivalent to a logarithmic Q.
In how far logarithmic summing of frequency bins...
18 replies | 498 view(s)
-
12-22-2020, 06:25 PM
The OP and title asks about constant Q and not "logarithmic" spectrograms.
constant Q indicates "logarithmic" spacing of frequencies AND therefore also logarithmic changes in window size.
summing simply frequencies...
18 replies | 498 view(s)
-
12-22-2020, 06:53 AM
As Q is related to the time-frequency product you "only" need to implement 96 DFTs, each with own window size.
Edit: Not sure is there is a DFT object in Audio library, but you can easily write one yourself
18 replies | 498 view(s)
-
12-22-2020, 06:37 AM
@KurtE
Re storageID, I knew this and have thought to separate physical and logical storage, but in the end I let everything as 1 physical storage (0<<16) and consider all storage as logical. I know this not entirely...
628 replies | 57001 view(s)
-
12-16-2020, 07:55 PM
After commenting to @mborgerson, here a first success
I succeeded to provoke a PC response using an event.
Using a device reset event PC reopened a new session. I updated the MTP github.
in MTP.h there is a define...
628 replies | 57001 view(s)
-
12-16-2020, 07:47 PM
Correct, If PC initiated a session, and you open a directory in file explorer MTP responder tells MTP initiator (PC), how many files are in this directory. If Teensy the writes additional files, PC will never know about...
628 replies | 57001 view(s)
-
12-16-2020, 08:10 AM
I do not understand.
Does the ReadWrite.ino example in SD library not work?
Is it not the purpose of SD library that you do NOT interface directly with the SdFat library?
The OP asked for a simple SD read/write...
13 replies | 370 view(s)
-
12-16-2020, 08:01 AM
Let me summarize the discussion as I see it.
Starting point:
MTP was developed to retrieve files from portable devices and at the same time to store files on such devices.
It was never designed to replace a file...
628 replies | 57001 view(s)
-
12-16-2020, 06:41 AM
You may start with
https://forum.pjrc.com/threads/65235-Basic-I2S-Input-Example-for-T4-x
6 replies | 209 view(s)
-
12-15-2020, 08:40 PM
This is an operation from within the Teensy. IMO, what is needed an operation on PC to reset session.
I have good results with using the device manager, but as I said, I hear that others have problems.
using Serial...
628 replies | 57001 view(s)
-
12-15-2020, 07:37 PM
If you are not deploying it in coastal areas that gets flooded within the next century.
10 replies | 430 view(s)
-
12-15-2020, 07:31 PM
@KurtE,
A lot of suggestions.
Not sure if it is useful to map FS with MTP (or I misundertand).
The main program must know the disks attached to system for logging, and the MTP is not talking to main program but to...
628 replies | 57001 view(s)
-
12-15-2020, 07:41 AM
Personally, I have no experience with Ethernet, but I can imagine that others on this forum would appreciate a picture of your setup. Not sure also if ethernet kits from e-bay are suited for T4.1. Again, more details or...
4 replies | 173 view(s)
-
12-15-2020, 06:49 AM
The following snippet does not crash
uint32_t data;
int ndat = file.read(&data,4);
if(ndat<0) Serial.println("SD error");
OK, a return of -1 indicated SD read failure, which may be also due to different...
3 replies | 161 view(s)
-
12-14-2020, 07:58 AM
I'm pretty sure that nobody on this forum is experimenting with intentionally bricking a teensy.
So you will not get an affirmative answer, but we all are waiting that you tell us that this instruction indeed bricks...
26 replies | 5561 view(s)
-
12-13-2020, 07:58 PM
The following code is a simple I2S input example that runs on T4.1.
It can be configured to have multi channel TDM input for ether 16 or 32 bit for (nearly) arbitrary sampling frequency.
It runs without Audio library...
0 replies | 95 view(s)
-
12-13-2020, 07:07 PM
on this forum, threads are not deleted. And maybe you give also the solution to the OP to help others
3 replies | 131 view(s)
-
12-13-2020, 07:05 PM
Better not to interfere with DMA that is running in parallel,
22 replies | 511 view(s)
-
12-13-2020, 02:40 PM
Obviously, you will get better answers from Microsoft, why their plugin does not work on a Mac, or better ask Apple, why VSCode + Arduino plugins do not work on MAC.
To answer directly, I have not heard that someone...
8 replies | 358 view(s)
-
12-13-2020, 01:46 PM
In order to have another example to do I2S acquisition (I'm not doing I2S output), here is what I extracted from my actual application
#define FSAMP 96000
#define NSAMP 128
// assume to have two audio...
22 replies | 511 view(s)
-
12-13-2020, 11:21 AM
output_i2s is not at all integrated with other audio library function, it needs only cores functions, that you need anyhow for teensy, if you do not want to re-invent everything.
Output_i2s is linked to Audiostream.h...
22 replies | 511 view(s)
-
12-13-2020, 10:51 AM
best starting point is indeed the audio library.
understand the code and modify it to your requirements.
for I2S you need to look into input_i2s and output_i2s
22 replies | 511 view(s)
-
12-13-2020, 10:40 AM
when duplicating the data in software, yes.
you can do that with audio gui
4 replies | 131 view(s)
-
12-12-2020, 06:26 PM
in order not to change too much I only changed the include from SdFat-beta.h to SdFat.h so I access the SdFat library directly and not via SD interface.
Maybe in the future I will change to SD interface.
With new...
190 replies | 28068 view(s)
-
12-12-2020, 01:18 PM
Just adjusted config.h to do dutycyle and eliminate detector
corrected link to sdFat-beta (I'm using the latest TD)
compiled and it is running as expected
(github updated)
190 replies | 28068 view(s)
-
12-12-2020, 11:50 AM
@DD4WH
maybe a consequence of the work for redscott
Will have a look
190 replies | 28068 view(s)
-
12-11-2020, 07:26 PM
Sure, the USB uses 512 bytes or 64 bytes (depending on speed)
I choose 4096 to speed up uSD access (I'm only interested in fast access to embedded data storage, so 4096 disk buffer seemed adequate)
810 replies | 19602 view(s)
-
12-11-2020, 07:20 PM
AFAIK, DEDICATED_SPI effectively does not call begin and end transaction.
@FrankB a change from 1.36 MHz to 5.18 MHz is indeed a a major improvement from SHARED_SPI to DEDICATED_SPI
184 replies | 9945 view(s)
-
12-11-2020, 04:31 PM
There is more than speed on SPI performance
here are the three cases as I see them
status = SD.begin(SDCARD_CS_PIN); // 0.92 MB/s - 0.91 Mb/s
// status = SD.sdfs.begin(SdSpiConfig(SDCARD_CS_PIN, SHARED_SPI,...
184 replies | 9945 view(s)
-
12-11-2020, 12:37 PM
running the program (SdCardTest) on T4.0+AudioCard SPI clock is 16 MHz with 0.19 us between bytes
Yes, that is set in SD
BUT you can override this with SD.sdfs.begin(...)
That is why sdfs is public in FS
184 replies | 9945 view(s)
-
12-11-2020, 08:38 AM
One explanation could be that with transition to FS.h and SdFat_V2 the configuration must be (re)considered.
184 replies | 9945 view(s)
-
12-11-2020, 06:00 AM
Did you reformat the SD card before each test? which Filesystem was on Card?
184 replies | 9945 view(s)
-
12-10-2020, 07:35 PM
you are correct, I misread the schematic
7 replies | 222 view(s)
-
12-10-2020, 06:37 PM
All T3 boards have additional LDO, so VIN could be higher than the 5.5V USB limit.
T4 and T4.1 use on-chip regulator and I recall Paul and IMXRT1062 manuals saying 5.5V is max Voltage
Edit: wrong info
7 replies | 222 view(s)
-
12-09-2020, 07:01 PM
Another observation I made (by chance)
It seems that LittleFS reads the data back after have written them to flash.
628 replies | 57001 view(s)
-
12-09-2020, 06:20 PM
So, I did another test,
what I have is 1 QSPI and 2 SPI chips
QSPI: EF-40-18 transfer fail
SPI: EF-70-18 transfer OK
SPI: EF-40-18 transfer failed
So it seems it is also chip dependent the (the *IM (DTR))...
628 replies | 57001 view(s)
-
12-09-2020, 04:50 PM
@KurtE
Not sure it is a simple timeout issue
Just copied 1.8 MB to 16 MB-SPI chip, it was transferring fine.
same file to 16 MB-QSPI chip failed after initial tranfer.
To me it seems a QSPI implementation issue, as...
628 replies | 57001 view(s)
-
12-06-2020, 04:56 PM
I do the following
in lfs_util.h
#define LFS_YES_TRACE
void debug_print(const char *format, ...);
// Macros, may be replaced by system specific wrappers. Arguments to these
// macros must not have...
810 replies | 19602 view(s)
-
12-06-2020, 02:05 PM
Did you cut the connection between VUSB and Vin in order to allow external power in parallel to USB?
3 replies | 145 view(s)
-
12-06-2020, 08:32 AM
Sure, we can wait. I will then remove the ugly hack from mtp-test.
Any suggestion on the MTPDISK_SERIAL discussion (dedicated PID)?
628 replies | 57001 view(s)
-
12-06-2020, 07:39 AM
@KurtE
AFAICT, I found the issue with Seremu
it has nothing to do with interface order
but, in previous TD installations there is
operator bool() { return usb_configuration; }
while in latest TD (after...
628 replies | 57001 view(s)
-
12-05-2020, 09:03 PM
a quick test did not work for me
(difficult to understand, why this would matter)
will try tomorrow morning again
628 replies | 57001 view(s)
-
12-05-2020, 03:27 PM
Restart from basics
get audio playback example to work, which, by design, will work without threads (All is interrupt driven)
Now, introduce threads, that must run on a lower interrupt priority (higher number)...
461 replies | 106098 view(s)
-
12-05-2020, 03:04 PM
@KurtE
the example is only meant to to have a test case for me and others and at the same time to give an example on how it could be used.
So, all what you say is fine, but IMHO it is an exercise to the user to...
628 replies | 57001 view(s)
-
12-05-2020, 01:06 PM
I assume you keep in mind that the priority level are in steps of 16 (0 to 15 are the same, followed by 16 to 31, etc.)
IOW, the lowest 4 bits of the priority number are ignored (or better reserved for future chips)
461 replies | 106098 view(s)
-
12-05-2020, 01:00 PM
As I got access to different NAND chips, I augmented the MTP-test example to visualize the different FS supported filesystems.
628 replies | 57001 view(s)