That would be this then :: effective states : -1 (when REV held) or 0 or +1 (when FWD held)
The code posted has a lot more involved that isn't relevant given no analog is desired ...
Perhaps...
Type: Posts; User: defragster
That would be this then :: effective states : -1 (when REV held) or 0 or +1 (when FWD held)
The code posted has a lot more involved that isn't relevant given no analog is desired ...
Perhaps...
Since it wasn't stated ... had to ask given the use of 5V - could have been an AVR Teensy - otherwise it makes no sense to use 5V for an input when while 5V tolerant - it is a device designed for...
I'm using p#522 here - just minor tweaks for cleaner output and a KurtE Edit that works between 506 and 507.
What Teensy is in use? Is it one that is 5V tolerant?
From 2 buttons FWD and REV ? Is the motion to stop when the button released - not return to zero?
Looking at the T_3.5 card. The Compact notations there indicate::
For WIRE [ Wire0 ] - bold is default pin and non-bold is alternate for selection using .setXXX() to use the Alternate pins
pin:...
Was there a change I missed for improved SD card reading? I have four partitions on mine and it is only giving this:
Initialize SD card...SD card is present.
SD Fat Type: Fat32
Volume Name:...
FrankB's code isn't in a PJRC release yet - just a Pull Request on github.
I made some edits for his review that allows call to user sketch on a FAULT to save data to DMAMEM or EXTMEM for view...
The Bootloader responds to the button by a hardware signal on the board.
The USB Wire signal requires a functional USB Stack. Having output is one thing that somehow often works.
But the USB...
@MeBoop: Writing to the SD in faulted state is suspect? Lots of overhead and moving parts have to be working for that? As noted - some faults allow USB Serial.print() others do not - but returning...
@MeBoop - indeed - would be great to see your 'crash trace dumo' code.
FrankB added a great T_4.x solution using the RAM2 area for Fault data storage. RAM2 is not zeroed on restart and if power...
Looks right for FAT32. Fat16 was big enough for MS-DOS as HDD's grew - much more so accounting for var sized clusters with compression factor of 16:1. Even Win95 with FAT32 couldn't fit FAT in...
p#523 crosspost ...
Windows view of USB Hub Drive >> H: << and Flash drives >> F: and G: << as below:
23845
Here is run on p#522 updated code - now has ExFat drive size:
Waiting up to 5...
Just plugged in my 5 TB external - yesterday's code - doesn't matter given the part ID #238:
msc # Partition Table
part,boot,bgnCHS[3],type,endCHS[3],start,length...
Great! Also easy to use :: #define WIRE WIRE2
Not sure where those pin numbers came from they don't seem to match any 32 bit Teensy card. The T_3.5 and 3.6 can use ALT WIRE on pins 7&8.
The T_4.1 package is : LFBGA196 and 12 x 12 mm, 0.8 mm pitch, ball matrix
The 1170 package is : LFBGA289 and 14 mm x 14 mm, 0.8 mm pitch
There was a note IIRC the board would have to be bigger...
As noted those pins are for Wire2
So all the WIRE commands need to use WIRE2 not WIRE
That should select the right internal hardware to connect those pins.
Glad you got it - there is an #if 0 in setup that will quickly confirm Faults are trapped as configured.
Locked up? Does it do the CARAT printing from timer with "#define SHOW_CLOCK_CARAT 1"? If...
@wwatson - perhaps with line #16 on in UPDATE sketch below : //#define SHOW_CLOCK_CARAT 1
That will show MCU running but USB msgs stalled. Have you hacked in the PR for HardFaults just to know if...
Fun News: Fresh 128GB SD - as noted with 116GB primary ExFat.
Week old Windows 10 i7 - running next release of Windows 21H1 insider build:
On SD Deleted Factory Partition - Created one of 8GB {...
p#494 sketch looks Great!
Grabbed a fresh 128GB SD card and will make it Multi Partition.
I thought to do something like procesMSDrive(1, msDrive1, msc1); rather than Dupe - but time was...
Buying a Teensy LC would have least cost - especially if you really use 5 of them. Not sure of any reason it wouldn't work as well as the others for this dedicated purpose?
See this for PCB...
Done for now - Got Twin Drives Hacked in and working!!!!
Duplicated setup code for msDrive 1 and 2 in loop() - and pass ptr to msc1 or msc2 to the func( UsbFs *myMsc )'s that need it ( mbrDump and...
GOOD NEWS! Looks like it was used a year ago for USBHost testing.
Now it just needs to be coded to bring up a second drive as well.
My 120GB HUB DRIVE is ExFat and now works - seems to have...
Turned on USB DEBUG
This is the inital case on power up where ExFat works:
new_Pipe
new_Pipe
Descriptor 5 = ENDPOINT
Descriptor 5 = ENDPOINT
Initialize USB drive...control CallbackIn...
Put the Teensy MSC formatted ExFat drive on Windows - looks good.
Had 16 MB Unallocated before the ExFat Partition. Made that space into a FAT drive.
Both Volumes have usable names - NOT...
Code Merged - ExFat 128GB Flash lives:
Waiting up to 5 seconds for USB drive
^^^^Initialize USB drive...^^^^^~USB drive 1 is present.
msc1 Partition Table...
Argh - that p#479 doesn't have my edits in :(
I have another drive : Flash 128 GB that was seen to FAIL using to backup PC data.
I just went to MSC ExFatFormatter - here is Format okay and...
Turns out BOTH of these drives are MSFT formatted :) One for recover 64GB with 2nd partition now formatted where they image it with one of 32GB
The second 16GB drive they format when putting on...
Just made this ehci.cpp change to my system - No change to (1) on the startup Hang with write protected drive:
USBHS_USBCMD = USBHS_USBCMD_ITC(1) | USBHS_USBCMD_RS |
This system has...
Just back ... 'not Working' is the norm ... didn't read enough of the thread :)
> this with minimal USB 2.0 'hub' - not powered
Updated above post #470 ::
That is how Windows sees it, MSFT...
TyCommnader finds all online Teensy units. When part of the build process it pops up a dialog to 'pick your Teensy' the first time that hex is uploaded - then on subsequent uploads of that hex it is...
... first pass answers links to other info ...
Forum search for ILI9488 will find development and notes on SPI display usage. There are options for continuous DMA update or single write...
... using the p#469 code { I added : >>>pt->type: 12 }
My favorite/most used Flash is a FAT32 16GB with a physical write protect switch.
23836
That is how Windows sees it, MSFT formatted it when...
Always a pain to plan soldering in advance for pin or socket and top or bottom - and picking the wrong combo leaves a hassle to deal with :(
If properly wired - and the jumpers are well connected...
T_4.1 with KurtE code ( and the p#467 Volume Name edit ) - on unpowered hub just the two partition 64GB Flash works!
>> NOTE: putting this flash in Win machine mounts both partitions/drive letters...
Using unpowered Hub and the 64GB Flash with 32 GB recovery Part - the 2nd part shows using KurtE code:
Notes on output below:
> there are about 300-400 pages of files displayed in TyComm on the...
Some hacking here - esp with my odd powered hub that has internal device #1 of a 120GB HDD - then as coded it doesn't look beyond msDrive1.
Also odd about the hub as before - once enabled the...
PR prepped to update with latest and LFSIntegrity got pulled into PJRC tree. Copied those files to git.defragster\lfsintegrity so they match now for changes going forward.
Finally built here ... swapped PJRC git USBHost into sketchbook/libraries ... still fail
Deleted that to use the td1.54b7 installed copy and IT BUILDS! { Maybe re-using the sketchbook folder...
This was pulled for use :: github.com/KurtE/USBHost_t36 >> "This branch is even with PaulStoffregen:master."
Odd ...
Maybe https://sectigo.com/cps-repository hasn't reported the cert details to MSFT yet?
I see these unfilled filed looking at the exe?:
23819
tCode is my sketchbook folder for local installed libs to replace any other installed libs. This is where I dumped the downloaded ZIPS from the github pages.
Used: T:\tCode\libraries\USBHost_t36...
Awesome. Let me know if anything changes - the git.LFSIntegrity should match? We can manage any updates but that helps formatUnused look useful and improves/updates LFSIntegrity.ino.
The list of LIBS used looked right ? Unless I have an old copy?
Seeing this makes it seem like a prototype is missing from ???
T:\tCode\libraries\USBHost_t36\MTPDevice.cpp:318:6: error:...
YAY for you :mad: - what am I missing :(
Just poking at the downloaded EXE I got to a dialog - Install Certificate on Machine (versus user) ...
Hit the download again and - same grief.
So the SmartScreen doesn't seem to ask the...
That is a hack that doesn't help the desc.h issue. It came up a beta or so back and it handy. Anything there adds to or overrides anything in the base boards.txt. Offline about now - will look for...
@mjs513 - if these lines are in this file (thanks FrankB) : ...\hardware\teensy\avr\boards.local.txt
teensy41.menu.usb.mtpserial=MTP Disk Serial (Experimental)...
That 'verbose info looks like the linker output as it parses the ELF with this line added to build.txt?
## teensy41.build.flags.ld=-Wl,--print-memory-usage,--gc-sections,--relax...
I also reported the download site as safe again in the process. There was a pre release test version I did that on as well the other day - and did that again this time when I tested to see if that...