Looking at the T_4.1 card here pin 8 is not labelled as SDA/{SDA0}. SDA/{SDA0} is pin 18? And that is on the opposite side of pin 8, the same side as pin 35.
Kurt - works to build fine as x86:
D:\Tim\downloads\Teensy_loader_cli\Debug>Teensy_loader_cli.exe
Filename must be specified
Usage: teensy_loader_cli --mcu=<MCU> <file.hex>
-w : Wait for device to...
Didn't restart yet - opened and build gave this:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol __imp_SetupDiGetDeviceInterfaceDetailW referenced in function...
It was asking for some specific 1.45 (?) tool pack. Rather than see if an update would grab it (or it could be found) - the Install of VS2022 Enterprise is done - ready for a reboot
Look at TeensyThread perhaps?
With the devices being on separate SPI buses it isn't guaranteed to fail - but it may not work reliably having the processor pulled away and interrupted during an active read.
Setting...
Got update to MTP_Storage.cpp : Not back at it for another couple hours.
reminder: The MakeFiles.ino sketch has the 'v'erify for files it makes for testing on non-removable media.
> should be able to create...
Quick NOTE: Repeated w/MakeFiles >> Empty SD card ('W'ipe files), CP_HDD_USB copy to T_4.1_MTP. all files (1_Primes, 't', 'b') copied 2min 9 sec, 'v'erify on T_4.1 GOOD on all 'checked' files. Return SD to PC and...
Next steps:
Using SD with 1Primes folder and 't' I did 'b':
About 2+ minutes to copy, said it would take much longer, so I looked away and missed completion time. Src SD to PC copy under 30 seconds.
Did check...
Kurt, using that and your sample with no LFS_Prog.
> it got further along with FULL SD_MTP copy to PC_HDD.
--> 8 directories done (3 to go) instead of just 4 (IIRC) - but more dirs copied before 'pool' error
Not...
That built and ran. I see it uses MTP.begin().
> in makefiles.ino the MTP.begin is first in setup() before Serial.begin wait
> in mtp-test-integrity.ino it is the other way around ... the MTP.begin() will not be...
Rebuilt MakeFiles.ino without the MTP.begin() :: // MTP.begin();
But using the LFS_Prog :: MTP.addFilesystem(lfsProg, "PgmIndx");
Full SD from MTP to PC completed VERY QUICKLY!
Full SD from MTP to PC completed...
Thanks Kurt, built that sample and it ran until it hit the 'pool' ERROR, will need to add the LFS_PROG.
Enabled the debug in MTP.cpp
If I navigate to "This PC\Teensy\SD Card\ManyD10\D0.5" those 500 Byte files READ...
Noted compiling with MTP_Experimental, have made no edits to CORES - including the USB Descriptors
Indeed the 1_Primes issue cleared up with LFSProg for MTP.addFS(), but the bad xfer of 500 Byte base files still...
RE: p#1203
Moved T_4.1 to front panel USB from HUB.
Started timer and it was minutes ... so long I forgot it was running so not sure when it finished.
> CodeCompare results show the same Diff/Errors as before. ......
So you ran the bat - the entirety of it was the one line shown in the post.
> Seems like the indicated steps show your system having the MTP transfer integrity I'm not seeing with the same process.
Have got Win 11...
Made the p#1197 LFS PROG edit and it created that drive.
Removed 'mtpindex file' from SD card while in PC
Programmed T_4.1 with that SD card in it - so on Restart, first seen with MakeFiles.ino with that file on PROG...
Thanks, that is a good tip and needs attention to work right for dynamic file create and utility.
Seemed something like that {beyond my under the covers inattention} given the 1_Primes folder Not-Visited versus...
Updated to the fs_integration_part2 branch of USBHost_t36.
Seems to have made some change?
> Full disk copy interrupted 5 times with p#1186 Error dialog "... pool is empty"
- > deselected partially copied...
@mjs513: That looks like an old fileset pre MakeFiles "2204", please Purge and recreate with "t" command on start.
The verify scheme and mechanics of file content have evolved. Old file sets are not...
RE: Posts 1188,1190,1191,1192
I'll sync to the latest and confirm when I get back to it ... later today.
> assume Mike/Kurt are running Win 10? : Win 11 here on desktop, will have to try on Win 10 laptop.
Try to...
Only change to github.com/Defragster/.../MakeFiles.ino was an #ifdef.
Starting a T_4.1 with a usably empty SD card running MTP Experimental Makefile.ino create files with "t - Test Files write 2204"
> confirm Windows...
The problem relates to simple Notepad text file open using MTP when size is 500 bytes.
SD card on T_4.1 holds files created up to Jan/Feb 2022. The Makefiles folders and files.
> Going to set that Samsung 128GB SD...
Does this mean anything as a complete issue indication:
$$$ Failed to read Index record: 15 bytes Read: 0
$$$ Failed to read Index record: 16 bytes Read: 0
$$$ Failed to read Index record: 15 bytes Read: 0
On...
Thanks Kurt, it builds.
Will have to get back to what was in progress in Feb and start with some simple Xfer examples for confirming valid file transfer.
Browsing simple folders on T_4.1 SD works.
Opening a TXT...
Nice work! So, to catch up using TD 1.57b1:
MAIN :: github.com/KurtE/MTP_Teensy
and
github.com/kurte/USBHost_t36/tree/fs_integration_part2_format
With optional edit to CORES to support SERIAL still required...
Low Profile Headers: Adafruit are good.
One in p#423 are breakable Male and Female. The AdaFruit Females are solid and lose a pin when cutting to length ... with more effort to cut and clean the overage.
The...
Seems these work with care: protosupplies.com/?s=low+profile
They are nice low profile PINS and Headers that are in 14, 24 pin lengths or 40 pin and Breakable to length.
Problem might be the bottom side pin length...
Does it look much like this one? www.tindie.com/products/loglow/teensy-3536-breakout-revision-a-due/
$17 with headers and pins a USB connectors
@loglow has done some good work ... and there is a discount code in his...
Quick look seems the Adafruit lib doesn't include pin changes.
In the Teensy SPI library is this:
// Teensy 3.x can use alternate pins for these 3 SPI signals.
void setMOSI(uint8_t pin);
Do a forum search...
Yes, that is right for pins 11 and 13.
If there is a way to specify the alternate pin 14 for SCK in the software, then that can be used.
If you chnage one alternate pin that is independant of other optional ALT pins,...
Clicking github from posted link:
#define MLX90393_DEFAULT_ADDR (0x0C) /* Can also be 0x18, depending on IC */
And here for passing Address and Alt Wire:...
With one working that is a great start!
The product page links to learn.adafruit.com/mlx90393-wide-range-3-axis-magnetometer?view=all
if (! sensor.begin_I2C()) { // hardware I2C mode, can pass in address &...
Given no voltage drop on Program pin pressing the Button - then a 15 sec Restore Button press would fail as well if the bootloader chip is not seeing the button?
But won't hurt to try: Press Button and at 13-17...
... long time away from another thread ... YMMV ... that thread had testing of drive speed and details if it can be found ...
How large is the USB Host write Buffer to the Flash Drive?
seems it was optimal with...
Paul, posting complete code in use would be cool - though it is just expected to be the res(6) line before the p#1 two lines.
with a T_4.1: Today's new DVM does Freq Hz counting and gives a ballpark number of 1.999...
There have been some posts by Paul in various threads, a production T_4.1 run was just completed that primarily shipped to distributors.
Check the list of distributors on this page : pjrc.com/store/
For example...
PWM would allow 'unattended operation' - no active code after starting to trigger cameras.
Is the synchronized operation more important than the triggering resolution/jitter?
Is the T_4.0 doing other tasks?
A...
This coated wire came to mind - others might say if not appropriate: amazon.com/enamelled-wire
It is coated/insulated for wrapping coils - and links above show high temp ratings. And a variety of gauges with heavier...
Is it a US purchase? Sparkfun has 12 T_4.0's at the same $19.95 price, no T_4.1's at SFun or AdaFruit - but AdaFruit has T_4.0's at $19.95. Mouser does mark them up and DigiKey less so - and they have many hundreds of...
Check the T_4.0 and 4.1 product pages. There are units inbound, perhaps mostly destined for distributors as noted. And distributors do, or will, have stock on both in coming days/weeks.
No usable work-alike 1062...
Good morning @KurtE, ...
Only question was what is needed to get back to MTP current in sync with 1.57b1 ... wrongly assumed it was merged.
> i.e. current examples for MTP and MSC, and any external sources.
File...
TD 1.57b1 available - if IDE 2.0 tested/used check the build dir the IDE uses. After 1.57b1 installed IDE 1.8.19 still used %appdata%\...\1.56.1 install, not where installed in the IDE unZip folder.
> noted on Beta...
To confirm the IDE was closed to remove>>: C:\Users\Tim\AppData\Local\Arduino15\packages\teensy
> could not delete the folder because Teensy.exe and Teensy_ports were still active!
<edit>, BTW: killing those tasks...
@Paul: just thought to read the end lines of CONSOLE from install and build p#2:
Multiple libraries were found for "SD.h"
Used: C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.56.1\libraries\SD...
Downloaded. Win 11 install on IDE 1.8.19 went properly.
<edit>: not even a system warning about file from download on execution.
T_4.1 BUILTIN_SDCARD ListFiles built and ran properly ... all 120,726 lines worth!
@clinker8 - not had that 'timeout' hit here in some time. After logging back into that thread check the lower left corner of the 'reply' box for "restore" as content seems to be stored on some time period during edits.
Maybe this helps? quora.com/What-is-difference-between-RS232-and-UART
UART is hardware detecting 0v as LOW or logic HIGH. It works with short wires directly feeding the MCU.
RS232 uses +V and -V and defines a...
Cool ... Looking forward to 1.57b1 and getting back to this. Keeping up was a chore with variety of peripheral adds ...
Seems I found the code in progress ...
Code shouldn't have a way to brick a Teensy. It can take it off the rails - but the button should bring it back.
Verify compile a simple blink with Teensy unplugged.
While holding the Button down plug the T_3.6 in,...
PJRC code optimized as possible for general use supporting all the hardware presented, where time allowed, and the need was present. Unless there is something specific going against that as needed, best to use the...
Using SublimeText as source editor here with folder source search and looked for the indicated: ADC0_CFG1
That led to the notes in p#22.
Finding it used in that analog_init - then seeing where that was called ......
Not surprising the T_4.x might have different "USB" behavior from T_LC given the chip hardware evolution from 12 Mbps to 480 Mbps requiring extensive new Teensy code.
It is perhaps interesting, or even telling, that...
When the T_3.6 {defined(__MK66FX1M0__)} powers on it enters the indicated ResetHandler() stored in Flash as uploaded from building the code at hand. That is the 'firmware' that runs on powerup.
All the code executed...
ESP32 can work well, when it does, but it is not a PJRC Teensy when it comes to general utility.
When it doesn't ... ??? ... if you get a backtrace there is a decoder for that.
The FeatherWing doesn't look to...
Current most tested IDE is 1.8.19 and TeensyDuino 1.56 with 1.57 about to show up as Beta 1, so using that any 'PJRC' issues might get addressed in short order, but going to that 1.57b1 perhaps best to get current code...
Good luck. Flash use works well - can support multiple files and functions great for static storage.
Extra slack space can appear to use more than expected as the Flash is allocated and written in native page sizes...
Looking at LittleFS ... Seems like the direction of interest?
Good luck with the Flash attachment - done a few to good effect!
> supported chip
> properly oriented
> fix it in place with one pin, solder the rest,...
Yes, a suitable converter is needed - watch the voltage before making any connection.
From Wiki Voltage levels:
Those voltages are not Teensy UART pin compatible.
Neutral on naming here - as long as there are examples exposing the needed interface.
Mike noted SD issue with partitions(volumes?). Seeing 'FsVolume' that looks like it might cover those as well? So taking out yet...
Paul will announce the TD 1.57 beta 1 release.
Installing that to test will give access to the current code as incorporated.
That thread or this thread likely will end up being the place to track any changes as the...
The GPD used here was UART Rx/Tx - might be that GPS>USB>FTDI would just connect ... may do the same using USB Host mode to Teensy if it just SPEWS messages.
But there can be interface software associated to edit...
Indeed, not using {} braces on every control conditional or for/while is asking for trouble.
Handy Tip?: In the IDE (or as coded in the editor at hand) hit "Ctrl+T" and uniform code formatting is applied. In this...
Indeed elapsedMillis encapsulates the work of tracking the time nicely. That solution looks like the 'alternative' to state machine mentioned. Not knowing what other code is to be completed - having a button response...
The Teensy main USB is in Device mode, as is the GPS. So, they won't see each other as devices only talk to a 'Host'.
To have the T_4.0 see the GPS it would need to be put on the USB Host pads ( marked on the CARD...
Indeed, that example solves for a simple running loop and the p#1 code has the delay()'s in button response code. And they cascade with actions in between 'wait' times. That speaks to use of a State Machine.
That...
Would a grounded wiper 'brush' (desolder braid?) contacting on the back side of the metal tension rollers bleed off enough to aid in electron control?
That roller makes full height contact on one side with the...
Look at this installed example for tips to see if provides the needed process:
{local install}\examples\02.Digital\BlinkWithoutDelay\BlinkWithoutDelay.ino:
// constants won't change. Used here to set a pin number:...
The github link provides a 'Code' / ZIP download of the updated code, download that.
That 'folder of code' can be placed in one of two places so the IDE will use that updated code:
> {sketchbook}\libraries\SdFat
...
If reading right ... the working code has this explicit call in setup(): audio = new SOARAudio();
Where the failing code has the same code done in the constructor called implicitly when the static element is...
There are two other plates of aluminum under the spools and indeed the passing rollers. I was assuming the spindles on them hit the main aluminum plate - but it seems they may be insulated as well by bearings?
Glad...
What Teensy is selected for Board?
Code as provided builds fine for a T_4.1 that has those pins defined.
When using pins as 'Analog' these lines are not needed - AFAIK:
void setup() {
// for (int thisPot = 0;...
So, the load cells measure the tension of the passing film?
Is the aluminum plate structure grounded?
Passing plastic strips over aluminum plate makes me think of how unhappy my cat is when I take off wool or...
Is that the MCU for a T_4.0 - not the larger T_4.1?
Would it make sense to rework the PCB to hold a SparkFun MicroMod Teensy Processor?
That $21.50 item is available - would need the M.2 connector - but include a...
Quick notes ...
Pins don't current limit - needs to be done externally
To invert the output - just invert the desired on time? For 0-255 8 bit value instead of 25 for 10% on it would be 255-25?
Seems the Teensy and Teensy code is doing the right thing. Problem appears to be in what is running on the "Stripped Down XP" - or how that assumably OLDER machine handle USB? Working right here on Win 11 as on the...
Paul made a good tutorial for the Audio library: pjrc.com/store/audio_tutorial_kit.html
It has a varied set of examples and a PDF to look through.
There are more than a few samples playing sound and responding to...
Cool - p#2 pseudo code looks a lot like that :) - good work. Not sure of the results seen there as "Stripped Down" ?
Here TeensyDuino 1.56 is in use with IDE 1.8.19 running on a Teensy 4.1.
Taking that code here...