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
    77
    Views
    4,484

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

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

    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 ?
  4. 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
  5. 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)...
  6. 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...
  7. Replies
    5
    Views
    124

    see...

    see https://forum.pjrc.com/threads/60532-Teensy-4-1-Beta-Test?p=239712&viewfull=1#post239712
  8. Replies
    77
    Views
    4,484

    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...
  9. Replies
    4
    Views
    295

    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
  10. 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,...
  11. Thread: TeensyTransfer

    by manitou
    Replies
    140
    Views
    65,570

    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...
  12. 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
  13. Replies
    4
    Views
    295

    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
  14. Replies
    55
    Views
    22,472

    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...
  15. @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...
  16. 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...
  17. Replies
    55
    Views
    22,472

    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...
  18. Replies
    4
    Views
    181

    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 ) {
    ...
  19. Replies
    4
    Views
    252

    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...
  20. Replies
    77
    Views
    4,484

    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...
  21. Replies
    77
    Views
    4,484

    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...
  22. Replies
    29
    Views
    1,257

    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...
  23. Replies
    29
    Views
    1,257

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

    the sdcardtest example does NOT play wav files, it just checks read speed. try example WavFilePlayer
  25. 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 ...
  26. 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...
  27. 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...
  28. 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...
  29. 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...
  30. > 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...
  31. 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...
  32. Replies
    37
    Views
    692

    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
  33. Replies
    77
    Views
    4,484

    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...
  34. 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...
  35. Replies
    29
    Views
    1,257

    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
  36. Replies
    37
    Views
    692

    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...
  37. Replies
    29
    Views
    1,257

    I also experimented with Adafruit ultimate GPS...

    I also experimented with Adafruit ultimate GPS. I found how to enable ZDA sentences and changed baud to 115200, BUT when I cycle power on the Adafruit GPS, it reverts back to 9600, and ZDA is no...
  38. Replies
    37
    Views
    692

    sketch seems to work OK for me on ubuntu 18.04...

    sketch seems to work OK for me on ubuntu 18.04 (64-bit) with 1.8.12 and 1.53-beta2. i did see one fail to upload, but next upload was OK. nothing fatal

    Opening Teensy Loader...
    Sketch uses...
  39. Replies
    29
    Views
    1,257

    Wow, nice work on the NTPD server using GPS and...

    Wow, nice work on the NTPD server using GPS and 1088. I haven't quite figured out all the components, but I boldly reconfigured my sparkfun GPS to run at 115200 baud and emit ZDA sentences. (I did...
  40. LITE MISO SCK MOSI CS SD-CS D/C Reset Vcc GND ...

    LITE MISO SCK MOSI CS SD-CS D/C Reset Vcc GND
    3v3 12 13 11 10 4 9 8 3v3 gnd

    using https://www.adafruit.com/product/358 and Teensy lib ST7735_t3 (make sure you don't have...
  41. works for me on T3.2 1.8.12/1.53-beta2, parrot...

    works for me on T3.2 1.8.12/1.53-beta2, parrot image displays and serial monitor says

    Initializing SD card...OK!

    Loading image 'parrot.bmp'
    File size: 61496
    Image Offset: 54
    Header size:...
  42. you need to copy parrot.bmp from the library...

    you need to copy parrot.bmp from the library folder arduino-1.8.12/hardware/teensy/avr/libraries/ST7735_t3/parrot.bmp to a microSD card and then insert the microSD in the slot on the backside of...
  43. does the tick count from this sketch increase by...

    does the tick count from this sketch increase by 1000 each second? (jumper pin 12 to pin 23)

    volatile uint32_t ticks;

    void ding() {
    ticks++;
    }
    void setup() {
    while (!Serial);
    ...
  44. Replies
    2
    Views
    188

    in the ReadWrite example, you need to ignore...

    in the ReadWrite example, you need to ignore about uncommenting SCK MOSI for audio shield. For T4.0 and Rev D audio shield you need to use standard SPI pins (10-13). maybe post your sketch.
  45. Replies
    5
    Views
    326

    i changed my qtmr_cascade sketch to config 48-bit...

    i changed my qtmr_cascade sketch to config 48-bit microsecond counter like the following

    int cnt;

    cnt = 150 ; // 1 us
    TMRx->CH[0].CTRL = 0; // stop
    TMRx->CH[0].CNTR = 0;
    ...
  46. Replies
    5
    Views
    326

    it looks like you are using pin 9 as "clock...

    it looks like you are using pin 9 as "clock source" (quad timer 4 timer 2), what do you have connected to pin 9?
    your last init should be start quadtimer 4 timer 2: TMRx->CH[2].CTRL =...
  47. Replies
    13
    Views
    743

    I've added hardware TRNG for T3.5/3.6 to attached...

    I've added hardware TRNG for T3.5/3.6 to attached Entropy.cpp. Random bits are generated at 7.5 megabits/sec compared with 125 bits/sec for duelling clocks (timer drift approach).

    ref T3.5/3.6...
  48. Replies
    13
    Views
    743

    Using Paul's TRNG sample mode configuration (2)...

    Using Paul's TRNG sample mode configuration (2) from entropy lib in my T4 TRNG test sketch is faster (13484 us for 512 bits) and NIST statistical tests are good.
    ...
  49. Replies
    13
    Views
    743

    this .cpp requires the TRNG_... symbols. I don't...

    this .cpp requires the TRNG_... symbols. I don't find them defined yet in imxrt.h.
  50. Replies
    18
    Views
    399

    Looking at the data sheets both the Adafruit and...

    Looking at the data sheets both the Adafruit and Sparkfun hall sensor are tri-state devices and need pullup on output pin. Dagu data sheet actually mentions using the MCU's internal pullup on the...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4