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
    6
    Views
    962

    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:...
  2. Replies
    25
    Views
    705

    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...
  3. 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...
  4. 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 |=...
  5. try...

    try https://github.com/manitou48/teensy4/blob/master/gpt_capture62.ino
    GPT2 capture on pin 15
  6. Replies
    113
    Views
    15,794

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

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

    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...
  9. Replies
    7
    Views
    1,886

    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.
  10. Replies
    7
    Views
    1,886

    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...
  11. Replies
    17
    Views
    667

    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,...
  12. Replies
    10
    Views
    510

    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...
  13. Replies
    163
    Views
    5,567

    If you read the adafruit instructions for bno055...

    If you read the adafruit instructions for bno055 https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor/pinouts
    you'll see you can set the ADR pin high to change the I2C address from...
  14. Replies
    21
    Views
    502

    Thought I'd help beat the dead horse ... I...

    Thought I'd help beat the dead horse ... I hooked up Sparkfun BNO080 to T4.1 in SPI mode (PS0 and PS1 jumpered to 3v3) and ran the SPI EulerAngles example(17) and used pin 36 for CS. I commented...
  15. With PJRC wiznet adapter (WIZ850io) and T3.2, I...

    With PJRC wiznet adapter (WIZ850io) and T3.2, I successfully ran a sketch that initialized Ether, then initialized SD and listed SD directory, then sent UDP packets to/from NTP server. Adapter was...
  16. Replies
    4
    Views
    257

    Make sure your USB cable is not just a "charging...

    Make sure your USB cable is not just a "charging cable". see https://www.pjrc.com/teensy/troubleshoot.html
  17. Replies
    1
    Views
    158

    i had a similar problem with GPS and Teensy 4.1...

    i had a similar problem with GPS and Teensy 4.1 with ethernet. GPS would work ok until Ethernet was activated. I had to use another GPS (NEO-8MU) with active external antenna on a long cable. GPS...
  18. Replies
    3
    Views
    220

    Yes, the column heading for LC says Serial1-3, so...

    Yes, the column heading for LC says Serial1-3, so table probably reports worst case. LC Serial2 and Serial3 use F_BUS. Here's perl script for UART1 and UART2 (Serial2 and Serial3)

    #!...
  19. Replies
    3
    Views
    220

    Your LC numbers look correct for Serial1 (UART0)....

    Your LC numbers look correct for Serial1 (UART0). You can also verify error by setting Serial1 baud rate and then examining the count in UART0_BDH and UART0_BDL.

    void setup() {
    ...
  20. Replies
    4
    Views
    223

    Arduino and Teensy AVR cores implement millis()...

    Arduino and Teensy AVR cores implement millis() with TIMER0, study https://github.com/PaulStoffregen/ArduinoCore-avr/blob/master/cores/arduino/wiring.c
  21. Replies
    3
    Views
    238

    here is post on T4 TRNG...

    here is post on T4 TRNG from Teensy 4 beta test thread. Post also has a link to a low-level example on github. T4 TRNG is relatively slow for a hardware RNG, 13484 us for 512 bits.
  22. Replies
    31
    Views
    2,110

    @ddrown, your isr in examples/lwip_1588_input/...

    @ddrown, your isr in examples/lwip_1588_input/ needs asm volatile ("dsb");, otherwise the ISR fires twice for each PPS.

    https://github.com/ddrown/teensy41_ethernet
  23. Replies
    9
    Views
    565

    Hmmm, the ISR function in post #7 does all three....

    Hmmm, the ISR function in post #7 does all three. ISR is equivalent to CHANGE, then in the ISR you check the status flag to see if you have rising (RF) or falling (CMPF).
  24. Replies
    9
    Views
    565

    ? "both" and "only" seem mutually exclusive?? ...

    ? "both" and "only" seem mutually exclusive?? any how, you can enable interrupt on both edges of the PWM. There is only one ISR for the interrupt so you will need to check the status flag...
  25. What version of Arduino IDE and Teensyduino are...

    What version of Arduino IDE and Teensyduino are you using? what is the error message that you are getting from the SD lib test? If you run the following sketch on your T4.1 with a uSD in the...
  26. Replies
    131
    Views
    9,402

    I re-tested my simple echo test with 2048-byte...

    I re-tested my simple echo test with 2048-byte UDP packets ... worked for me.
  27. Replies
    131
    Views
    9,402

    I have successfully sent and received UDP packets...

    I have successfully sent and received UDP packets up to 2000 bytes, so I think FNET/NativeEthernet is doing IP fragmentation. I used the following function to send to a UDP echo server.

    void...
  28. Replies
    18
    Views
    743

    The output you provide suggests the Serial...

    The output you provide suggests the Serial connection is good, but that the GPS is not getting locked in. Does GPS have an LED that flashes when GPS is locked in?
    el_supremo's sketch in post #7...
  29. Replies
    131
    Views
    9,402

    It depends on the library. You may need to...

    It depends on the library. You may need to explore the FNET lib and look for TCP_NODELAY. The BSD socket lib has a socket option for TCP_NODELAY that disables Nagle. lwIP lib has a config option...
  30. see...

    see https://forum.pjrc.com/threads/60532-Teensy-4-1-Beta-Test?p=239712&viewfull=1#post239712
  31. Replies
    15
    Views
    464

    can you provide a complete simple sketch that...

    can you provide a complete simple sketch that demonstrates the problem?? Can you try your test with the Arduino/Teensy IDE ?
  32. yes, the ELECHOUSE lib is built on the AVR SPI. ...

    yes, the ELECHOUSE lib is built on the AVR SPI. The Teensy/ARM SPI requires different logic
  33. Normally, SPI does not "hang" -- even if you have...

    Normally, SPI does not "hang" -- even if you have nothing connected to SPI pins. I would get rid of all the while(digitalRead(MISO_PIN));, 1) because the while is probably causing the hang and 2)...
  34. careful, it looks like Nextions are 5v devices. ...

    careful, it looks like Nextions are 5v devices. Teensy 4 is NOT 5v tolerant, you may need level shifters? Maybe OK if you don't hook up Nextion Tx to T4.

    edit: at least on some Nextions, the...
  35. Replies
    5
    Views
    311

    see...

    see https://forum.pjrc.com/threads/60532-Teensy-4-1-Beta-Test?p=239712&viewfull=1#post239712
  36. Replies
    131
    Views
    9,402

    you didn't provide all of your sketch, so one...

    you didn't provide all of your sketch, so one can't tell if you are using TCP or UDP. TCP has several algorithms that affect data clustering (slow-start, Nagle, delayed ACK). At start of TCP...
  37. Replies
    4
    Views
    445

    server.available() returns a pointer or NULL, not...

    server.available() returns a pointer or NULL, not a boolean, so your test should be if (client) { ....

    see examples/ in NativeEthernet lib or read more closely the URL in the previous post
  38. I hooked up Sparkfun ADXL345...

    I hooked up Sparkfun ADXL345 to T3.6 and made the speed change to the library as described in post #2, and it works for me.

    -1, -1, 31
    -1, -1, 31
    *** DOUBLE TAP ***
    *** TAP ***
    -1, -1, 31
    -2,...
  39. Thread: TeensyTransfer

    by manitou
    Replies
    140
    Views
    69,915

    when building teensytransfertool, in the IDE ...

    when building teensytransfertool, in the IDE Tools dropdown menu, you must first set USBType to Raw HID Then after build and load, windows should recognize the Raw HID device, and you can run...
  40. Those constants are for the AVR timers. For the...

    Those constants are for the AVR timers. For the Teensy timers you'll need to mess with pinouts/Teensy_KinetisK20.h
  41. Replies
    4
    Views
    445

    ping should work, you may need to configure...

    ping should work, you may need to configure netmask and broadcast and router IP. also your .Net example uses port 20, but WebServer will be on port 80
  42. Replies
    56
    Views
    23,352

    Re: slow PWM As Paul noted, one can use...

    Re: slow PWM

    As Paul noted, one can use EXT_CLK via XBAR to flexpwm timers to get a slower clock. Here is a proof-of-concept sketch using quad-timer to provide a 10khz clock via XBAR to flexpwm...
  43. @Vucko, as Kurt suggests, photos of your...

    @Vucko, as Kurt suggests, photos of your wiring/soldering etc. would be beneficial.

    Other things to try:
    Add while(!Serial); after Serial.begin(9600); (I don't have ADXL345, so with nothing...
  44. I'm not sure Ethernet is the way to go to get ...

    I'm not sure Ethernet is the way to go to get 1 us control of your slaves. Any way to have digital connections from master to each of the slaves?

    T4.1 does support PTP, see...
  45. Replies
    56
    Views
    23,352

    Re: slow PWM with GPT I think you can run the...

    Re: slow PWM with GPT

    I think you can run the T4 GPT timer at low PWM frequency. The compare register is 32 bits so you should be able to get below 1 hz. I think you can only do 50% duty and the...
  46. Replies
    4
    Views
    232

    As Kurt noted, you get a bad ptr value if there...

    As Kurt noted, you get a bad ptr value if there is no ' '. To keep from faulting on bad ptr, replace ptr = strchr(ptr, ' ') + 1; with

    ptr = strchr(ptr, ' ');
    if (ptr == NULL ) {
    ...
  47. Replies
    9
    Views
    565

    The T4 PWM timers can interrupt on period start...

    The T4 PWM timers can interrupt on period start and on "falling edge of the PWM output". Here is a simple sketch using flexpwm (ref ch 55) on T4 pin 8. Pin 13 is toggled on the falling PWM edge in...
  48. Replies
    131
    Views
    9,402

    Well, I did some more tests and had inconsistent...

    Well, I did some more tests and had inconsistent results. It turned out I had two Udp.begin() in setup(). I fixed that and cloned in the latest FNET and NativeEthernet. Now UDP echo only works if...
  49. Replies
    131
    Views
    9,402

    I couldn't reproduce your problem, though you did...

    I couldn't reproduce your problem, though you did not specify the the UDP packet size and packet rate you were using. Also using a broadcast address
    IPAddress remoteIP(255, 255, 255, 255);
    is...
  50. Replies
    31
    Views
    2,110

    I purchased active antenna...

    I purchased active antenna and placed it on windowsill attached to my adafruit ultimate GPS, and i no longer lose lock. Settings were 9600 with GPS_USES_RMC. offset/drift look good with GPS PPS and...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4