You will have to add the wrapper to support CBC mode (initialization vector and chaining) and maybe worry about paddding if you need to be compatible with other crypto libraries.
The NXP SDK can be configured with...
your logic around the file.open() is flawed. You only would set count = 1 if the open() failed! so count is never set to 1, and all your dologger() does is open the file then close the file. Your flawed logic doesn't...
Re: mini-gmp
I just copied the .c and .h files from https://github.com/Cl3Kener/gmp/tree/master/mini-gmp into my sketch folder and was able to compile and run various big-integer tests. Big number arithmetic is the...
Yep, read the T4 reference manual ch 65 (ADC), only 8, 10, 12 bit are supported -- also view core source at hardware/teensy/avr/cores/teensy4/analog.c
Paul has warned that maybe only 10 bits are good, see...
it's possible that lsof -i might provide clues or dtruss (like linux strace)
as others noted, it sounds like some sort of firewall is preventing "local" TCP connections
We've been bitten before by improper address or offset in Include files. I assume you've reviewed the flexio addresses, names, offsets in the include files ... 269 FLEXIO 's in imxrt.h! Hoping the reference manual...
The audio lib has some examples of FFT and analog input. Here is a slightly messy sketch that samples (44.1khz) mic input on Teensy A2 and runs fft1024 and displays FFT cells on tiny OLED (SPI or I2C version). The...
Not that T4 needs any more PWM options, but i do have a simple flexio sketch that does PWM
https://github.com/manitou48/teensy4/blob/master/flexiopwm.ino
NXP SDK has flexio examples for i2c/ i2s/ pwm/ spi/ uart/
@mjs513 @KurtE
Using your latest zip from this thread, I ran various tests with T4 loopback and data from T3.2 PulsePosition. All looks good. Impressive work managing all the ISRs!!
Re: down counting and overflow...
You could fix framepin support. In my test sketch, I just used digitalWrite/digitalRead to implement framepin.
https://forum.pjrc.com/threads/57894-Teensyduino-1-48-Beta-3?p=220044&viewfull=1#post220044
Just for the record, NXP discussion confirms bug in quad timer overflow interrupt -- though it does fire if counting down. Should be documented in latest errata.
Re: daisy register
I was lucky in my QTIMER proof-of-concepts, i just tried pins 11 and 6 and didn't stumble on a daisy register. However, in the last few days I've been playing with eflexPWM timers to do PPM input...
Re: TMR_CTRL_SCS(2)
I looked at TMR_CTRL_SCS(2) last night and decided it was harmless, but I just removed it, and input doesn't work. So that value needs to match the channel of the timer for the T4 pin you've...
FWIW, i added framePin support to my hack ppmoutq.ino. updated github.
https://github.com/manitou48/teensy4/blob/master/ppmoutq.ino
tested on scope with pin 2 as framePin. scope output looks the same as T3.2...
SCTRL is the capture interrupt, only used by PPM in
CSCTRL is the compare interrupt used by PPM out AND used by PPM In to count rollovers of timer for 32-bit count. That was my concern in post #30 where if you...
Just a visual inspection, in Input begin() you need
write_index = 255;
available_flag = false;
In my hack, i had those in setup() .... ugly
but you might also compare your code to Paul's PulsePosition code.
...
Re: PulsePosition.h
Unless you changed additional logic, based on Paul's PulsePosition.h, you need +1 in your pulse vector dimensions
uint32_t pulse_width;
uint32_t pulse_buffer;
element contains long...
OK, confirmed with scope your zip file works on pin 12 and does NOT work on pin 6.
i modified another quadtimer test sketch i had to use pin 6, i got PWM working on pin 6 using QT4_1 -- so hardware works.
quick visual...
Excellent. There are 10 quadtimer pins on T4. One problem requiring additional logic with both quadtimer PPM out and in in the same lib is that I never could get quadtimer Overflow interrupt to work (??). Counter in...
Re: T4 PulsePosition
see proof-of-concept sketches and discussion at
https://forum.pjrc.com/threads/57894-Teensyduino-1-48-Beta-3?p=219681&viewfull=1#post219681
Sketch in previous post is working now with T3.2 PulsePosition example. I updated github. I'll let others test and weave logic in to PulsePosition lib ...
Here is a T4 quadtimer sketch that emits PPM pulses like the example in PulsePosition lib.
https://github.com/manitou48/teensy4/blob/master/ppmoutq.ino
Much of the logic is lifted from PulsePostion lib. Polarity can...
There are some T4 example sketches in https://github.com/manitou48/teensy4
gpt_pwm.ino sets up GPT compare registers. There are other GPT examples (capture, external clock, ...)
I have a proof of concept sketch for PPM input portion of PulsePosition for the T4 using quad timer, see
https://github.com/manitou48/teensy4/blob/master/ppminq.ino
This was based on earlier sketch/discussion that...
It is not ported to T4 yet. It's on Paul's TODO list. But you are welcome to port it yourself.
https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=193717&viewfull=1#post193717
...
for T3* boards most register symbols are defined in hardware/teensy/avr/cores/teensy3/kinetis.h
#define CMT_PPS (*(volatile uint8_t *)0x4006200A) // CMT Primary Prescaler Register
so all you have to do is reference...
One of the reasons T4 was faster than T3.6 is that T4 TeensyThreads was using a 5 ms timeslice -- Teensy 3* boards run with a 10 ms threads timeslice. The T4 5 ms timeslice was a bug, see...
at the end of setup add g_UDP.begin(8888);
see https://www.arduino.cc/en/Reference/EthernetUDPBegin
try/study one of the UDP examples in the Ethernet library
Teensy 4 timeslice 5 ms? bug or feature?
With scope I notice Teensy 3* has thread timeslice of 10 ms, but Teensy 4 has 5 ms timeslice?
I think the problem is that the T4 GPT isr will fire twice unless you have...
No threads. I disabled TCP threads in the T4 network bench example (added a T4nt column in table in post #264). Performance numbers improved for everything except TCP receive (further study needed). Although the...
I haven't tried static IP yet. The two dongles should talk to each other -- I don't know if you could wire them to each other. Try it first with them hooked to a switch/router.
The benchmark example should work...
For the T3.6, I reduced the heap to 64K and then I could use 32KB buffers for TCP. With 8 KB buffers TCP was only getting 5mbs, with 32KB buffers TCP now transfers at 19 mbs on T3.6 -- still not as fast as T4. I...
Thanks. I'm familiar with the BSD socket API (all of my linux/macos/cygwin network tools are based on BSD sockets). The FNET src/service/bench/ code has examples of most of the TCP/UDP socket calls. The FNET details...
Here are some results of tests I did on T4@600mhz and T3.6@180mhz with the amazon USB Ethernet dongle. Tests are with linux/mac boxes and windows (fbench and cygwin programs) on a 100T local area network. I'm running...
A fool's errand, I fear. My recall of such clusters is that they are unix-based and utilize a local-area network (e.g. TCP/IP on ethernet). There is not a unix for T4, and the current T4 has no native Ethernet...