The out of the box Teens is running Blink code - assuming at default 600 MHz. Adding alternate code at 600 MHz not making any difference doesn't suggest the Teensy itself is the problem ... the next line says the PCB in...
Is it stalling because the ring buffer is full?
Is there a file write in another location needing?: !file_accel.isBusy()
Just with a quick glance maybe in logData() repeat on this while() there?
//If...
Lesson Learned: CHECK console output for WARNINGS!
- talked about UDP Chat example mod was failing ... called out to class member that expected 'int' return and func() had no return
>> Resulted in CrashReport !!!
And if the Flash were removed and the stored program area copied to a 'stored file' that would not be a complete solution.
The Teensy Loader wouldn't facilitate programming that to other Teensys? Unless that 'stored...
There were notes on a thread some time back about alternate extensions of the Single Button function. Not sure the suggestions touched on this.
If the Teensy is available to reach the prog Button, then the T_4.x...
Congratulations on getting a good build with that chip not seen tested yet. Good to know the bootloader chip can work with them and offer the extended temp range, or when needed fill in for the 600 MHz MCU with speed...
Yes, T_4.0 came out with 10x10 and Pin# silkscreen easy large type fit to the MCU. T_4.1's went 12x12 for extra I/O pins and those to on board PHY to MagJack and QSPI needed larger bga pitch to run the wires on Teensy...
Very cool they got tested to work. Not cheap - but perhaps available.
Those are smaller 10x10 size like on the T_4.0 instead of the 12x12 on the T_4.1?
Try this WDT @tonton81 designed/tested with the Teensy's 1062 in mind: github.com/tonton81/WDT_T4
Forum search should show development and use if the github examples are insufficient.
Never read much of the manual ... but there is a Low Power element to the MCU with some cute name. That element {in practice} is powered by the main power and runs RTC and maintains the On/Off state, as noted RTC...
bare T_4.1
105.5 mA : running some sketch
0.26 mA : seconds after holding On/Off to GND
Same T_4.1
135.5 mA : running a simple print time with busy calc'ing RND number between seconds after programming...
Desire is understood - not seen it called out as noted.
There is a low power section that controls the On/Off and it is AFAIK also related to the RTC section which is powered any time the unit has power.
The...
Not recalling having seen that as measured ... suppose it keeps the related RTC unit powered so will be some small current ... maybe my new cheap meter can measure that ...
Glad you are working again!
Got 91% isopropyl here - and after cleaning ... hairdryer there is used to help evaporate that and push out any fluid trapped under SD socket or other. Bake it in hand to the temp I can...
As long as power is maintained the prior CrashReport data is maintained in a small piece of RAM2/DMAMEM that is not cleared on Warm Restart.
You likely didn't add breadcrumbs either - but some 32 bit values are also...
Is there a check and Serial.print(CrashReport) in setup() with a wait for Serial when if(CrashReport) is found?
That is the first thing to check for a clue/guide.
Good eye Spencez - saw that too and wondered what was there. Other soldering looks nice on pins - not seeing any other odd splatter showing. But if it was working after soldering before then that shouldn't be trouble.
...
Check the indicated "PWM Resolution" section that lists the "Ideal" - that is where the math works best for adjustment for various bits of resolution. From that it was assumed the MAX would be that shown as suggested...
The table indicated in p#2 is best guess here, PaulStoffregen would know if otherwise.
The fastest expected for each device would seem to be that shown as ideal for the 2 bit resolution. Even that may not work for...
No doubt QNEthernet with @Shawn more active - been playing with parts here.
Since that was covered the next line was as far as I read. TeensyThreads is a very nice development - but with limited applications - or...
Seeing: #include <TeensyThreads.h>
Doesn't inspire confidence. Didn't read the code to understand usage - but interrupt task switching on a timer tick might be the problem if it affects code not designed for it and...
maybe 37500000 ?
See the section: PWM Resolution (Teensy LC, 3.0 - 3.6, 4.0, 4.1)
It seems to be dividing from a 150 MHz clock. The next MIN step above Zero will depend on the chosen resolution.
The Millis increment timer tick update works from an isr. When interrupts are disabled, or a same/higher priority interrupt prevents it from running then a timer tick can be missed and the clock will slip one ms at a...
Buffering from an _ISR() is not trivial - when there is another non _ISR() like loop() emptying the buffer.
This post by @PaulStoffregen points to one solution and the issues. That uses a circular buffer where the...
EEPROM READ and WRITE are uint8_t BYTE only:
uint8_t read( int idx ) { return EERef( idx ); }
void write( int idx, uint8_t val ) { (EERef( idx )) = val; }
Get and put are the alternate...
SD cards are not consistent in fast write and return times - low end is fast - but when the card gets data it may need to do housekeeping that can take over 100 ms.
An interrupt safe set of 'ping pong' buffers or...
So from a working display library example - adding only usage of the BUILTIN_SDCARD (none of the other devices) - the display stops working?
If sketch to that effect (starting with working Display example and...
Try a simple example from the 'ILI9488_t3' library perhaps? Make any needed adjustments for setup for the T_4.1.
Excluding all the other devices and libraries until the display works, confirming each wire if needed...
Yes, grass was getting ahead! Deck is 25 years old and parts half rusted away (note to self clean and repaint sooner than 25 years). Welder new to me and got the two needed brackets secured - one was off the other...
Noted in p#4 after skimming the manual that it shows either TCP or UDP. If you can accept/identify a missing scan packet, then that would be easier to see and test like the QNEthernet CHAT sample @shawn wrote. That's...
Common cause for this is in setup() some sort of: while( !Serial ){}
Not seeing the code or having any idea of what library or other is in use makes guessing beyond that tough ...
Very cool games you play @KurtE - reading when I get a chance. Finally got mower deck painted and running to finish that from 10 days ago and past time to start over ...
Was glad to see the found need and purpose...
Not clear if the issue is 1.58 or 1.59 as noted?
IDE 2 does not show LTO as an option for 1.58 so it was not corrected and incorporated. PIO may trigger it as an option - but not valid.
If this is just PIO and...
Ran into this again today?
@PaulStoffregen - is this an IDE 2 problem to report, or something specific to Teensy Serial Monitor holding the port open in IDE 2 even when the SerMon is clicked off?
IDE 1 does not do...
Missed this - there is a thread of a laser scanner sending 54,000 TCP distance reports a second - wondering if T_4.1 could capture them.
Using the QNEthernet library ... I measured under 10 us for the UDP chat...
@shawn of github.com/ssilverman/QNEthernet (or others) might have an idea of usable throughput speed for handling such a barrage of messages with a T_4.1.
There are three wired T_4.1's on the desk here - but not...
on phone I saw multipass unit? Couldn't read the details well ... phone said the download wasn't secure ... but read it anyhow.
Seems it gets an IP::PORT and just spews data UPD or TCP as selected?
150 Hz ... 150...
PJRC has a MASTER TEST jig that tests all that and more in some fashion - each Teensy visits it for a test and bootloader programming before it is allowed to sit in a PJRC package because it has to pass to get the...
Doesn't sound like a lot ... depends on the process and protocol - is the device just set to broadcast the data in how many messages or what type? Or it is queried some number of times per second to reply with the data?...
That is a significant difference! Does the code involved have any demand or measure for speed of execution? That is: is there any appearance the code has slowed or changed in any measurable way?
Looks like data grew 8K and code grew 15K with the change in Teensy toolset in the updated TD - that code growth caused use of another 32KB RAM1 chunk and the padding went from 8K to 25K bytes.
If the code shrunk 7K...
This post points to a manual probe test sketch:
https://forum.pjrc.com/threads/55735-ILI9488_t3-Support-for-the-ILI9488-on-T3-x-and-beyond?p=324323&viewfull=1#post324323
Puts pin pullup or pull down then carefully...
Fun stuff @KurtE! I keep watching - but still working on my mower deck as grass grows. Too much rust and too thin to weld beyond the reinforced important parts - now waiting for JB Weld to harden to paint.
Would be...
limited suggestions given it isn't English and not Windows ... the screenshots do show IDE 1.8.19 in use
On Windows downloading the IDE 1.8.## as a ZIP allows unzipping and using from a unique directory. It will...
The T_4.1 has a number of clocks independent of the main clock driving the CPU.
One was selected that gave the best overall range of needed values - but the granularity for fine tuning is determined by the clock...
Have been using IDE 2 more than TSET lately. It will get SLOW - typing and UI response a bit delayed when open some time, or some interaction. With 7 sketches open now it is fine 3 days after last restart for updates....
None seen here with Windows - not likely with others on linux based on posts and that PJRC primary dev is on linux. That message reporting would not relate to OS, but the software as built or the card in use.
Not the one to answer - comment was 'if the ESP has 5V input for power' with onboard regulator that should be used. Otherwise not sure of the ESP8266 in use or how to get it stable 3.3V of 400mA (or whatever it needs)...
What OS? There are alternative interfaces to build ...
The forum has various discussions -
and see here : github.com/TeensyUser/doc/wiki/Arduino-IDE
>> Then in right frame click "Compiling, Languages &...
Unless the ESP has a 5V power input pin, it would take an appropriate supply to deliver the needed 3.3V.
200 WiFi messages per second might be pushing it - haven't done such testing. I do have three wired T_4.1's on...
Agree with power limitation issue. Was first thought and then p#1 conclusion - showing 1500 ms dropping to 650 ms?:
The caps are giving needed surge power - but still will have Teensy 3.3V max current to keep up.
...
The other week a user had an IDE 2 issue where IDE install was for 'ALL USERS' - there were some issues that went away just doing 'this user' install and running it from that account.
May not relate - but when a note...
Failed to post reply 2 weeks back ...
Wasn't saying it was too much code - just that it wasn't all 'parsed' - assuming it works as claimed to address what seems a valid issue.
And wondering if @PaulStoffregen had...
Using IDE 2.1 with TD 1.58.1 the post #2 code built here and created the indicated 40MB file with just one line.
Didn't seem to activate MSC connect to Host PC ... but it built fine with and without USB having MSC...
@tonton81 did that code years back {2018} when a T_3.6 or T_3.5 was newer and overloaded with IMU sensor data - SPI _Transfer was created to offload the data to a second Teensy for Serial.print()'ing that to external...
Just thinking how nice a pair of T_4.1's doing this would have made the OLD NAV stuff with @brtaylor fly :) Faster updates on the position and data transfer to second T_4.1 over USB Host would have made the cool...
THANKS @luni! - Indeed it was and using that <PR> file fixed it!
Seeing this to test including @Nominal Animal:
C:\T_Drive\tCode\RANDOM\CppMT19937\CppMT19937.ino May 13 2023 11:56:26
us for 1M prng_u32()'s = 18335...
The 1062 in the T_4.x's has the design allowing code to run from RAM directly - not just Flash with some code cache as the T_3.6.
That only works from RAM1's 512 KB where Data also resides. See: RAM1:...
Perhaps build with a USB type without Serial support? Seems there was a NONE option not showing now ... maybe Keyboard or some other?
No idea what if(Serial) does if there is no USB:Serial ...
Using samples included with QNEthernet have worked well here. If you can demonstrate a problem shawn has been responsive.
As for Serial.begin() - it isn't needed as when built with USB Serial it will always start,...
Glad I could help - however that was this time :) Great you got the pieces together and working!
lawn tractor mower deck broke - so learning to use the welder I got to put the lift bracket back on where rusted metal...
Post title notes T_4.1 and then display as 3.5 (assume inches?)
But, as p#2 notes the BUILTIN_SDCARD on T_3.5, 3.6 and 4.1 are all connected on an SDIO bus wholly independent and not sharing any pins with any...
What sketch is running? The example sketches included the needed setup and calls to have it appear, just enabling the feature in the build USB type isn't enough.
Seems this is the current work in progress? github.com/KurtE/RawHid
For prior tests it was done with the current Release code but the new sketch and was working - except network buffer limits in the extended test...
That last line relates to some post or real world (non teensy) OS specific interface IIRC (but I don't recall the specifics) - as noted when a slower rate was asked for the OS/program stack contrived to limit the...
Nice to have the logic analyzer! Put a digitalWriteFast() around loop() to tell if it is running.
If SerMon is online and CrashReport isn't stopping to show info then the nature of the problem would seem to be 'stuck...
Not seeing value in modifying? If unpacked the unused bytes won't be inclined to change - they'll take space, but not cause wear on subsequent updates - hopefully that won't be a problem. If packed the sizeof() the...
IIRC - yes.
ReadMe text notes: "There is an even more powerful array system."
Github name text:
Circular_Buffer
Circular Buffer/ Circular Array
Refers to 'circular array's in the function notes.
@tonton81 made this one that seems 5 years back: github.com/tonton81/Circular_Buffer
So the name is well used ...
Circular_Buffer
This is pretty much an advanced version of a circular buffer that follows the STL...
T_4.x will connect at the faster of 12 or 480 Mbps as the Host allows.
AFAIK the baud rate request - ignored by Teensy - is for the host to sync when the device is limited by something like a USB/UART chip.
...
@jmarsh - good mention - did some test with that MTPDRIVE in early days long ago (predates this 2 year old computer so not installed to ref). It seemed to work - but MTP code was way early then.