Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: manitou

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. ask and answered (maybe) see...

    ask and answered (maybe) see https://forum.pjrc.com/threads/58000-MacOS-10-15-Catalina
  2. Replies
    2
    Views
    68

    Yep, read the T4 reference manual ch 65 (ADC),...

    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...
  3. Replies
    11
    Views
    212

    it's possible that lsof -i might provide clues or...

    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
  4. It compiles for me on T3.2 if I change...

    It compiles for me on T3.2 if I change timer_callback stuff in SimpleTimer.h to just

    typedef void (*timer_callback)();

    (e.g., get rid of std option)
  5. Replies
    20
    Views
    358

    maybe try increasing counter limit in...

    maybe try increasing counter limit in waitForSPI() in sparkfun driver.

    could also experiment with running T4 @120mhz (IDE config option)
  6. Replies
    3
    Views
    142

    from the giant T4 beta test thread:...

    from the giant T4 beta test thread: https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=208333&viewfull=1#post208333
  7. We've been bitten before by improper address or...

    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...
  8. Replies
    8
    Views
    247

    In January, I successfully ran OneWire lib ...

    In January, I successfully ran OneWire lib example with DS18B20 attached to T4
  9. Replies
    2
    Views
    137

    The audio lib has some examples of FFT and analog...

    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...
  10. Not that T4 needs any more PWM options, but i do...

    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/ ...
  11. Replies
    100
    Views
    3,205

    did a quick test on your github local fork. ...

    did a quick test on your github local fork. works for me :D
  12. Replies
    100
    Views
    3,205

    @mjs513 @KurtE Using your latest zip from this...

    @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...
  13. Replies
    100
    Views
    3,205

    You could fix framepin support. In my test...

    You could fix framepin support. In my test sketch, I just used digitalWrite/digitalRead to implement framepin....
  14. Replies
    100
    Views
    3,205

    Just for the record, NXP discussion...

    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.
  15. Replies
    100
    Views
    3,205

    maybe try *(portConfigRegister(rxPin)) = 1 | 0x10;

    maybe try *(portConfigRegister(rxPin)) = 1 | 0x10;
  16. Replies
    100
    Views
    3,205

    Re: daisy register I was lucky in my QTIMER ...

    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...
  17. Replies
    100
    Views
    3,205

    Re: TMR_CTRL_SCS(2) I looked at...

    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...
  18. Replies
    100
    Views
    3,205

    FWIW, i added framePin support to my hack ...

    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...
  19. Replies
    100
    Views
    3,205

    SCTRL is the capture interrupt, only used by PPM...

    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...
  20. Replies
    100
    Views
    3,205

    I don't think it will affect what you are seeing,...

    I don't think it will affect what you are seeing, but upon further review, i think the Input pulse buffer logic and buffer sizes are OK
  21. Replies
    100
    Views
    3,205

    Just a visual inspection, in Input begin() 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...
  22. As noted in...

    As noted in https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test, FreqMeasureMulti has NOT been ported to Teensy 4.
  23. Replies
    100
    Views
    3,205

    Re: PulsePosition.h Unless you changed...

    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[PULSEPOSITION_MAXCHANNELS+1];
    ...
  24. Replies
    100
    Views
    3,205

    this fixes pin 6 and 9, change

    this fixes pin 6 and 9, change <= to == :) so it reads

    } else if(txPin == 14 || txPin == 15 || txPin == 18 || txPin == 19) {
  25. Replies
    100
    Views
    3,205

    OK, confirmed with scope your zip file works on...

    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...
  26. Replies
    24
    Views
    522

    Can you confirm that for 4.507W you were getting...

    Can you confirm that for 4.507W you were getting 65024? I was hoping for my theory that value would be 64768
  27. Replies
    100
    Views
    3,205

    Excellent. There are 10 quadtimer pins on T4. ...

    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...
  28. Re: T4 PulsePosition see proof-of-concept...

    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
  29. Replies
    100
    Views
    3,205

    Sketch in previous post is working now with T3.2...

    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 ...
  30. Replies
    100
    Views
    3,205

    Here is a T4 quadtimer sketch that emits PPM...

    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...
  31. There are some T4 example sketches in...

    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, ...)
  32. Replies
    100
    Views
    3,205

    I have a proof of concept sketch for PPM input...

    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...
  33. It is not ported to T4 yet. It's on Paul's TODO...

    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
    ...
  34. Replies
    3
    Views
    114

    for T3* boards most register symbols are defined...

    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...
  35. Replies
    3
    Views
    121

    This sketch works for me. void setup() { ...

    This sketch works for me.

    void setup() {
    pinMode(0, INPUT_PULLUP);
    pinMode(1, INPUT_PULLUP);

    long unsigned startTime = millis ();
    while (!Serial && ((millis () - startTime) <=...
  36. Replies
    290
    Views
    4,032

    One of the reasons T4 was faster than T3.6 is...

    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...
  37. Replies
    1
    Views
    106

    at the end of setup add g_UDP.begin(8888); 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
  38. Replies
    421
    Views
    85,904

    Teensy 4 timeslice 5 ms? bug or feature? With...

    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...
  39. Replies
    290
    Views
    4,032

    No threads. I disabled TCP threads in the T4...

    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...
  40. Replies
    31
    Views
    477

    T4 FreqCount uses pin 9 -- see lib example...

    T4 FreqCount uses pin 9 -- see lib example Serial_Output_T4.ino
  41. Replies
    290
    Views
    4,032

    I haven't tried static IP yet. The two dongles...

    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...
  42. Replies
    290
    Views
    4,032

    For the T3.6, I reduced the heap to 64K and then...

    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...
  43. https://forum.pjrc.com/threads/54711-Teensy-4-0-Fi...

    https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=194245&viewfull=1#post194245
  44. Replies
    290
    Views
    4,032

    Thanks. I'm familiar with the BSD socket API...

    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....
  45. Replies
    290
    Views
    4,032

    Here are some results of tests I did on T4@600mhz...

    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...
  46. Replies
    290
    Views
    4,032

    just starting to experiment. cloned latest from...

    just starting to experiment. cloned latest from github. example compiles OK for T4, but fails for T3.6 (1.8.10 1.48)
    ...
  47. Replies
    8
    Views
    395

    A fool's errand, I fear. My recall of such...

    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...
  48. Replies
    7
    Views
    255

    FWIW, the NXP SDK for the 1060 has an I2C slave...

    FWIW, the NXP SDK for the 1060 has an I2C slave example
    boards/evkmimxrt1060/driver_examples/lpi2c/interrupt_b2b_transfer/slave/
  49. Replies
    11
    Views
    367

    I experimented with "optimization changes" to...

    I experimented with "optimization changes" to hardware/teensy/avr/cores/teensy4/eeprom.c while compiling with Optimize Smallest Code.

    adding #pragma GCC optimize ("O2") to the front of eeprom.c...
  50. Replies
    11
    Views
    367

    BUT wait ... I have a sketch that prints out T4...

    BUT wait ... I have a sketch that prints out T4 EEPROM meta data https://github.com/manitou48/teensy4/blob/master/eeprom_meta.ino

    I now recall that if the EEPROM data to be written matches what's...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4