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

Search:

Type: Posts; User: defragster

Page 1 of 10 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    31
    Views
    1,141

    Sticky: it is in :...

    it is in : ...\hardware\teensy\avr\cores\teensy4\pwm.c

    Part of PWM code for analogWrite and analogWriteFrequency

    // ...
    void quadtimerWrite(IMXRT_TMR_t *p, unsigned int submodule, uint16_t...
  2. Replies
    43
    Views
    440

    I certainly meant for it to be read that way :) -...

    I certainly meant for it to be read that way :) - it's the only inc in the code … post updated

    Looks like very good work, and a great example of TeensyTimerTool#callback-functions sending in...
  3. Replies
    9
    Views
    113

    Running it against i2c SSD1306 OLED at 100 MHz...

    Running it against i2c SSD1306 OLED at 100 MHz and it looks to be catching data - mostly works if bumped to 400 MHz - but that will not sample at right rate and enough at 1 us - and it hangs after...
  4. Replies
    34
    Views
    538

    Wow - that is a long time! I ordered a set of...

    Wow - that is a long time! I ordered a set of OSH T4 PT8211's Jan 1st and got them in good time this past week.
  5. Replies
    43
    Views
    440

    More ODDNESS? Not helpful - just shows there is...

    More ODDNESS? Not helpful - just shows there is something unhandled or errata going on?

    When writing the micros() using the systick millis and ARM_DWT_CYCCNT combined Frank pointed to this that...
  6. Replies
    43
    Views
    440

    I did that too - moved the dsb around - moving...

    I did that too - moved the dsb around - moving BEFORE The timer clear results in NO PRINT from while(1).

    The problem is the non-atomic INCREMENT of the Count in loop() and then the ZERO in the...
  7. Replies
    43
    Views
    440

    Got the same number/behavior with p#19 code. ...

    Got the same number/behavior with p#19 code.

    Moved the print from _isr and it never printed until DSB or DMB were added - ISB didn't do anything in quick glance?

    Moving the print to the...
  8. Replies
    43
    Views
    440

    Scanned the code and found that yield() after...

    Scanned the code and found that yield() after first post here - expected it was calling back to the PJRC yield() but didn't find that - so it just replaced it as needed?
    - it is a meaningless piece...
  9. Replies
    43
    Views
    440

    Thanks Frank - added above - that was needed in...

    Thanks Frank - added above - that was needed in the callback()

    >> asm volatile ("dsb"); // otherwise it doubles

    As noted - _isr() code gets ODD!

    How can one tell if the dsb is needed? ...
  10. Replies
    43
    Views
    440

    Shows the trouble of uning _isr()'s :( - as does...

    Shows the trouble of uning _isr()'s :( - as does the following - shows the value of the TCK software 'polling' for end use predictability.

    Question: Is there a TTT_yield() to call that will ping...
  11. To add to what Pete posted … Teensy when compiled...

    To add to what Pete posted … Teensy when compiled with USB Always starts it - however depending on PC connection time and when SerMon is ready it can be in setup() and beyond before USN connect is...
  12. A quick test compile/upload a simple BLINK...

    A quick test compile/upload a simple BLINK sketch. Assuming that runs when all the other lights and hardware are disabled - it should act normally given a good cable and healthy T_3.6

    Not a...
  13. easy first guess - power and ground routing...

    easy first guess - power and ground routing through Teensy and USB connecter to computer?

    Either the USB connector is being abused for GND current and interfering with data transmission or perhaps...
  14. It must relate to that Frank. I did a quick edit...

    It must relate to that Frank.
    I did a quick edit to write only 1 of the four when updated from a RAM value {rather than read inc and write of all four NVRAM's} and it went to 10915 updates / second...
  15. For those cases where expected Restart stops in...

    For those cases where expected Restart stops in bootloader - that may be on Paul's list to address as possible.
  16. Replies
    24
    Views
    1,099

    Looking to the T_4.1 thread Paul posted this...

    Looking to the T_4.1 thread Paul posted this:



    That QSPI could lead to double or more of : 642 kbyte/sec WRITE and 2727 kbyte/sec READ !

    T_4.1 still a work in progress some (hopefully few)...
  17. Good there is a path forward. FYI - Teensy 4 has...

    Good there is a path forward. FYI - Teensy 4 has 3 i2c busses - all are supported with included Wire as Wire, Wire1 and Wire2 so you can use 2 of the same i2c ID if put on a unique bus.

    As far as...
  18. Replies
    43
    Views
    440

    Something odd on your end ? T_4.0 at 600 MHz? ...

    Something odd on your end ? T_4.0 at 600 MHz?

    This code - need to add volatile given _isr() calling:

    volatile unsigned loopCnt = 0;

    void callback()
    {
    Serial.print("loop()/sec=");
    ...
  19. TeensyDuino 1.49 presents a good working and...

    TeensyDuino 1.49 presents a good working and mature i2c Wire master library for Teensy 4.0!

    Changing to that may require some edits if any i2c_t3 custom code was used. But that Wire code has been...
  20. … telling me this post is too short ... ??? ...

    … telling me this post is too short ... ???


    THAT DOES IT - GREAT FIND Frank! I did some searches and scanning of NXP docs and I found no indications of what you explored to find.

    I can now...
  21. Replies
    43
    Views
    440

    This is very cool looking @luni! Here is the...

    This is very cool looking @luni!

    Here is the example I just wrote - with simple change to newest example:


    #include "TeensyTimerTool.h"

    using namespace TeensyTimerTool;

    void...
  22. Replies
    122
    Views
    8,208

    Indeed this is out of place here - though seems...

    Indeed this is out of place here - though seems like an issue that needs attention/resolution. Please start a new thread with this commentary and ideally a sketch that runs on T_3.2 as written but...
  23. The 'Multiple libraries were found for ...' is a...

    The 'Multiple libraries were found for ...' is a bogus message where the IDE broke that reporting feature with release of 1.8.10.

    It also seems to do extra recompiling on a rebuild that 1.8.9...
  24. Interesting - not sure if I tested with vBat...

    Interesting - not sure if I tested with vBat either - though it seemed that when USB stayed connected there was power to maintain low power when I was abusing the reserved dWords I found before ...
  25. Replies
    8
    Views
    93

    It looks like the ADC library can be used for...

    It looks like the ADC library can be used for single reads see this example :: ...\hardware\teensy\avr\libraries\ADC\examples\analogRead\analogRead.ino
    after setup() has this code:


    void loop()...
  26. the general idea AFAIK is that the code is...

    the general idea AFAIK is that the code is compiled more in order as written so stepping through sources matches execution order. And some optimizations that would obfuscate walking the code during...
  27. Replies
    9
    Views
    140

    post #15 on this thread: Soft-reboot-on-Teensy4-0...

    post #15 on this thread: Soft-reboot-on-Teensy4-0


    It was working on first beta 1050 when this was linked: https://github.com/tonton81/Watchdog_t4

    Didn't come across the note by Paul about...
  28. Replies
    9
    Views
    113

    Very cool looking. I don't have an MPU6050 to...

    Very cool looking. I don't have an MPU6050 to watch - wondering what happens if it just watches any random i2C transfers?

    Looks like this external file is really needed - not on my system:
    >>...
  29. Replies
    7
    Views
    139

    Awesome - glad I was reading and thought to...

    Awesome - glad I was reading and thought to mention it and it made such a dramatic difference! I've spent the last year with the T4 beta to release and it runs code from RAM by default.

    Just read...
  30. Replies
    199
    Views
    3,727

    Was that with the latest just released...

    Was that with the latest just released TeensyDuino 1.49? If you can post a simple sketch that works for T_3.2 that fails on T_4.0 with TD 1.49 that would be the first step.
  31. Replies
    9
    Views
    140

    This thread ::...

    This thread :: forum.pjrc.com/threads/58484-issue-to-reporogram-T4-0

    Next post has a LIB version for that delayed 'boomerang' restart. It works - just have to be sure the LP restart is...
  32. Replies
    9
    Views
    140

    Open issue AFAIK … Yes - T4 just goes offline to...

    Open issue AFAIK … Yes - T4 just goes offline to Bootloader - no restart.

    Closest solution was set the wake up timer for 2 seconds then SLEEP the T4 - it then auto wakes to setup() in 1-2 seconds....
  33. Have you got a minute to test ? My efforts were...

    Have you got a minute to test ? My efforts were wrong or it doesn't work as expected.




    That looks nice Frank - I can't test it just now. One comment - you might #ifdef it to have those...
  34. Okay - so I read the code right - though when...

    Okay - so I read the code right - though when _isr triggers I never see that bit #17 set with the HEX print of the register - until power on? Would be nice to have a way for the user callback to...
  35. Built here in 7 min 21 secs - a long time - but...

    Built here in 7 min 21 secs - a long time - but no abusive looking CPU / RAM / or DISK usage? An i7 with 4*2 cores showed 20% - with no core pegged - 8 sets of jaggies. All building on SSD drive T:...
  36. Frank - I see the _isr() trigger and reset NOT as...

    Frank - I see the _isr() trigger and reset NOT as :: SNVS_LPSR |= (1 << 17); // PG 1313 clear interrupt
    But as this coded above p#11:: SNVS_LPSR |= (1 << 18); // PG 1313 : Write SPO bit to clear...
  37. Replies
    6
    Views
    107

    How much current does that LITE pin expect to...

    How much current does that LITE pin expect to work?

    Does this work?


    pinMode(TFT_LITE,OUTPUT);
    digitalWrite(TFT_LITE,HIGH);

    And pinMode(,OUTPUT) isn't needed for analogWrite()
  38. I had an ili9341 go white - it was a display...

    I had an ili9341 go white - it was a display failure. YMMV: Mine came back closing J1 - AFAIK that bypasses the 5V part - so then it could only run at 3.3V?
  39. Replies
    7
    Views
    139

    Not sure what current code looks like ... If...

    Not sure what current code looks like ...
    If the _isr() did this stop() on end then bDone test is not needed at top of _isr() :: if (!bDone && last_portb != current_portb)


    if...
  40. Frank - this edits the upper WORD? Not sure to...

    Frank - this edits the upper WORD? Not sure to what effect - did not use :: // SNVS_HPCOMR |= (1 << 4);

    Also page number 1313 in Rev1 RM would have been a good link :)

    Here is a run of code...
  41. Thanks Frank - here is a starter sketch: ...

    Thanks Frank - here is a starter sketch:


    void setup() {
    // put your setup code here, to run once:
    Serial.begin(115200);
    while (!Serial && millis() < 4000 );
    Serial.println("\n" __FILE__...
  42. Replies
    8
    Views
    93

    It is now ... with @AlexisJohn a first time...

    It is now ... with @AlexisJohn a first time poster with no example code or specifics posted it seemed like a good starting point to clarify :)

    ADC was just updated to support T_4.0 in latest TD...
  43. Replies
    8
    Views
    93

    If using on the same pins there will be a...

    If using on the same pins there will be a conflict as the ADC library needs to be in control of those pins. Is that the desired use case?
  44. Replies
    12
    Views
    281

    Teensy 4.0 does have USB Host software code...

    Teensy 4.0 does have USB Host software code working for ps4 controllers and Bt dongle if that was the goal - there is a thread on that with test usage - titled as USB Host T_3.6 in some fashion...
  45. Would be nice to have notice of Power OFF start. ...

    Would be nice to have notice of Power OFF start. Of course starting a timer to notify if the Power OFF was cut short and not actualized, or having it be a CHANGE interrupt where the return to HIGH...
  46. Give this article by Paul a read :...

    Give this article by Paul a read : https://www.pjrc.com/better-spi-bus-design-in-3-steps/

    CS pins should be pulled HIGH when the device is not to be addressed. The CS pin to a single device must...
  47. Replies
    3
    Views
    57

    resolved ...

    resolved ...
  48. Replies
    31
    Views
    1,141

    Sticky: Can you post a simple repro example/steps? Not...

    Can you post a simple repro example/steps? Not sure how '@ 2M baud' relates as USB Serial is always at USB max throughput - and that was stepped up between TD 1.48 and 1.49.


    Does this change...
  49. Replies
    29
    Views
    2,452

    Looking at INPUT_DISABLE it changes the...

    Looking at INPUT_DISABLE it changes the hysteresis handling of the pin. That explains why it was resistant to change mid-value as shown in post #10


    } else { // INPUT_DISABLE
    *(p->pad) =...
  50. Replies
    122
    Views
    8,208

    Frank - assuming the public details are limited...

    Frank - assuming the public details are limited to the NXP link on p#1. There is the same single DOCUMENTATION on that link that was there with minor added details to the main page. Looking there...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4