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. Replies
    12
    Views
    241

    Run the TimeTeensy3 example from the IDE (File >...

    Run the TimeTeensy3 example from the IDE (File > Examples > Time > TimeTeensy3), then from your linux command line (bash) do

    TZ_adjust=-4; echo T$(($(date +%s)+60*60*$TZ_adjust)) > /dev/ttyACM0
    ...
  2. Replies
    98
    Views
    9,056

    Updates for 1.54? fix T3/T4 randomSeed()...

    Updates for 1.54?

    fix T3/T4 randomSeed()

    add T4 slow PWM
  3. Ah, many thanks. For the last few years I've...

    Ah, many thanks. For the last few years I've wondered why I couldn't get teensy-USB audio to play on my Ubuntu boxes. Now all is good. :D
  4. Replies
    41
    Views
    2,579

    Yay! SCK to GND solved it! The two...

    Yay! SCK to GND solved it! The two raspberry pi forum articles I had both had SCK unconnected. sigh. many thanks
  5. Replies
    41
    Views
    2,579

    I have tried 3v3 and 5v, and behavior is the...

    I have tried 3v3 and 5v, and behavior is the same. I even tried DC power jack on ZERO instead of USB power. Still misbehaves.
  6. Replies
    41
    Views
    2,579

    EE help needed for I2S DAC. I have...

    EE help needed for I2S DAC.

    I have successfully tested adafruit I2S DAC UDA1334A, with Teeeny 3.2/3.6/4.0 and Arduino ZERO. Tested sine wave with ear-buds and scope to DAC line out. DAC is wired...
  7. as my example shows (and the reference manual...

    as my example shows (and the reference manual dictates), you must "set" the status bit to clear it.
  8. you need to clear the interrupt flag in the ISR,...

    you need to clear the interrupt flag in the ISR, otherwise the interrupt will fire again as soon as you exit the ISR ... the black hole. you also need asm volatile ("dsb"); in the isr to keep ISR...
  9. The pins that T4 GPT uses are defined in table...

    The pins that T4 GPT uses are defined in table 52-2 of the reference manual. Look at the T4.0 and T4.1 schematics to determine which pins are actually available for the teensy PCBs. You'll need...
  10. Replies
    205
    Views
    15,603

    Using rpi pico...

    Using rpi pico, I've run some circuitpython/micropython tests and run a few C benchmarks via cmake and SDK (-O3 gcc 6.3.1). Here are some coremark plots
    24366
    24162
    Compile options...
  11. Replies
    5
    Views
    271

    The T4 configures the GPT and PIT to clock at...

    The T4 configures the GPT and PIT to clock at 24mhz, if you configure for 150mhz it will break the interval timer (PIT). here is example of GPT running at 150mhz...
  12. Replies
    205
    Views
    15,603

    thanks. did the program report the CPU clock...

    thanks. did the program report the CPU clock speed (clk_sys)? 125mhz?
  13. Replies
    205
    Views
    15,603

    in the SDK there are multicore examples,...

    in the SDK there are multicore examples, pico-examples/multicore/
    I don't have a pico yet, so I haven't tried any thing except some compiles.

    attached is a UF2 of coremark for pico ... anyone...
  14. Replies
    47
    Views
    5,130

    Thanks! Not a lot of variation in dop values, ...

    Thanks! Not a lot of variation in dop values, maybe needs two decimal places. Here is data for 3 different GPS units with external antenna.

    Adafruit ultimate, 1 constellation
    GPS Strong...
  15. Replies
    10
    Views
    459

    OK, I confirmed NativeEthernet lib supports UDP...

    OK, I confirmed NativeEthernet lib supports UDP BROADCAST by using local networks broadcast IP adddress, e.g. 192.168.1.255. target MAC address on packet is 0xffffffffffff


    IPAddress...
  16. Replies
    10
    Views
    459

    Usually, for UDP broadcast you use the the...

    Usually, for UDP broadcast you use the the broadcast IP address of your local subnet. For my home network destination UDP broadcast IP would be 192.168.1.255 (the 255 is the broadcast address for...
  17. Another thread ...

    Another thread https://forum.pjrc.com/threads/61581-Teensy-4-1-NTP-server discusses using a PID controller and GPS to discipline T4.1 clock/time. As usual changing temperature is the dominant...
  18. Replies
    10
    Views
    459

    multicast is more local-network-friendly than...

    multicast is more local-network-friendly than sending broadcasts to EVERY machine on your local ethernet. Here is sketch for wiznet but you can change the includes to use NativeEthernet....
  19. I haven't tested teensy to teensy, but I have...

    I haven't tested teensy to teensy, but I have tested T4.1 to/from linux over 100mbs wired ethernet. The linux box sends 40 1000-byte UDP packets at 97mbs and T41 receives all 40 packets at 94...
  20. Replies
    10
    Views
    462

    I had problems loosing GPS lock when powering up...

    I had problems loosing GPS lock when powering up T4.1+ethernet and using an Adafruit ultimate GPS. I finally bought an external antenna and placed the antenna on windowsill. see thread ...
  21. Replies
    47
    Views
    5,130

    Maybe not. the multiple satellites are from...

    Maybe not. the multiple satellites are from different constellations, i think the gps solution probably uses no more than 12 satellites, though it's able to choose from a larger collection of...
  22. Replies
    47
    Views
    5,130

    Nice. Here is graphic data from T4.1 connected...

    Nice. Here is graphic data from T4.1 connected to sparkfun GNSS NEO-M9N with external antenna mounted on windowsill. M9N can use up to 4 constellations (GPS, GLONASS, Galileo, BEIDOU).
    23409...
  23. Replies
    15
    Views
    869

    Earlier posts on light-sensing with LED,...

    Earlier posts on light-sensing with LED,
    https://forum.pjrc.com/threads/40001-LED-as-a-light-sensor...
  24. Replies
    7
    Views
    427

    here is example of "slow PWM" for Teensy4 using...

    here is example of "slow PWM" for Teensy4 using XBAR https://github.com/manitou48/teensy4/blob/master/qtmrxpwm.ino
    discussed in...
  25. Replies
    12
    Views
    1,068

    I ran your 3 timer sketch, feeding pins with...

    I ran your 3 timer sketch, feeding pins with 10khz from analogWrite() on pin 8. The low order digits from the three counters seem to match


    29433
    29433
    29433

    31433
    31433
    31433
  26. Replies
    12
    Views
    1,068

    The teensy core uses TMR1 CH0 for PWM, so it...

    The teensy core uses TMR1 CH0 for PWM, so it pre-configures some of the registers. You need to clear a couple more registers, try adding line in RED

    ...
    TMR1->CH[0].CTRL = 0; ...
  27. You could define BMP3XX_DEBUG in the...

    You could define BMP3XX_DEBUG in the Adafruit_BMP3XX library, and it should print out progress in performReading() that might help you locate the problem. Since the Teensy 4 is so fast you might...
  28. Replies
    5
    Views
    421

    In DCP_HASH_Update() change declaration line to...

    In DCP_HASH_Update() change declaration line to read: size_t blockSize = DCP_HASH_BLOCK_SIZE;
    and for test string of 64 bytes sketch returns 241003f8

    (github updated)
  29. Replies
    5
    Views
    421

    The T4 hardware CRC is very limited, 32-bit fixed...

    The T4 hardware CRC is very limited, 32-bit fixed polynomial. It also has the flaw that input must be multiple of 4 bytes (it willl pad with nulls, if not), see...
  30. FWIW, some GPSDO discussion and temperature...

    FWIW, some GPSDO discussion and temperature issues in disciplining a T4 clock https://forum.pjrc.com/threads/61581-Teensy-4-1-NTP-server

    As a proof of concept, here is a sketch that uses an...
  31. Replies
    24
    Views
    1,171

    yes, as referenced in post #13. I did not change...

    yes, as referenced in post #13. I did not change NUM_LEDS in either torch.ino (240) or torchframe.ino (378)
  32. Replies
    24
    Views
    1,171

    I've run both the torchframe sketch and the...

    I've run both the torchframe sketch and the torch sketch (github), with 8-LED stick on pin 11 of T3.2. I have nothing else connected (no buttons, no IR receiver, nothing on A0 and A1). The torch...
  33. Replies
    24
    Views
    1,171

    How about trying the simple FastLED bllink...

    How about trying the simple FastLED bllink example, testing with various values for NUM_LEDS. Following works for me with 8-LED neopixel stick on pin 11 with 3.3v and GND from T3.2.

    #include...
  34. Replies
    4
    Views
    409

    I have seen this problem on older sketches. I...

    I have seen this problem on older sketches. I just ran your sketch on my T3.2 1.8.13/1.53 on Ubuntu 18.04 and it hangs after printing 516. If I add while(!Serial); after Serial.begin(), the...
  35. Replies
    834
    Views
    34,784

    just for the record, a while back (see old thread...

    just for the record, a while back (see old thread), I managed to get adafruit's FatFs lib to work on SPI flash on Teensy prop shield with Teensy 3.2.

    http://elm-chan.org/fsw/ff/00index_e.html ...
  36. Replies
    6
    Views
    575

    Your sketch actually runs (not connected to...

    Your sketch actually runs (not connected to anything) on a T3.2. It will also run on T4.0 (nothing connected) if you correct the fatal flaw

    int flow1state = WireWrite(0, addr1, 0); // check...
  37. Replies
    13
    Views
    1,969

    Best practice warning. When setting a variable...

    Best practice warning. When setting a variable in an ISR that is referenced elsewhere, you need to declare the variable volatile so the compiler can handle asynchronous updates.
    volatile unsigned...
  38. Replies
    6
    Views
    575

    The usual Wire protocol for Wire read is after...

    The usual Wire protocol for Wire read is after you issue Wire.requestFrom() you then use Wire.available() before Wire.read(). maybe look at some Arduino I2C examples ....
  39. Replies
    13
    Views
    1,969

    as noted in post #4 PulsePosition lib...

    as noted in post #4 PulsePosition lib demonstrates how to use FTM0 to capture pin input with 32-bit count.

    Another example derived from Teensy LC timer 32-bit capture on pin 20:...
  40. Replies
    34
    Views
    3,619

    I've briefly played with the sparkfun M4/SAMD51...

    I've briefly played with the sparkfun M4/SAMD51 micromod processor board and the ATP carrier board. The M4 board has the SPI flash on the underside. I assume the Teensy 4 micromod board will have...
  41. Both paths are based on the same 24MHz crystal. ...

    Both paths are based on the same 24MHz crystal. My original sketch in post #4 uses CLKSRC(1) to reference the 24 mhz clock. If you want to use CLKSRC(5) for 24mhz, then you must enable the 150MHZ...
  42. yep, the example runs GPT2 @24mhz. You can...

    yep, the example runs GPT2 @24mhz. You can configure GPT to 150MHz for CLKSRC(1) by adding
    CCM_CSCMR1 &= ~CCM_CSCMR1_PERCLK_CLK_SEL; // turn off 24mhz mode
    in setup() before line CCM_CCGR0 |=...
  43. try...

    try https://github.com/manitou48/teensy4/blob/master/gpt_capture62.ino
    GPT2 capture on pin 15
  44. Replies
    117
    Views
    22,830

    Thanks for adding DCache support. I added T4 v6...

    Thanks for adding DCache support. I added T4 v6 lines to benchmarks in post #14. Some tests are faster than v5 dcache-hack, some are slower.
  45. Replies
    8
    Views
    764

    Here are two proof-of-concept sketches clocking...

    Here are two proof-of-concept sketches clocking GPT timers from external clock.
    https://github.com/manitou48/teensy4/blob/master/gpt_count.ino GPT1...
  46. Replies
    9
    Views
    816

    You might try updating to the latest IDE. On my...

    You might try updating to the latest IDE. On my T3.2 I ran PulsePosition lib loopback example with pin 9 jumpered to pin 10. I also added while(!Serial); as the first thing in setup(). Sketch...
  47. Replies
    7
    Views
    3,684

    For me, T4@150mhz and SPI @4mhz, my scope still...

    For me, T4@150mhz and SPI @4mhz, my scope still sees 4 mhz on pin 13 (nothing connected to SPI pins except scope to pin 13). As KurtE noted, T4 SPI clock is independent of MCU clock.
  48. Replies
    7
    Views
    3,684

    So what does your logic analyzer report for the...

    So what does your logic analyzer report for the SPI clock rate when your beginTrasaction() sets clock to 4mhz?

    if i run your SPI transfers, scope on SPI CLK (pin 13) shows 4 mhz clock for various...
  49. Replies
    17
    Views
    1,380

    OK, I ran deepsleep/button_hold_wakeup sketch on...

    OK, I ran deepsleep/button_hold_wakeup sketch on my LC. As noted in post #13 sketch did not come out of deepsleep when pin 7 was grounded. I don't pretend to understand much of the LC snooze logic,...
  50. Replies
    13
    Views
    1,183

    Re: lightweight printf You might grab the...

    Re: lightweight printf

    You might grab the ee_printf() from Paul's CoreMark (which works on LC)
    https://github.com/PaulStoffregen/CoreMark

    another ee_printf variation that works on LC from...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4