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 not then it is...
Is there a good definition of the protocol? All I've found is forum and github discussions - enough to understand the approach, but not enough to write a driver.
Just an FYI: I updated the Volume name sketch to also print out the total size and used size sort of plus elapsed time to get them for the different partitions:
// VolumeName.ino
// An example of how to retrieve...
@the_boss, yes, you could adapt this serial download/flash process to Ethernet. The same person (jonr) who wrote the original Flasher program for T3.x has also written Flasher4, for T4.x, which you can find here:
...
@mjs513 which code fragment... MSC or MTP... So far in MTP I have not converted the main code to try to do anything with partitions, other than so far I am printing them out and I am able to get the first volume ID.
...
@KurtE
Was just looking over your code snippet so this is a question - it may be buried but I don't see where you are setting up expartVol/partVol .begin for the different partitions and then setting a mscfs based on...
I ported over a bit-banged version of configuration code for the SSD2828 and added it to my fork of the Ra8876LiteTeensy library. You can see the files here:
...
First, a quick disclaimer, this message isn’t a contractual promise or guarantee or legal advice.
PJRC currently has no plans to discontinue Teensy LC or any of the 32 bit products. While I can’t predict the distant...
@KurtE
That is what I was thinking. In the Linux disks formatting program it lists the partition type as 'NTFS/exFAT/HPFS' but shows NTFS and exFAT as two different format types. Possibly NTFS has a different type...
Might really help to understand what exactly is your setup?
Windows? Linux? MAC? ... What version of Arduino are you running? What version of Teensyduino are you running?
Anything changed on your machine, like...
Just to repeat, I did indeed run the code you shared on a Teensy 4.1 here. I was able to upload several times without pressing the pushbutton. I can’t explain the behavior you have described. But I did test with a...
Would you be willing to share some of your code as an example?
I am interested in standing up bidrectional dshot1200 on a teensy 4.0 as well and found your post while looking for the best way to get started.
Hello. I started a personal project where i design a device that includes these 2 functions:
1) Read/Sniff the EDID data of a DisplayPort downsteam device (i.e. a PC monitor)
2) Send/Emulate the EDID data to the...
@wwatson - not sure, about NTFS here. It looks like both partitions have type=7 which I believe is exfat. although looking at:https://en.wikipedia.org/wiki/Partition_type
It looks like type of 7 could be either. ...
Hey
I know this thread is for teensy 3.5 and 3.6, but I will try my luck. I need to write a bootloader to teensy4.1, so I can program the teensy4.1 through a ethernet port, but according to a thread I started...
@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 any hang results from...
Directly, no.
But you may ask the friends in this thread: https://forum.pjrc.com/threads/43165-Over-the-Air-firmware-updates-changes-for-flashing-Teensy-3-5-amp-3-6?highlight=flashing
You can't write the bootloader.
You can write to the teensy-flash,( but not to the bootlader )
That works with a normal Teensy - no extra booloader chip needed.
Any luck?
Looks a bit complicated to jump in... I prefer easier things like MSC and MTP :D
Is it easy to setup and see failure when you don't have the hardware? Steps, and what to see when it fails versus OK?
...
@luni
Found the problem - the program for doesn't like going to USB1 when using a T3.5 and T3.6. Removed it and got everything started working as before. Did test with a T3.2 but it hanging somewhere so the DCC++...
Hey
I need to write a bootloader for teensy4.1 for ethernet programming. I found on this page https://www.pjrc.com/store/teensy41.html
that the bootloader is located in a dedicated chip, but I was not able to find...
I've patched the denom value,
and added a search for the divs - now, more frequencies are working (if not all - tests needed)
Edit: really amazing that the PLLs work with up to 1.3GHz - tell this an AVR user..
@All
Took the rest of the day off and tried out the latest sketch. Everything works great:) I had one little problem that was my fault when I was creating two partitions on a 16G thumb drive I accidentally formated...
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 { after format : BSOD...
I finally have the guts to test this and start playing around as I have been doing ALOT of reading (still don't understand much but know more that I did a few weeks ago).
I want to thank miciwan for the guidance and...
Funny it worked with the code I posted now must have did something to make it fail. Going to run a test just to see with time.h.
EDIT:
Something else must of broke. Just this test sketch and it works fine:
//...
Weird. The library code seems to be quite elaborated. Would be surprised if it has such bugs in it. Maybe you changed something unintentionally while porting stuff?
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 limited and wanted to get...
Updated to fix the Fat16, also implemented a one call to find volume label.
And did some more gratuitous changes to have a function called by loop to process a drive, as to not need to reproduce it for more drives......
I added example USB Passthrough sketches for DAC2 Pro and DAC2 HD.
This effectively turns either HiFiBerry board into a 44.1kHz 16-bit USB sound card for the PC. To load these example sketches, you must select 'Audio'...
Nope nothing else gets printed as I am playing.
BTW will it work with a Teensy 3.x
Remember when I said it was working for a T3.5 well now its not working - argh. - no start up info from timer.h and no signal.
I just used a small bluetooth audio transmitter/receiver bought for a few bucks on aliexpress. It uses an usb connector for powersupply and has two audio jacks. One is for the RX and one for the TX function. A small...
But I think this will just be a alternative to do
switching by patching AudioConnections
https://forum.pjrc.com/threads/60062-Dynamic-Audio-Connections?highlight=dynamic+audio+connections
but in a more elegant...
I have the same problem as well. I commented out all the Serial.print and processor statistics. When it's in FLANGE_DELAY_PASSTHRU mode (logic 1 on pin 1), the audio is clean. When the flanger is running (logic 0 on...
Some stud finders use capacitance to locate wooden studs behind drywall, based on the difference between the dielectric constant of air and wood.
I'm wondering if a Teensy could be made into a stud finder by adding...
Yes, but does it print anything later while you are playing with the commands and getting the error? If so, the library might mess up some intervaltimer settings.
In the SMALL program source code, you should have FLASH_BUFFER_ADDR = (FLASH_SIZE / 4)
In the LARGE program source code, you should have FLASH_BUFFER_ADDR = (3 * FLASH_SIZE / 4)
Is that what you have?
Which...
I was able to get it to install only when the Arduino IDE was installed in its default location.
(I used to have it installed on a different drive than the default. Teensyduino did not accept the directory entries...
As aside about switches - its been briefly mentioned above I think, but hard switching of audio is going to
produce potentially loud and annoying clicks, since truncating a waveform is equivalent to the sound of
a...
@luni
Seeing exactly the same thing on startup as you:
init 0x0
setPeriod(58)
attachInterrupt()
start
out of curiosity I switched the prog track to use pins 3/11 just in case. No difference
Another quick note: I updated my sketch to the last one @defragster and found it was using the old non working Fat16 code. i.e. the one that was reading the boot sector and appears to always be: NO NAME
Will fix and...
That is exactly how c++ template works
the AudioCrosspointSwitch
is initialized with
AudioCrosspointSwitch<4,8> crossSwitch;
which is a 4 input 8 output AudioCrosspointSwitch
note.
The "dsb" is only effective for very short ISRs. The one used by the lib is probably long enough. (But this should be fixed anyway I'd say)
Did you try to look if the library calls the functions from timer.h after...
Hello Rolf, fantastic work. I’m really enjoying see the progress on this.
I love how informative your display is, and how it gives the user lots of real time feedback. Do you have any advice or resources on how to...
@KurtE
Did try and putting asm("dsb")'s in different places associated with the interrupts but still had the problem. Tried playing with volatile's as well but no luck.
Ok now have another interesting thing going on.
I wanted to try with a Teensy 3.6 but as soon as turn power on with the sketch loaded the T3.6 is sending signals to the lock to move but its not suppose to.
The...
there is this one
https://github.com/macaba/Audio/blob/master/mixer_crosspoint_16.cpp
https://github.com/macaba/Audio/blob/master/mixer_crosspoint_16.h
from macaba...
Wondering if you ever figured out what the problem was for you joystick. Only my up ( 1- i think) isn't working, and if replacing it was the fix for you id order a handful more.
Ah, interesting! I'm not sure I'd know exactly how to work this into the Teensy audio lib.
Unfortunately I think the larger issue for my application is that I believe it's 1 in, multiple out, correct?
What I'm...
This is a really intriguing idea, to just use ethernet as a raw serial-like byte stream at 100 Mbit speed. Or maybe as a raw packet delivery?
If the ethernet mac is configured in promiscuous mode and automatic...
SPISlave_T4 has been released!
You may download it at https://github.com/tonton81/SPISlave_T4
An example is supplied as well.
It is based on TSPISlave for Teensy 3.x, except it has an additional feature. Not...
Good morning again:
Just for the fun of it you might try adding the asm("dsb");
somewhere...
The reason I mention it, I have been bit several times where ISR gets triggered multiple times for the same interrupt....
Oops - thats @Frank B's library = I added it get freemem for the T4.1: https://github.com/FrankBoesing/T4_PowerButton
Sorry about that - forgot I was using it so distracted with the other problem.
@DM5SG: EER transmission/polar transmitter is exactly the idea that came to my mind when FrankB wrote that excellent FM transmitter code! Would be nice to hear more on your developments! Maybe it would be worth coupling...
I have a untested solution that is based upon AudioSwitch_F32.cpp from Chip Audette, OpenAudio library
it's basically a Crosspoint switch (not mixer)
AudioCrosspointSwitch.tpp
/*
* Created orginally: Chip...
Ok lets see if I can explain this without tripping over myself. A virtual timer is set up in Timer.h that calls off to IntervalTimer that does a attachInterruptVector. The sketch then calls off to:
...
Some More not fleshed out thoughts on MSC and Partitions and FS...
I first off think it will be great all of the pieces in place and part of Teensyduino!
What I am sort of wondering is if it makes sense to have a...
Morning all
Actually no, didn't get a chance to look - too many other distractions last couple of days :)
I agree with you Kurt 100%.
Oh - one thing I noticed is that if you put in a SD Card in a USB adapter...
Serial monitor seems to be hanging again similar to what happened in T4 beta testing: https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=213179&viewfull=1#post213179
If I run this sketch:
void setup()...
This doesn't actually work. It get you as far as the diags of the internal functions of the chip and I have never had trouble with that. It runs all of the stages of the tests but it stops short of actually connecting...
Good Morning!
I have not had a good chance to go through all of the code:
I don't see anywhere that you call attachInterruptVector, but if you did, I would probably make sure all of my interrupt vectors had...
Good Morning all:
Sounds like we have things coming along well here, to understand some about partitions and getting the volume label. :D
But our test has not handled SD Cards with multiple partitions ;) For...
Thanks thought crossed my mind - so I tested yesterday down to 24Mhz. But as a double check after your suggestion I just tested at 150Mhz - still stopped after a couple tries. Even tried tried changing compiler options
Morning all
@defragster - gave your mods a go and all seems to be working.
1. SSD 120GB - 2parts, extFAT/FAT32
2. SD CARD in adapter - 32GB - 2 FAT32 parts
3. 2 GB Thumb drive - 1 FAT16
All worked without a...
I am in serial mode, I also tried whilst in mtp mode.
It is not that it doesn't print to serial, it is that the device doesn't even show up on USB or run blink
Maybe Teensy is transmitting "*** ONLINE ***" before your PC is able to complete USB detection, and then you interpret the lack of that message as the USB device not working? But that doesn't explain needing the press...
I verified your sketch on a T4.1 and with or without the analogRead(randomVar ); line, it shows a serial USB device .
Did you set Menu > Tools > USB Type to Serial?
Using Arduino 1.8.13 & Teensyduino 1.53 on Windows...
Generally, for strips having more than 3 DotStar LEDs, you want to power that strip externally. You don't want the propshield board to supply significant current to DotStar strips. See this page for more info how to...
In the code below, if I do not put the analogRead function in the code, the Teensy wont show up via USB and I have to press the reset to upload new code.
However if I put the analogRead in, it functions without issue. ...
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 creation and DEMO:...
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 volLabel()'s )
>>...
Hi Everyone.
I'm working on a project that requires input from 5 cherry mx switches, 5 force sensors, 5 capacitive touch sensors, a photodiode and an EEG shield. I'm using a teensy 4.1 to poll all of these sensors...
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 Vol Label - and it...