Understood - p#1 suggested USB and other things working and p#2 was to suggest USB isn't trivial code as Paul has noted it was a big dev task.
Pointing out there isn't a known boilerplate solution...
Type: Posts; User: defragster
Understood - p#1 suggested USB and other things working and p#2 was to suggest USB isn't trivial code as Paul has noted it was a big dev task.
Pointing out there isn't a known boilerplate solution...
-0s doesn't disable floating point math, functions, instruction or calculations - just the formatting code for printing.
Looking at: ...\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\boards.txt
It shows these lines that seem to match the indicated for compiling and linking commands in boards.txt (for...
If programmed with simple BLINK (No USBHost activation) does anything still get hot? If no hot spots when no USBHost it might point to that switch chip being trashed - and self heating rather than...
Interesting point. @MichaelMeissner worked in that world - I mistook it for a subset of LTO options.
Great news if the code builds/uploads and runs as expected. Until recent TeensyDuino update (1.59 Beta?) the use of LTO was not functional.
Seeing notes on results or modifications to the build...
Followed that and see: #define LFS_VERSION 0x00020004
Here at line #25: github.com/lorol/LITTLEFS/blob/master/src/lfs.h
The integrated to ESP32 version of LittleFS seems to be using the same on...
Not sure about the chip and what could stress it beyond over voltage. AFAIK it is a switch that controls current flow on startup to conform to USB spec and prevent VIN from a surge that would...
as for The Common Microcontroller Software Interface Standard (CMSIS) is a vendor-independent abstraction layer for microcontrollers that are based on Arm Cortex processors.
Web search shows:...
Install TeensyDuino in the IDE (paths below on Windows). This provides the gcc toolchain and all the needed header and processor startup code for void ResetHandler(void) that calls main().
See this...
LittleFS as included was customized to Teensy usage (hardware pin access interface to storage media) from a common source at some version ##.
Using the same source for one that supports ESP32...
Have used USB Host here direct and with powered hub - never on batteries and have not seen this on T_4.0 or T_4.1.
There is a chip onboard that switches the power pin on the USB Host and feeds...
Just did that to post and it gave build error so posted that ... Seems to have built and worked fine but some linkage to altered file location is missed and triggered 'error'.
So that should give...
@PaulStoffregen - when build of sketch Export it seems the updated path may not be used at some point?
Did the Sketch/Export on Windows and got this that worked as expected - first time tried and...
Not saying mutex interaction can't cause trouble ... just that the by design Threads won't switch during normal interrupts that default to mid level PRI.
UART code is fed by interrupts which would...
Just looked - seems this is #ifndef __IMXRT1062__:
IntervalTimer context_timer;
...
/*
* Implementation strategy suggested by @tni in Teensy Forums; see
*...
Didn't check, but wondered what priority TeensyThreads uses for what is assumed an interrupt for task switching? If that were lower, then higher PRI interrupt code would be safe to complete and exit....
simple "int func()" here the other day was CrashReport'ing when it had no 'return intX;' - didn't see the build warning for far too long ...
Used the addr2line that was on the computer that used...
yeah - the breakout socket re-routed for T_4.0 to have audio with Rev B/C was ... 'unique'
Either of these should work. From: ...\libraries\LittleFS\examples\Test_Integrity\QSPI\functions.ino
case 'F': // Low Level format
Serial.print( "\nFormatting Low Level:\n\t" );...
Good to know. The Hack showed it wasn't as 'hoped' the same underlying buffer used for IP-based TCP.
Is there a solution to the p#12 lost/delayed TCP data? Or is that the nature of TCP that items...
Seems like it should, Yes. Per the notes left above it might reduce overhead of TCP and quick testing shows no problem sending 28 bytes in 10us from one and received fine on another Teensy.
Seems...
Indeed forum search can be lame - when it doesn't work. Though with usable keywords - as in this case - it did find and narrow well enough.
I use BING and have the browser do site ref when it...
If the scanner was set up to use UDP? then using that would be an option. Seem that TCP messages still being used?
As for how to use the '.setReceiveQueueSize' - that just came up in a text search...
Using the UDP the default queueSize had to be increased that was with:
// UDP port.
EthernetUDP udp(32); // (##)-packet buffer allocate for incoming messages
Looking at:...
recalled and found this thread: pjrc.com/threads/68148-Teensy-4-x-RTC-battery-life?p=294269&viewfull=1#post294269
Search that worked was: RTC Battery Life
Stored here: github.com/KurtE/TeensyDocuments
In IDE 2.1.0 w/TD 1.58.1 here Plugged a T_4.0 with a 64GB ADATA 'A2' card in the REV D Audio Card [ Never got an R2 here ]
Using unedited p#1 code it ran first time:
SD Card Test
------------...
Quick guess: The passed pointer is saved at time of .addThread( ..., TEMP). So subsequent calls to blinkLed() are pointing to that space on the stack that was in use during setup().
Make " ...
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...
Yes this code will stop for writes:
void loop()
{
..
if(active == true)
{
logData();
...
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?...
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...
... Missed again ... ???
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?...
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,...
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...
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...
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,...
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...
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...
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...
Agreed - but it has an integrated T_4.1 on the PCB so it must be quite something ....
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...
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.
Just saw this post linking to an example for logging ...
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...