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

  1. Replies
    1
    Views
    3

    Any worthwhile updates included in 1.8.11? I...

    Any worthwhile updates included in 1.8.11? I just went back to 1.8.9 …

    Only first thing (updated MOD page p#2) : make the 1008 OC build set that speed not 996 MHz
  2. @Frank - I was on my way to Zzzzz I realized I...

    @Frank - I was on my way to Zzzzz I realized I should have added after send, glad you tested. - Glad/Sad my recollection was correct :)/:(. That thread where I chimed in started with that or similar...
  3. If the restart timer is not cancelled on the next...

    If the restart timer is not cancelled on the next start - do Power Off button - the timer will bring it back again if I'm remembering the right thing from the thread where I first tried it.
  4. Is TeensyDuino 1.49 installed? There was a...

    Is TeensyDuino 1.49 installed? There was a recent change that fixed this.
  5. Seems I saw it noted that it was on his list - if...

    Seems I saw it noted that it was on his list - if a bootloader change can address it and be found I suppose as time allows.



    I pulled the lib down Frank - but haven't gotten to it yet. I see...
  6. Replies
    68
    Views
    644

    That instruction was added ~7 years back - on all...

    That instruction was added ~7 years back - on all M4's {and Frank noted that Atomic uses it} - so it pre-dates multicore on these MCU's. How synchronization will work across the 1170 asymmetric...
  7. Replies
    68
    Views
    644

    Good point Frank - atomic on the variable could...

    Good point Frank - atomic on the variable could affect ANY use of that variable that 'compiler thinks' needs to be protected - rather than just where it is known to be needed as where above it is...
  8. Replies
    68
    Views
    644

    I figured CLOCK res could be a factor - but I saw...

    I figured CLOCK res could be a factor - but I saw it and had to make note of it in case there was some off by 1.

    As far as:

    do
    {
    newValue = __LDREXW(&loopCnt) + 1;
    }...
  9. Replies
    68
    Views
    644

    I FIGURED IT OUT! I considered this doing the...

    I FIGURED IT OUT! I considered this doing the micros() edit - and it just came back to me as I put a log in the woodstove ...

    When doing micros() I didn't have any side effects reading two DWORDS...
  10. Safe to assume nothing is connected to pins...

    Safe to assume nothing is connected to pins 18/19? And they are properly soldered connected and not shorted. If that is the problem Paul's test will show voltage.

    I ran that sample on T4 with...
  11. Replies
    405
    Views
    24,699

    Good job, I think I posted I built one of the...

    Good job, I think I posted I built one of the second betas to work. Just used a hand iron and solder wire this time.

    I noticed the 1220 cell on my first Beta board was dead. Since I put headers...
  12. Replies
    5
    Views
    124

    Pete: Kurt posted an updated imxrt-size on his...

    Pete:
    Kurt posted an updated imxrt-size on his github. It gives better feedback - here is the last compile done here:

    FlexRAM section ITCM+DTCM = 512 KB
    Config : aaaaaaab
    ITCM : 28752...
  13. Replies
    33
    Views
    1,268

    Sticky: I wondered about that when I visited the first...

    I wondered about that when I visited the first post ...
  14. Replies
    5
    Views
    124

    T4 RAM is two blocks of 512 KB. Low RAM1 block...

    T4 RAM is two blocks of 512 KB. Low RAM1 block of 512KB holds code and compile allocs and runs at CPU Speed. Upper RAM2 holds DMA memory and dynamic allocs - and runs at CPU/4 speed.

    See Memory...
  15. Replies
    20
    Views
    161

    Mike - that is running sniffer on T4? If so...

    Mike - that is running sniffer on T4? If so using which version of the SCL/SDA read p#12 or p#13?

    For 'text' transfer devices it might be handy to have the typical HEX/ASCII table dump for...
  16. Paul seemed to expect the SCB_AIRCR to work as...

    Paul seemed to expect the SCB_AIRCR to work as well. There maybe be something fixable in the bootloader catching it that Paul may address in future if possible.
  17. Replies
    68
    Views
    644

    Interesting. The " ldrex/strex " was used in...

    Interesting. The " ldrex/strex " was used in micros() because we needed to protect read TWO DWORD values. Test code made some millions likely of repeat calls and without it the millisecond timer...
  18. Replies
    20
    Views
    161

    Using the port read in p#12 with an altered test...

    Using the port read in p#12 with an altered test SSD1306 code not slamming the display I get:


    494522 I2C(3c) Wr 5 B to 0... 22 0 ff 21 0 . Done
    494522 I2C(3c) Wr 1 B to 0... 7f . Done
    494522...
  19. Replies
    20
    Views
    161

    Is this somehow right - with the bits in the...

    Is this somehow right - with the bits in the right order and location?


    /*
    #define CORE_PIN18_PORTREG GPIO6_DR
    #define CORE_PIN19_PORTREG GPIO6_DR

    #define CORE_PIN18_BIT ...
  20. Replies
    20
    Views
    161

    Put this in copy here and on T4 versus T_3.6 it...

    Put this in copy here and on T4 versus T_3.6 it is missing many of the i2c address values as '3c' to the SSD1306. Showing as : 28,6f,51,3b,24,a,73,3f,0,other. There were some few odd #'s using...
  21. Replies
    33
    Views
    1,268

    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...
  22. Replies
    68
    Views
    644

    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...
  23. Replies
    20
    Views
    161

    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...
  24. Replies
    34
    Views
    549

    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.
  25. Replies
    68
    Views
    644

    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...
  26. Replies
    68
    Views
    644

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

    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...
  28. Replies
    68
    Views
    644

    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...
  29. Replies
    68
    Views
    644

    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? ...
  30. Replies
    68
    Views
    644

    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...
  31. 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...
  32. 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...
  33. 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...
  34. 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...
  35. 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.
  36. Replies
    24
    Views
    1,106

    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)...
  37. 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...
  38. Replies
    68
    Views
    644

    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=");
    ...
  39. 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...
  40. … 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...
  41. Replies
    68
    Views
    644

    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...
  42. Replies
    122
    Views
    8,260

    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...
  43. 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...
  44. 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 ...
  45. Replies
    8
    Views
    96

    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()...
  46. 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...
  47. Replies
    9
    Views
    143

    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...
  48. Replies
    20
    Views
    161

    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:
    >>...
  49. Replies
    7
    Views
    143

    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...
  50. Replies
    199
    Views
    3,741

    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.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4