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
    3,765
    Views
    389,135

    Re: QTIMER in my testing, i think the compare...

    Re: QTIMER

    in my testing, i think the compare values loaded into regs need to be n-1

    TMR3_COMP10 = 10000 -1; // 6.7nS per clock = 66.7uS for 10,000 clocks on each half cycle
    ...
  2. FWIW I have some 434MHz adafruit breakouts that...

    FWIW I have some 434MHz adafruit breakouts that i have run with T3.2. I hooked one up to T3.6 and confirmed that it works. I also ran your sketch (with 434 frequency) and confirmed your sketch on...
  3. I have an Adafruit ATWINC1500 that I used on T3.2...

    I have an Adafruit ATWINC1500 that I used on T3.2 back in 2016. Arduino WiFi101 library is the correct library to use. I got out my ATWINC1500-MR210PB (firmware 19.4.4) today and wired it up to...
  4. Replies
    3,765
    Views
    389,135

    Note, i added some edits to my post #3685 that...

    Note, i added some edits to my post #3685 that suggests for simple compare interrupts, OCR1 differs from OCR2 and OCR3 (in restart mode, FRR = 0) ref 51.5.1.1
  5. Replies
    3,765
    Views
    389,135

    can you provide one or more sketches that...

    can you provide one or more sketches that demonstrate the strange GPT2 behavior? Does the "compare 3" interrupt fire, independent of toggling the compare3 output pin? The core...
  6. Replies
    3,765
    Views
    389,135

    maybe use T4's MQS pin(s) with capacitor and...

    maybe use T4's MQS pin(s) with capacitor and speaker https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=197727&viewfull=1#post197727

    AudioOutputMQS audioOutput;...
  7. Replies
    3,765
    Views
    389,135

    maybe T4 is locked up with run away interrupts,...

    maybe T4 is locked up with run away interrupts, try holding program button for 15 s to erase flash
  8. Replies
    3,765
    Views
    389,135

    T4 ISR's are finicky, are you using asm volatile...

    T4 ISR's are finicky, are you using asm volatile ("dsb") in your ISR? (or spinning til flag is cleared)

    https://github.com/manitou48/teensy4/blob/master/gpt_isr.ino
  9. Replies
    3,765
    Views
    389,135

    ? uSDFS SPI problems with uSD on audio shield ...

    ? uSDFS SPI problems with uSD on audio shield T4B2R

    I fetched the latest uSDFS and MSC from github and am running 1.8.8 1.47-beta4 on T4B2R. I modified uSDFS example to just do directory...
  10. Replies
    3,765
    Views
    389,135

    Not. for T4B2 breakout i have ...

    Not. for T4B2 breakout i have

    T4 audio header silk screen
    13 to SCK (14)
    12 MISO (12)
    10 CS (10)
    11 ...
  11. Replies
    3,765
    Views
    389,135

    The NXP SDK has examples using the GPT when...

    The NXP SDK has examples using the GPT when clocked from Peripheral clock @150mhz. Of course, SDK core structure is much different from Teensy core. The SDK also has a "clock configuration" gui that...
  12. If you're not seeing 3v3 on SDA, then you need to...

    If you're not seeing 3v3 on SDA, then you need to check your wiring/soldering. Or maybe one of your I2C devices is misbehaving. Can you disconnect each I2C device to identify the faulty device?
    ...
  13. Replies
    4
    Views
    138

    My first reply was faulty, I thought you were...

    My first reply was faulty, I thought you were trying to use AudioInputAnalogStereo() with two pins -- which required one pin on ADC0 and the other on ADC1. Your question was about just one pin...
  14. Replies
    3,765
    Views
    389,135

    I'm pretty sure GPT capture works on T4 (1062),...

    I'm pretty sure GPT capture works on T4 (1062), see https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=204630&viewfull=1#post204630
    GPT2 capture 1 GPIO_AD_B1_03 pin 15 Serial3 Rx...
  15. Wow, that's a lot of components! Do you have a...

    Wow, that's a lot of components! Do you have a scope? Observing I2C SCL and SDA in action might be enlightening.

    you also might try the i2c_t3 lib in place of Wire lib. It has a Wire.resetBus()...
  16. ADXL345 data sheet says max SPI is 5mhz. you...

    ADXL345 data sheet says max SPI is 5mhz. you might modify library to use slower SPI clock.

    ADXL345::ADXL345(int CS) {
    status = ADXL345_OK;
    error_code = ADXL345_NO_ERROR;

    gains[0] =...
  17. Replies
    3,765
    Views
    389,135

    The T4 crypto accel (DCP) is not the same as...

    The T4 crypto accel (DCP) is not the same as T3.5/T3.6 (MMCAU). Searching the first few posts of the this thread, post #4 i think, mentions crypto accel with some preliminary results at...
  18. Replies
    4
    Views
    138

    A little above my pay grade, but audio lib wants...

    A little above my pay grade, but audio lib wants to have an ADC pin on ADC0 and the other on ADC1 (A2 and A3 can satisfy that, but i don't think A16 and A17 are on distinct ADC controllers) See...
  19. Re: pullups with device powered as described...

    Re: pullups
    with device powered as described in post #6, what voltage do you read on SDA and SCL?

    A similar device, discussed at...
  20. Replies
    3
    Views
    88

    you also need to connect T3.2 DAC pin to audioIn...

    you also need to connect T3.2 DAC pin to audioIn on the shield

    here is a sketch to play a sine wave through DAC to prop shield (you need to start up serial monitor for it to work)

    // prop...
  21. Replies
    3,765
    Views
    389,135

    you might read further in that thread about...

    you might read further in that thread about adding asm volatile ("dsb") ; to ISR.
  22. Replies
    3,765
    Views
    389,135

    SPISettings strangeness?? Here is a little SPI...

    SPISettings strangeness??

    Here is a little SPI performance sketch that behaves differently if a SPISettings variable is used in SPI.beginTransaction() vs embedded settings.

    // t4 spi
    // bus...
  23. Replies
    3,765
    Views
    389,135

    visit...

    visit https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=195605&viewfull=1#post195605
  24. Replies
    2
    Views
    202

    You need to remove the heavy lifting out of the...

    You need to remove the heavy lifting out of the ISR. With only one SPI device, you can just do SPI.beginTransaction() once. You can also use digitalWriteFast() to save a few nanoseconds. Using...
  25. Replies
    17
    Views
    682

    maybe your non-playing WAV files are not...

    maybe your non-playing WAV files are not formatted correctly. here are parameters for Paul's WAV files
    SDTEST1.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz
    ...
  26. FWIW, i ran your sketch adding a sine-wave on the...

    FWIW, i ran your sketch adding a sine-wave on the T3.2 DAC (A14) as my 1khz input jumpered to A3 and hooked to scope. I didn't have any FastLEDs connected. sine wave on scope had no noise. (maybe...
  27. You could use the DAC (A12) jumpered to audioIn...

    You could use the DAC (A12) jumpered to audioIn on the propshield with audio amp pin enabled to drive an 8 ohm speaker connected to shield. Here's a link on 8-bit WAV for LC ...
  28. Replies
    3,765
    Views
    389,135

    One of my GPS requries 5v, i'd just use a 2nd USB...

    One of my GPS requries 5v, i'd just use a 2nd USB to T3.2 and use its Vin to power the GPS, and jumper the PPS pin to one of the Serialx male pins on the T4 breakout.
  29. Replies
    49
    Views
    12,991

    Discussion reminds of ye old "rugged arduino" ...

    Discussion reminds of ye old "rugged arduino" https://www.rugged-circuits.com/10-ways-to-destroy-an-arduino

    Or use littlebits to help you properly connect components. :D
  30. Replies
    3
    Views
    157

    please provide the sketch you are running and...

    please provide the sketch you are running and maybe a photo of your setup and which encoder are you using? (vendor/model) Do you have soldered headers?
  31. Here is a T3.2 sketch where you can define...

    Here is a T3.2 sketch where you can define FASTISR to have the core transfer to your ISR on a pin interrupt. you are then responsible for figuring out which pin in PORTC interrupted and clearing the...
  32. Replies
    34
    Views
    1,111

    can you post your "sketch of death" that is...

    can you post your "sketch of death" that is running on your T3.6?
  33. The sparkfun library is based on Wire lib, but...

    The sparkfun library is based on Wire lib, but you have also included i2c_t3.h library which is not compatible with Wire.h -- you can't use them both in one sketch. For example, the begin() for each...
  34. Replies
    3,765
    Views
    389,135

    I have examples using internal DAC to do ADC...

    I have examples using internal DAC to do ADC compare, and using ADC_ETC to do timed ADC reads, and free-running ADC with double-buffered DMA, BUT i never found a way to do what audio lib needs: ...
  35. Did you buy your Teensy 2 from PJRC or an...

    Did you buy your Teensy 2 from PJRC or an approved Teensy distributor? Often counterfeits are unreliable.

    https://forum.pjrc.com/threads/23601-Official-Distributors
  36. Replies
    3,765
    Views
    389,135

    Sorry you misunderstood my poor attempt at humor....

    Sorry you misunderstood my poor attempt at humor. I had actually tried to reply to your post with just "sure", and the forum gui (vBulletin) would not accept such a short reply. go figure.
  37. Replies
    3,765
    Views
    389,135

    sure. "random words to get around minimum...

    sure.

    "random words to get around minimum reply threshold"
  38. Replies
    3,765
    Views
    389,135

    Should i be able to see the white wire without...

    Should i be able to see the white wire without pulling MCU out of breakout board? I haven't ever pulled MCU out, fearing i'll not get pogo pins aligned again ?? any how, the loader log seems to...
  39. Replies
    3,765
    Views
    389,135

    OK, beta3 really did update my bootloader. Help...

    OK, beta3 really did update my bootloader. Help verbose says: Board is: Teensy 4-Beta2 (IMXRT1062), version 0.04

    So i built WavFilePlayer on 1.47-beta2 system, and now the beta2 version of...
  40. Replies
    3,765
    Views
    389,135

    Re: broken WavFilePlayer I'll check msg #6...

    Re: broken WavFilePlayer


    I'll check msg #6 stuff, and add if not there. The WavFilePlayer problem is also popping up in a lot of threads for T3.5 and T3.6 BUILTIN_SDCARD. Started failing with...
  41. Replies
    3,765
    Views
    389,135

    in audio lib: play_sd_wav.h: change buffer...

    in audio lib:
    play_sd_wav.h: change buffer declaration to uint8_t buffer[512] __attribute__((aligned(0x4)));

    in play_sd_wav.cpp: comment out __disable_irq(); before SD.open();

    The SD lib was...
  42. Replies
    3,765
    Views
    389,135

    Well, BUILTIN_SDCARD WavFilePlayer (with audio...

    Well, BUILTIN_SDCARD WavFilePlayer (with audio lib hacks) is working now on my T4B2 with beta3?? I reseated audio board and used another USB port on linux box ... I can't see how that changed...
  43. Replies
    3,765
    Views
    389,135

    With beta3, i had to re-apply hack to audio lib...

    With beta3, i had to re-apply hack to audio lib play_sd_wav.h and .cpp to fix BUILTIN_SDCARD WavFilePlayer bug in T4, T3.6, T3.5, see...
  44. This is likely a BUILTIN_SDCARD problem with...

    This is likely a BUILTIN_SDCARD problem with Teensyduino 1.46, discussed several times on this forum, see
    ...
  45. Replies
    3,765
    Views
    389,135

    Yep, RTC is set to correct time and is ticking ...

    Yep, RTC is set to correct time and is ticking ;)

    // T4 RTC 32khz crystal
    #include <time.h>

    void setup() {
    }

    void loop() {
    time_t tt = rtc_get();
  46. Replies
    3,765
    Views
    389,135

    Yes, my disjointed CalibrateSensors and...

    Yes, my disjointed CalibrateSensors and MotionCal (on another machine) worked after Paul's eeprom.c fix.

    I just installed 1.47-beta3 on T4B2 and it said bootloader updated. I actually thought i...
  47. Replies
    3,765
    Views
    389,135

    Re: T4 EEPROM FWIW, i did a few more EEPROM...

    Re: T4 EEPROM
    FWIW, i did a few more EEPROM tests on both 1052 and 1062. I confirmed that if flash sector is filled, core properly preserves current data bytes and reflashes sector and restores...
  48. Replies
    3,765
    Views
    389,135

    Thanks! looks good.

    Thanks! looks good.
  49. Replies
    3,765
    Views
    389,135

    I also had an EEPROM test sketch that made NO use...

    I also had an EEPROM test sketch that made NO use of Serial -- it incremented EERPOM byte 0 every 5 seconds, and flashed the LED the number of times determined by the read of EEPROM byte 0. It also...
  50. Replies
    3,765
    Views
    389,135

    It may not be helpful or relevant but NXP SDK has...

    It may not be helpful or relevant but NXP SDK has bootloader source and flexspi flash example.

    middleware/mcu-boot/tools/src/bootloader
    middleware/mcu-boot/src/bootloader
    ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4