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.03 seconds.

  1. Replies
    3
    Views
    228

    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...
  2. 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...
  3. 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:...
  4. 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...
  5. 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);
    ...
  6. Replies
    2
    Views
    161

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

    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;
    ...
  8. Replies
    5
    Views
    278

    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 =...
  9. Replies
    13
    Views
    614

    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...
  10. Replies
    13
    Views
    614

    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.
    ...
  11. Replies
    13
    Views
    614

    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.
  12. Replies
    18
    Views
    299

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

    by manitou
    Replies
    7
    Views
    294

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

    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);...
  15. Replies
    18
    Views
    299

    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...
  16. Replies
    2
    Views
    116

    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/
  17. Replies
    2
    Views
    97

    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....
  18. 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 *...
  19. Replies
    4
    Views
    139

    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...
  20. Replies
    4
    Views
    139

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

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

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

    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
    ...
  23. Replies
    9
    Views
    327

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

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

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

    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
  26. 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...
  27. Replies
    13
    Views
    614

    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...
  28. 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.
  29. 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...
  30. 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...
  31. Replies
    9
    Views
    160

    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.
  32. Replies
    9
    Views
    160

    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 ...
  33. Replies
    9
    Views
    160

    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...
  34. Replies
    795
    Views
    32,633

    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
  35. Replies
    795
    Views
    32,633

    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...
  36. Replies
    37
    Views
    2,135

    ethernet power numbers here...

    ethernet power numbers here, table and graph
  37. Replies
    44
    Views
    1,787

    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)
  38. Replies
    795
    Views
    32,633

    I created fnet_tftpd_SPIFFS...

    I created fnet_tftpd_SPIFFS a tftp server using SPIFFS on EFLASH with FNET and NativeEthernet libs
  39. Replies
    795
    Views
    32,633

    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
    // ...
  40. Replies
    795
    Views
    32,633

    well that error means you haven't hacked...

    well that error means you haven't hacked boards.txt to add the include mod described in the README .... then you'll get the typedef conflict ;)

    (i could create a SPIFFS version of tftpd for the...
  41. Replies
    795
    Views
    32,633

    https://github.com/PaulStoffregen/teensy41_etherne...

    https://github.com/PaulStoffregen/teensy41_ethernet
  42. Replies
    795
    Views
    32,633

    Re: T4.1 SPIFFS With 1.8.12 and 1.52 and the...

    Re: T4.1 SPIFFS

    With 1.8.12 and 1.52 and the new SPIFFS lib, I decided to update my Ethernet lwip_tftpd_SPIFFS sketch. I got compile errors because of typedef conflict between lwip and spiffs...
  43. Replies
    320
    Views
    39,631

    what would be required to provide MTP and a file...

    what would be required to provide MTP and a file system on T4.1 (optional) external flash? and someday maybe "reserved" area of internal flash (bootloader mods required?) circuitpython on T3 and T4...
  44. Replies
    795
    Views
    32,633

    yes, this would be helpful to...

    yes, this would be helpful to circuitypython/micropython "disk drive" and maybe Teensy could support popping up a USB drive ... Paul had some discussion on the circuitypython thread
  45. Replies
    795
    Views
    32,633

    Interesting your cached times are faster. the...

    Interesting your cached times are faster. the fs_unmount() is good, but i'm surprised that it would make a difference. I would think the SPIFFFS would be inactive. what memcpy() times do you get...
  46. Replies
    795
    Views
    32,633

    #define BYTES 32*1024 DMAMEM uint8_t...

    #define BYTES 32*1024
    DMAMEM uint8_t ocram[BYTES] __attribute__ ((aligned(32)));
    PROGMEM uint8_t prog[BYTES] __attribute__ ((aligned(32)));
    uint8_t dst[BYTES] __attribute__ ((aligned(32)));...
  47. Replies
    795
    Views
    32,633

    OK, that got example eram_spifffs working so i...

    OK, that got example eram_spifffs working so i got directory listing from EFLASH, and I added memcpy() tests using 0x70800000

    memcpy 32768 bytes from 0x70800000 flash 779 us
    ...
  48. Replies
    795
    Views
    32,633

    No. i'm still confused. From your link...

    No. i'm still confused.
    From your link https://github.com/PaulStoffregen/teensy41_extram/tree/SPIFFS-FLASH-ONLY
    I cloned the SPIFFS-FLASH-ONLY branch, and moved the directory SPIFFS_t4/ into my...
  49. Replies
    795
    Views
    32,633

    i don't think i have an extra lib. you have...

    i don't think i have an extra lib. you have spiffs_file fd1; in both extRAM_t4.cpp and spiffs_t4.cpp in libraries/SPIFFS_t4/src/

    maybe use static ? static spiffs_file fd1;

    and there is the...
  50. Replies
    795
    Views
    32,633

    @mjs513 i did fresh install of 1.8.12 and 1.52...

    @mjs513 i did fresh install of 1.8.12 and 1.52 on 32-bit linux, and cloned your branch and put SPIFFS_t4/ in my libraries/ and tried to compile example eram_spiffs and got errors, attached.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4