Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: manitou

Page 1 of 9 1 2 3 4

Search: Search took 0.02 seconds; generated 19 minute(s) ago.

  1. 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...
  2. 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...
  3. > 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...
  4. 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...
  5. Replies
    19
    Views
    307

    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
  6. Replies
    57
    Views
    2,199

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

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

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

    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...
  11. Replies
    19
    Views
    307

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

    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...
  13. 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...
  14. 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:...
  15. 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...
  16. 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);
    ...
  17. Replies
    2
    Views
    168

    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.
  18. Replies
    5
    Views
    290

    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;
    ...
  19. Replies
    5
    Views
    290

    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 =...
  20. Replies
    13
    Views
    645

    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...
  21. Replies
    13
    Views
    645

    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.
    ...
  22. Replies
    13
    Views
    645

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

    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...
  24. Thread: Teesny 4.0 FPU

    by manitou
    Replies
    7
    Views
    319

    Here are some float/double performance numbers...

    Here are some float/double performance numbers from the T4 beta test thread
    https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=194187&viewfull=1#post194187
  25. Replies
    18
    Views
    335

    I ran this sketch on my T4.0 with my adafruit...

    I ran this sketch on my T4.0 with my adafruit hall sensor (3v3, GND, 10k pullup)

    volatile uint32_t ticks;
    void myisr() {
    ticks++;
    }
    void setup() {
    Serial.begin(9600);
    while (!Serial);...
  26. Replies
    18
    Views
    335

    i have run hall sensor with T3.6 using 3v3, GND,...

    i have run hall sensor with T3.6 using 3v3, GND, and 10K pullup (to 3v3) on signal pin.
    https://maker.pro/arduino/tutorial/how-to-use-a-hall-effect-sensor-with-arduino

    make sure you got pins...
  27. Replies
    2
    Views
    121

    You might add delayMicroseconds(4); after every...

    You might add delayMicroseconds(4); after every digitalWrite(timo->csn_pin, LOW); as specified in
    https://docs.lumenrad.io/timo/spi-interface/
  28. Replies
    2
    Views
    105

    you didn't say which teensy. I have an ftp and...

    you didn't say which teensy. I have an ftp and tftp server for T4.1 using lwIP, and a tftp server using FNET/NativeEthernet lib....
  29. On the other hand, if you are just trying to read...

    On the other hand, if you are just trying to read the potentiometer voltage with the T4 ADC, then all you need to print the voltage is

    void setup() {
    }

    void loop() {
    Serial.println( 3.3 *...
  30. Replies
    4
    Views
    148

    when pin 1 is in PWM mode you can't use it for...

    when pin 1 is in PWM mode you can't use it for digital IO. Here is a thread for T3.6 and using the PWM timer's interrupt...
  31. Replies
    4
    Views
    148

    use a 2nd pin jumpered to pin 1, and read about...

    use a 2nd pin jumpered to pin 1, and read about attachInterrupt()
  32. for Teensy 4 try...

    for Teensy 4 try https://github.com/greiman/SdFat-beta
  33. Replies
    9
    Views
    340

    You should print out in HEX the registers that...

    You should print out in HEX the registers that affect clock speed, and with the ref manual you could see what values your C code has actually selected.

    LPSPI4_CCR 0xA030005
    ...
  34. Replies
    9
    Views
    340

    I ran your sketch with scope and MISO jumpered to...

    I ran your sketch with scope and MISO jumpered to MOSI and confirmed it read back what was sent. Scope showed SPI CLK at 8.4 khz which matches your config of CCM_CBCMR, CCS, and TCR,...
  35. Replies
    9
    Views
    340

    can you look at the SPI pins with a scope or...

    can you look at the SPI pins with a scope or logic analyzer?
  36. Replies
    16
    Views
    346

    symbolic names for hardware registers and such...

    symbolic names for hardware registers and such are found in Teensy core include files that are installed in your PC/desktop and on github. For teensy3, the symbols are defined in kinetis.h
  37. One minor problem with your sketch is your file...

    One minor problem with your sketch is your file names are too long. SD lib filenames are in 8.3 format, so "name" is max of 8 characters with optional . and 3 character extension.

    The major...
  38. Replies
    13
    Views
    645

    yep, as noted in this post...

    yep, as noted in this post, T4 TRNG is much slower than T3.5/3.6 TRNG. T4 TRNG has lots of tuning options, mainly to strengthen "randomness" at a cost of even slower speed. Limited documentation...
  39. See the NativeEthernet thread...

    See the NativeEthernet thread or the lwIP tests
    The Teensy 4.1 native Ethernet does not use SPI, rather uses onboard PHY connected with 6 pins to RJ45 module.
  40. Very strange. SPI has no error checking or...

    Very strange. SPI has no error checking or "delays". I often do SPI performance tests with no wires connected to anything! So I don't understand how a sketch can hang in a SPI.transfer(). As...
  41. In IDE Tools drop down, what do you have for USB...

    In IDE Tools drop down, what do you have for USB type: and what does Port say?

    here's my teensy loader verbose for build and run of CoreMark witrh serial monitor...

    15:41:56.942 (post_compile...
  42. Replies
    9
    Views
    171

    Ahhh, shared SPI. You'd need to pull the display...

    Ahhh, shared SPI. You'd need to pull the display CS pin HIGH (digitalWrite) to keep the display's SPI "quiet" .... or as you noted, init the screen. Good job.
  43. Replies
    9
    Views
    171

    i'm guessin the adafruit board is corrupting the...

    i'm guessin the adafruit board is corrupting the SPI signals some how. A scope might show something ...
  44. Replies
    9
    Views
    171

    Have you tried other uSD cards? tried...

    Have you tried other uSD cards? tried reformatting uSD card? what does SD -> examples -> Cardinfo report

    what version of IDE and Teensyduino?

    how is uSD attached to T3.2, photo?

    works for...
  45. Replies
    797
    Views
    33,748

    here are a few data points T4.1 HW_OCOTP_CFG0...

    here are a few data points

    T4.1
    HW_OCOTP_CFG0 0x65f8296a
    HW_OCOTP_CFG1 0xc19a9d2
    HW_OCOTP_CFG2 0x50000029
    HW_OCOTP_CFG3 0x420002
    HW_OCOTP_CFG4 0x0
    HW_OCOTP_CFG5 0x80018
    HW_OCOTP_CFG6 0x0
  46. Replies
    797
    Views
    33,748

    PJRC sets some fuses in each T4 for unique...

    PJRC sets some fuses in each T4 for unique ethernet MAC address and USB id,
    in hardware/teensy/avr/cores/teensy4/usb_desc.c, num = HW_OCOTP_MAC0 & 0xFFFFFF;
    and T4 mac

    static void...
  47. Replies
    37
    Views
    2,215

    ethernet power numbers here...

    ethernet power numbers here, table and graph
  48. Replies
    44
    Views
    1,849

    You should experiment with T4.1 ...

    You should experiment with T4.1 FNET/NativeEthernet. Its API is like Arduino's Ethernet lib, so porting should be easier than with the T4.1 lwIP implementation (polling and callback)
  49. Replies
    797
    Views
    33,748

    I created fnet_tftpd_SPIFFS...

    I created fnet_tftpd_SPIFFS a tftp server using SPIFFS on EFLASH with FNET and NativeEthernet libs
  50. Replies
    797
    Views
    33,748

    I just checked my notes. I had to fix those...

    I just checked my notes. I had to fix those typedef conflicts with the previous version of SPIFFS lib when used with lwip


    hack libraries/SPIFFS_t4/src/spiffs_config.h
    // ...
Results 1 to 50 of 439
Page 1 of 9 1 2 3 4