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. 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...
  2. 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 ...
  3. Replies
    6
    Views
    217

    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);
  4. Replies
    27
    Views
    511

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

    Paul fixed in startup.c of Teensyduino 1.48 beta 1
  5. 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...
  6. 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...
  7. Replies
    6
    Views
    217

    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
  8. 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 ...
  9. Replies
    1
    Views
    86

    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.
  10. Replies
    20
    Views
    223

    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;
    ...
  11. 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.
  12. 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...
  13. Replies
    27
    Views
    511

    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;
    ...
  14. Replies
    13
    Views
    537

    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,...
  15. Replies
    14
    Views
    158

    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)
    ...
  16. Replies
    14
    Views
    158

    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,...
  17. Replies
    14
    Views
    158

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

    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?
  19. Replies
    13
    Views
    767

    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...
  20. Replies
    6
    Views
    97

    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,...
  21. Replies
    6
    Views
    97

    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...
  22. 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
  23. 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
  24. FWIW, here is that coremark power plot...

    FWIW, here is that coremark power plot with T4 data
  25. Replies
    27
    Views
    511

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

    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...
  27. Replies
    27
    Views
    511

    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(). ...
  28. Replies
    27
    Views
    511

    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...
  29. Replies
    27
    Views
    511

    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");...
  30. Replies
    27
    Views
    511

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

    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
  32. Replies
    10
    Views
    263

    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...
  33. Replies
    10
    Views
    263

    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...
  34. Replies
    10
    Views
    263

    Wire1.setClock(1000000)

    Wire1.setClock(1000000)
  35. 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...
  36. Replies
    4
    Views
    268

    this post...

    this post says yes
  37. Replies
    8
    Views
    622

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

    FWIW, here is CoreMark power and temperature vs MHz plot
  38. Replies
    2
    Views
    166

    I can't answer your question, but NXP SDK had...

    I can't answer your question, but NXP SDK had various XBAR examples. I have a T4 XBAR example with PIT, see
    https://github.com/manitou48/teensy4/blob/master/pitxbaradc.ino
    you might also do a...
  39. The example works for me on T3.5 with...

    The example works for me on T3.5 with BUILTIN_SDCARD. I'm running 1.47. Can you confirm you're running 1.47 by looking at the Help -> About on the Teensy loader window? When you do an install,...
  40. what version of arduino IDE and teensyduino are...

    what version of arduino IDE and teensyduino are you running? There is a known problem with AudioPlaySdWav and BUILTIN_SDCARD with teensyduino 1.46. Upgrade to 1.47
  41. Replies
    4
    Views
    268

    You could use Tone or PWM, and T4 has MQS ...

    You could use Tone or PWM, and T4 has MQS (AudioOutputMQS) on pins 10 and 12
    https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=197727&viewfull=1#post197727

    There is no DAC on T4
  42. Replies
    2
    Views
    72

    It's just a software trick -- a big number that's...

    It's just a software trick -- a big number that's not a pin that the SD lib examines, and determines it's not a SPI pin, and branches to activate the SDHC interface/software for the the builtin uSD
  43. FWIW, over a wider temperature range, a crystal's...

    FWIW, over a wider temperature range, a crystal's response to temperature change is a quadratic. See
    https://forum.pjrc.com/threads/24628-Interesting-Temperature-Data
    (I sometimes put my teensy in...
  44. Replies
    4,284
    Views
    443,345

    teensyThreads.zip looks to be 2 years old! use...

    teensyThreads.zip looks to be 2 years old! use git clone, or download master.zip from the "Clone or download" dropdown menu
  45. i think your sketch needs Teensy3Clock.set() to...

    i think your sketch needs Teensy3Clock.set() to set the RTC time. See File > Examples > Time > TimeTeensy3

    https://www.pjrc.com/teensy/td_libs_Time.html

    a sketch setting RTC from compile TIME...
  46. Replies
    4,284
    Views
    443,345

    OK, compiling imxrt-size.c on linux, i don't get...

    OK, compiling imxrt-size.c on linux, i don't get anything printed. FIX: the problem is in printnumbers() all printf's need \n instead of \r
    Are the numbers supposed to be good? are the flash/RAM...
  47. Indeed, for the T4, all of the flash is copied to...

    Indeed, for the T4, all of the flash is copied to RAM (hardware/teensy/avr/cores/teensy4/startup.c), so FASTRUN has no meaning for T4. You can keep things in flash by using PROGMEM. RAM is further...
  48. Visit core...

    Visit core hardware/teensy/avr/cores/teensy4/pwm.c to see calculation of quadtimer PWM prescale and divider. With 150mhz bus clock, lowest frequency is 150000000/128/65536 = 17.881393 hz. From...
  49. I have some T4 timer sketches at...

    I have some T4 timer sketches at https://github.com/manitou48/teensy4

    GPT isn't used by Teensy core, but recent T4 update to threads library is using GPTx
  50. Replies
    4,284
    Views
    443,345

    The order of incantations may be tricky. The...

    The order of incantations may be tricky. The audio lib (output_mqs.cpp) does CORE_PIN12_CONFIG = 2 as part of MQS init. you could override that with
    SW_MUX_CTL_PAD_GPIO_AD_B0_05 = 1; which directs...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4