@KurtE - Teensy_loader_cli.sln works to build setting Debug x86:
Usage: teensy_loader_cli --mcu=<MCU> [-w] [-h] [-n] [-b] [-v] [-f] <file.hex>
Hello World - Defragster was here!
...
Type: Posts; User: defragster
@KurtE - Teensy_loader_cli.sln works to build setting Debug x86:
Usage: teensy_loader_cli --mcu=<MCU> [-w] [-h] [-n] [-b] [-v] [-f] <file.hex>
Hello World - Defragster was here!
...
@KurtE - I'll give it a go to confirm it builds here and check back.
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> [-w] [-h] [-n] [-b] [-v]...
Didn't restart yet - opened and build gave this:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol __imp_SetupDiGetDeviceInterfaceDetailW...
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
For the heck of it thought I'd see it work ... opps ... VS 2019 ... updating to 2022
Seems last update was to VScode ... not VS.
Made edits to github.com/Defragster/T4LockBeta/tree/main/MakeFiles
> added #define && #ifdef options for LFS:
//#define USE_SDIO_SD
//#define USE_PSRAM
#define TEST_QSPI // Typical NOR...
Any install of TeensyDuino brings all the sources in that directory.
if the number of bytes .available() is known, See: arduino.cc/reference/en/language/functions/communication/serial/readbytes/
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...
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...
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. ...
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...
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...
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...
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...
Looking at Kurt's sample I see:
// mandatory to begin the MTP session.
//MTP.begin();
So the problem is that MTP.begin()?
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...
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...
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...
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....
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...
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...
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...
@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...
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"...
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...
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...
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...
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...
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...
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...
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...
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);
...
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...
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,...
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...
... 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...
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...
See Table: PWM Resolution (Teensy LC, 3.0 - 3.6, 4.0, 4.1)
Try appropriate values like analogWriteResolution( 6 );
> 6 bits or lower allows higher frequency
Wow from "250+" it has dropped. Clicking the circled item:
28358
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 :...
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...
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...
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...
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...
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...