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
    113
    Views
    15,656

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

    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...
  3. 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...
  4. Replies
    7
    Views
    1,863

    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.
  5. Replies
    7
    Views
    1,863

    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...
  6. Replies
    17
    Views
    660

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

    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...
  8. Replies
    163
    Views
    5,524

    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...
  9. Replies
    21
    Views
    494

    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...
  10. 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...
  11. Replies
    4
    Views
    255

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

    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...
  13. Replies
    3
    Views
    219

    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)

    #!...
  14. Replies
    3
    Views
    219

    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() {
    ...
  15. Replies
    4
    Views
    221

    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
  16. 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.
  17. Replies
    31
    Views
    2,080

    @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
  18. Replies
    9
    Views
    560

    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).
  19. Replies
    9
    Views
    560

    ? "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...
  20. 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...
  21. Replies
    131
    Views
    9,243

    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.
  22. Replies
    131
    Views
    9,243

    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...
  23. Replies
    18
    Views
    703

    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...
  24. Replies
    131
    Views
    9,243

    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...
  25. see...

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

    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 ?
  27. 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
  28. 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)...
  29. 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...
  30. Replies
    5
    Views
    303

    see...

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

    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...
  32. Replies
    4
    Views
    443

    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
  33. 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,...
  34. Thread: TeensyTransfer

    by manitou
    Replies
    140
    Views
    69,806

    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...
  35. 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
  36. Replies
    4
    Views
    443

    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
  37. Replies
    56
    Views
    23,328

    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...
  38. @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...
  39. 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...
  40. Replies
    56
    Views
    23,328

    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...
  41. 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 ) {
    ...
  42. Replies
    9
    Views
    560

    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...
  43. Replies
    131
    Views
    9,243

    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...
  44. Replies
    131
    Views
    9,243

    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...
  45. Replies
    31
    Views
    2,080

    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...
  46. Replies
    31
    Views
    2,080

    You could print T4 temperature (tempmonGetTemp()...

    You could print T4 temperature (tempmonGetTemp() float degrees C) in your table printing in updateTime() to track drift and temperature.

    Here is diurnal NTP drift variation (ppm) for my home...
  47. the sdcardtest example does NOT play wav files,...

    the sdcardtest example does NOT play wav files, it just checks read speed. try example WavFilePlayer
  48. check the T4 ref manual (41.6.3). you need to...

    check the T4 ref manual (41.6.3). you need to handle/consume the ring buffer and reset the buffer flag. Just writing RDAR clears it, ENET_RDAR = ENET_RDAR;

    see FNET RDAR usage ...
  49. yep, ring buffers are full. Note that ...

    yep, ring buffers are full. Note that teensy41_ethernet.ino runs in promiscuous mode (ENET_RCR_PROM), so you can be flooded by traffic not destined for your ether mac address. Turn off promiscuous...
  50. https://en.reddit.com/r/arduino/comments/1q1chr/us...

    https://en.reddit.com/r/arduino/comments/1q1chr/using_timer1_to_count_clock_cycles/

    Timer0 interrupts every millisecond and may cause jitter in your timer1 measurement. Timer0 is used for...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4