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. 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...
  2. Replies
    4
    Views
    179

    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
  3. Replies
    1
    Views
    112

    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...
  4. Replies
    3
    Views
    179

    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)

    #!...
  5. Replies
    3
    Views
    179

    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() {
    ...
  6. Replies
    4
    Views
    149

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

    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.
  8. Replies
    31
    Views
    1,611

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

    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).
  10. Replies
    9
    Views
    430

    ? "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...
  11. 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...
  12. Replies
    102
    Views
    6,475

    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.
  13. Replies
    102
    Views
    6,475

    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...
  14. Replies
    18
    Views
    491

    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...
  15. Replies
    102
    Views
    6,475

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

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

    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 ?
  18. 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
  19. 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)...
  20. 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...
  21. Replies
    5
    Views
    182

    see...

    see https://forum.pjrc.com/threads/60532-Teensy-4-1-Beta-Test?p=239712&viewfull=1#post239712
  22. Replies
    102
    Views
    6,475

    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...
  23. Replies
    4
    Views
    351

    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
  24. 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,...
  25. Thread: TeensyTransfer

    by manitou
    Replies
    140
    Views
    68,100

    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...
  26. 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
  27. Replies
    4
    Views
    351

    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
  28. Replies
    56
    Views
    22,916

    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...
  29. @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...
  30. 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...
  31. Replies
    56
    Views
    22,916

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

    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 ) {
    ...
  33. Replies
    9
    Views
    430

    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...
  34. Replies
    102
    Views
    6,475

    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...
  35. Replies
    102
    Views
    6,475

    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...
  36. Replies
    31
    Views
    1,611

    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...
  37. Replies
    31
    Views
    1,611

    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...
  38. the sdcardtest example does NOT play wav files,...

    the sdcardtest example does NOT play wav files, it just checks read speed. try example WavFilePlayer
  39. 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 ...
  40. 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...
  41. 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...
  42. ddrown refactored the lwip include files so...

    ddrown refactored the lwip include files so boards.txt no longer needs to be modified. As you noted, he also changed (cleaned up) enet_init()
    visit https://github.com/ddrown/teensy41_ethernet and...
  43. On linux/windows the parrot has red shoulders in...

    On linux/windows the parrot has red shoulders in parrot.bmp, and the fix to example spitftbitmap.ino in post #48 gives the parrot the desired red shoulders. There may be other bmp examples in the...
  44. > I have a GPS providing time codes, but they are...

    > I have a GPS providing time codes, but they are so infrequent that I would like to rely on something more regular.

    Ahhh, with GPS and PPS you could have very accurate/precise time, and with a...
  45. yep, just add in your sub-second value (ms for...

    yep, just add in your sub-second value (ms for milliseconds) SNVS_LPSRTCLR = t << 15 + 32768*ms/1000;
    i've never tried it though. I don't know what you are using for setting time, but note the...
  46. Replies
    40
    Views
    854

    it looks like you are running ModemManager. try...

    it looks like you are running ModemManager. try getting rid of that. sudo apt-get purge modemmanager
  47. Replies
    102
    Views
    6,475

    Re: ftp server Maybe something can be learned...

    Re: ftp server

    Maybe something can be learned from the lwIP lib's ftp server. In 2016 with the T3.5/3.6 ethernet beta test we had a working ftp server that used lwIP and SdFat lib (v1). I...
  48. i think the SNVS_HPRTCMR and SNVS_HPRTCLR...

    i think the SNVS_HPRTCMR and SNVS_HPRTCLR registers create a 64-bit counter of the RTC crystal ticks (32768 ticks/second). Reading the pair is not "atomic" so as you noted rtc_get() in...
  49. Replies
    31
    Views
    1,611

    I think i only got B message in one experiment...

    I think i only got B message in one experiment trying to get ZDA and 115200 work on adafruit GPS ... not to worry.

    I added an offset and drift plot to post #3
  50. Replies
    40
    Views
    854

    yep, i tested with Serial Monitor open and...

    yep, i tested with Serial Monitor open and closed as per your directions in post #1. maybe upgrade to teensyduino 1.53?

    with IDE, loader, and serial monitor closed, do a ps uax | grep teen to...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4