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

  1. Repeating what was noted in...

    Repeating what was noted in https://forum.pjrc.com/threads/57609-Teensyduino-1-48-Beta-1?p=216399&viewfull=1#post216399

    To avoid explicit register usage note that the IntervalTimer has a method...
  2. Replies
    78
    Views
    3,061

    Another observation: If i move the new PIT init...

    Another observation: If i move the new PIT init code in startup.c to after the RTC initialization, the DemoSauce example works even with PIT_MCR = 0. I also modified startup.c in 1.8.8 with 1.47....
  3. Replies
    78
    Views
    3,061

    you probably should start a new thread, BUT one...

    you probably should start a new thread, BUT one problem you have is using F_BUS_ACTUAL. The PIT timer for IntervalTimer runs at 24MHz, not F_BUS_ACTUAL

    EDIT:
    also if you are not running...
  4. Replies
    28
    Views
    641

    There may be an issue with the PIT fix in...

    There may be an issue with the PIT fix in startup.c for 1.48-beta1, see
    https://forum.pjrc.com/threads/57609-Teensyduino-1-48-Beta-1?p=216384&viewfull=1#post216384
  5. Replies
    78
    Views
    3,061

    OK, i'm not sure i know how you guys are testing,...

    OK, i'm not sure i know how you guys are testing, but here is what i did on my linux64 box. installed 1.8.10 and 1.48-beta1, and ran a T4 intervaltimer sketch to verify i could get all 4 channels. ...
  6. Replies
    78
    Views
    3,061

    here is discussion associated with PIT changes in...

    here is discussion associated with PIT changes in startup.c
    https://forum.pjrc.com/threads/57360-Teensy4-IntervalTimer-Channels-Problem

    you could try adding line to turn PIT off

    CCM_CCGR1 |=...
  7. Replies
    9
    Views
    391

    Re: watchdog from T4-beta-testing thread ...

    Re: watchdog
    from T4-beta-testing thread https://github.com/tonton81/Watchdog_t4
  8. Replies
    3
    Views
    77

    can you try the FreqCount example...

    can you try the FreqCount example Serial_Output_T4 with pin 9 jumpered to pin 8. maybe change the pin 8 write frequency to 25mhz and see what it reports. if you have a T3*, can you try FreqCount on...
  9. Replies
    2
    Views
    93

    You need to spin-wait to clear TPM0_SC and move...

    You need to spin-wait to clear TPM0_SC and move enable MCG_C1 to after the other MCG stuff. You should then be able to change the prescale.

    void setup() {
    // Initialize pins
    pinMode(14,...
  10. Replies
    4
    Views
    79

    Beware. If you are trying to continuously...

    Beware. If you are trying to continuously interrupt at a 20mhz rate, you won't succeed. Depending on what you are doing in your ISR, you typically can't expect more than a 1 to 3 mhz interrupt...
  11. See discussions in...

    See discussions in https://forum.pjrc.com/threads/57543-Teensy-4-0-and-Adafruit-BNO055
  12. maybe look at...

    maybe look at https://github.com/adrianfreed/FastTouch
  13. Good work. (Nice of you to write the code for the...

    Good work. (Nice of you to write the code for the OP) I ran your sketch with your lib and set pressure from my local airport. Temperature and altitude looked good. experimented with oversampling. ...
  14. Sounds pretty invasive. I experimented in the...

    Sounds pretty invasive. I experimented in the other direction. Just enabling the print's in NXPMotionSense MPL3115_read() and also printing tempc and meters from these calculations

    float...
  15. You may need to calibrate altimeter, so sensor...

    You may need to calibrate altimeter, so sensor knows that current elevation is x feet with current barometric pressure -- what one does in an airplane before taking off. my tests with kris's ...
  16. Replies
    9
    Views
    391

    see...

    see https://forum.pjrc.com/threads/57595-Serial-amp-MAC-Address-Teensy-4-0

    Serial.printf("MAC %04X%08X\n", HW_OCOTP_MAC1, HW_OCOTP_MAC0);
  17. Replies
    28
    Views
    641

    Paul fixed in startup.c of Teensyduino 1.48 beta...

    Paul fixed in startup.c of Teensyduino 1.48 beta 1
  18. I think the structure of the NXPMotionSense lib...

    I think the structure of the NXPMotionSense lib is such that the private functions/variables are accessed via variations of public readMotionSensor(...). So you would add additional public...
  19. In the kriswiner github URL in post #6, it runs...

    In the kriswiner github URL in post #6, it runs the MPL3115A at 1 Hz (just as NXPMotionSense does). At one time, I modified the kriswiner code to configure the MPL3115A with oversampling of 1 and...
  20. Replies
    9
    Views
    391

    as the name i2c_t3 implies, that lib is only for...

    as the name i2c_t3 implies, that lib is only for the Teensy 3*. No equivalent yet for the Teensy 4. You will need to use the standard I2C lib Wire.h
  21. edit SdFat/examples/SdFormatter/SdFormatter.ino ...

    edit SdFat/examples/SdFormatter/SdFormatter.ino to read #define USE_SDIO 1

    though i haven't used SdFat lately ...
  22. Replies
    1
    Views
    111

    yep, but the DAC is for internal use only (ADC...

    yep, but the DAC is for internal use only (ADC compare ). There is no DAC output pin. bummer.
  23. Replies
    20
    Views
    251

    FWIW, I notice the mbed lib for BNO055 has a...

    FWIW, I notice the mbed lib for BNO055 has a much longer delay after issuing reset

    void BNO055::reset(){
    //Perform a power-on-reset
    readchar(BNO055_SYS_TRIGGER_ADDR);
    rx = rx | 0x20;
    ...
  24. yep. my microSD on T4B2R stopped working after a...

    yep. my microSD on T4B2R stopped working after a few weeks. no known physical trauma to cause it (to my knowledge). I never did get it to work.
  25. See any of the following...

    See any of the following
    https://github.com/sparkfun/MPL3115A2_Breakout/tree/V_H1.1_L1.2.0/Libraries/Arduino
    https://github.com/adafruit/Adafruit_MPL3115A2_Library...
  26. Replies
    28
    Views
    641

    I think to disable the PIT you need to clear the...

    I think to disable the PIT you need to clear the bits

    // manitou suggested PIT fix
    CCM_CCGR1 |= CCM_CCGR1_PIT(CCM_CCGR_ON);
    PIT_TCTRL0 = 0;
    PIT_TCTRL1 = 0;
    PIT_TCTRL2 = 0;
    ...
  27. Replies
    13
    Views
    598

    FWIW, during T4 beta testing I wrote a little...

    FWIW, during T4 beta testing I wrote a little sketch eeprom_meta.ino that would report the underlying metadata for managing the EEPROM wear-leveling. If you updated or added new data to the EEPROM,...
  28. Replies
    14
    Views
    179

    here is my mapping of T4 pins to audio shield ...

    here is my mapping of T4 pins to audio shield

    T4 adapter holes continuity
    T4 audio header silk screen T4B2R breakout pins
    13 to SCK (14)
    ...
  29. Replies
    14
    Views
    179

    yep, if you look at shield's schematic, you'll...

    yep, if you look at shield's schematic, you'll see MEMCS is the SPI CS pin on the Winbond chip. hook it to pin 6 (i think SerialFlash examples have pin 6 as CS) Diagram doesn't show T4 MOSI, MISO,...
  30. Replies
    14
    Views
    179

    ooops, my bad, i was focused on Winbond chip and...

    ooops, my bad, i was focused on Winbond chip and forgot earlier context regarding T4. though the diagram doesn't show pin 6 hooked to MEMCS
  31. Replies
    14
    Views
    179

    When running the SerialFlash examples make sure...

    When running the SerialFlash examples make sure you have configured the proper SPI pins (6,7,12,14). what does EraseEverything print?
  32. Replies
    13
    Views
    778

    run the CalibrateSensors example from the...

    run the CalibrateSensors example from the NXPMotionSense lib. it prints out raw values from the IMU sensors.

    also look at https://github.com/kriswiner/Teensy_Prop_Shield
    or...
  33. Replies
    6
    Views
    99

    Can you try the GettingStarted example in the...

    Can you try the GettingStarted example in the RF24 lib? Even with nothing connected to the T4 pins, it tries to run and prints things for me (and pin 13 is on).

    also see earlier T3* thread,...
  34. Replies
    6
    Views
    99

    i think max SPI speed for nRF unit is 10mhz. T4...

    i think max SPI speed for nRF unit is 10mhz. T4 default SPI rate is 12.5mhz. So maybe slow down T4 SPI clock...
  35. OK, i updated the coremark power plot...

    OK, i updated the coremark power plot. Your 24mhz fix does reduce power consumption by about 4ma for T4@24MHz. Thanks
  36. Here is the NXP pdf describing 1060 power...

    Here is the NXP pdf describing 1060 power measurements (1060@600MHz consumes 74 ma)
    https://www.nxp.com/docs/en/application-note/AN12245.pdf
  37. FWIW, here is that coremark power plot...

    FWIW, here is that coremark power plot with T4 data
  38. Replies
    28
    Views
    641

    A feature? Though 1052 and 1062 both have PIT...

    A feature?

    Though 1052 and 1062 both have PIT "lifetime" timer capability (chained channel 0 and 1), only the 1062 is configured to start the lifetime timer as soon as PIT is enabled in CCM_CCGR1....
  39. Replies
    28
    Views
    641

    Latest observation of 1052 and 1062 with NXP SDK...

    Latest observation of 1052 and 1062 with NXP SDK (MCUXpresso IDE). A PIT timer example on the 1052 has all TCTRL and LDVAL values 0. On the 1062 eval board, the PIT example starts with channels 0...
  40. Replies
    28
    Views
    641

    Inconclusive results for NXP eval boards. The...

    Inconclusive results for NXP eval boards. The mbed core uses the PIT timer for us_ticker() with EVKB 1052 eval board, and with the 1062 eval board the NXP SDK is using the PIT for microseconds(). ...
  41. Replies
    28
    Views
    641

    latest observation: In setup() I printed out the...

    latest observation: In setup() I printed out the TCTRLx registers on T4B1 (beta 1052), and all values are 0. (1.8.8 1.47-beta1)

    Hardware or software ?? i'll test with NXP EVKB boards and mbed...
  42. Replies
    28
    Views
    641

    maybe the following is a suitable FIX in...

    maybe the following is a suitable FIX in hardware/teensy/avr/cores/teensy4/IntervalTimer.cpp

    ...
    } else {
    CCM_CCGR1 |= CCM_CCGR1_PIT(CCM_CCGR_ON);
    //__asm__ volatile("nop");...
  43. Replies
    28
    Views
    641

    Strange. for some reason TCTRL0 and TCTRL1 have...

    Strange. for some reason TCTRL0 and TCTRL1 have non-zero values (power on should set them to 0). I haven't yet found where in the core those registers are set. here is my test sketch

    #define...
  44. Replies
    3
    Views
    89

    The audio lib takes over the ADC controllers. ...

    The audio lib takes over the ADC controllers. you can't mix analogRead with audio ADCs, see warning in Notes sidebar for ADC in audio gui
  45. Replies
    10
    Views
    275

    It's not uncommon for the actual clock rate to be...

    It's not uncommon for the actual clock rate to be less than requested on T3* and T4 and maybe many other MCU's. You can try and hack the core I2C driver code to increase the I2C clock closer to your...
  46. Replies
    10
    Views
    275

    Works for me. you need to do Wire1.setClock()...

    Works for me. you need to do Wire1.setClock() after Wire1.begin()
    With nothing connected to I2C pins and runnning I2C Scanner, scope shows 86 khz for clock 100khz, 238khz for clock 400khz, 380khz...
  47. Replies
    10
    Views
    275

    Wire1.setClock(1000000)

    Wire1.setClock(1000000)
  48. not good. any chance you at one time had...

    not good. any chance you at one time had breakout board hooked to 5v? T4 is NOT 5v tolerant, and the onboard pullups could have damaged pin 18. I assume T4 and breakout have soldered connectors...
  49. Replies
    4
    Views
    290

    this post...

    this post says yes
  50. Replies
    12
    Views
    810

    FWIW, here is CoreMark power and temperature vs...

    FWIW, here is CoreMark power and temperature vs MHz plot
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4