Meanwhile, I think, the problem comes from using 'real threads', via TeensyThreads:
- not doing so, all done inside loop() (even tricky to make all sub-functions non-blocking there) - it seems to work fine
My TFTP...
I found the ELF in C:/users/<user>/AppData/Local/Temp/arduino=sketch-B8......
But I do not have "addr2line" (launched on command line).
And I saw now new crash report (after few minutes):
> CrashReport:
A...
Cool, not knowing this feature.
I have added and a new run (after flashing and run again) gives me this:
CrashReport:
A problem occurred at (system time) 18:28:2
Code was executing from address 0x1B838
...
"rrrrr" - I could cry:
running 2x AsyncWebServer plus TFTP server - it works fine for approx. half an hour, maximum one hour.
The CPU resets after while. (I hear the disconnect on USB and I see it has booted by...
I think it is not true: AsyncWebServer seems to use/need QNEthernet:
https://github.com/khoih-prog/AsyncWebServer_Teensy41
It does not work without to include "QNEthernet.h" (compile errors).
It needs this:
...
Thank you all.
Changing to QNEthernet and using AsyncWebServer works much better (two web browsers connected to Teensy).
TFTP needs a modification to use with QNEthernet.
And TFTP runs in parallel with the two web...
with the Mutex::Lock around I get now this (on my UART console):
now "SendErr: -20"
> ipaddr
IP address: 192.168.0.196
> new client
XXXX: 0
client disconnected
I use #include <NativeEthernet.h>
I am sure, client connection handling is correct (for one server): I see "new client" and "client disconnected" in pairs, one server runs forever fine.
(both servers send HTTP...
I have one ETH server (for Web Browser, as HTTPD server) running. - Fine
I want to add a second, similar ETH server, but with TCP port 8080.
I have added code and I have two instances of server:
EthernetServer...
Is there anybody out there using the Teensy 4.1 board with "native code", e.g. using NXP MCUXpresso
(or VSMicro)?
The Arduino IDE drives me crazy (it gets so slow during the day, no fun to use).
And the LIBs (and...
Have you realized that it is almost impossible to modify the SPI clock during runtime?
I have a command on UART shell which should change the SPI clock for next SPI transactions.
Not so easy as you might think:
1....
I want to make it possible to unplug and SD card in a "safe way".
So, I want to de-initialize SD card, so that I can remove SD card (when system is running).
But there is nothing !!!! to disable SD card, after I...
I use Teensy 4.1 with Arduino IDE (2.1).
During the day it become sooooooo slow!!!
I had to disable the compile verbose output (it lacks so much behind!!! and I had to wait minutes just to see the final result of...
When you are looking (like me) for a SPI Slave implementation on Teensy 4.1...
(all the code provided by PJRC, Arduino, looking in Internet says: "just SPI master is supported")
Based on tonton81's approach:...
I am familiar with serial and parallel line terminations, impedance issues, ringing, signal integrity etc.
Even for using LVDS (with line drivers, using a twisted pair CAT5 cable - I did on other setups - it results...
A bit of progress:
1. I would need also a SPI Tx running in DMA mode (as asynchronous, not blocking the receiver. Rx complete is the criteria).
This works already (thanks to TsyDMASPI)" I can generate SPI in DMA...
Hi MarkT,
I know, SPI is synchronous and cable length matters.
The issue comes with "synchronous": it means: the SPI Rx uses the same MCU internal SPI clock to sample the MISO line.
So, any delay on external, e.g....
Teensy 4.1 SPI (as master) works fine (signals come out).
I have read: "only SPI master is supported".
But I would need also a second SPI as SPI slave.
Does anybody have a SPI slave implementation (at best with...
I have used and want to use this VisualMicro (Visual Studio based IDE, "vMicro").
Very simple examples are working (just using the "core" features).
But when I try to build a sketch (project) using external code (or...
Have you realized?:
when you run the WebServer.ino example and you want to print an incrementing counter for every request (continuously via refresh),
the counter jumps always by TWO!
Why?
Default is to send TWO...