Forum Rule: Always post complete source code & details to reproduce any issue!
Page 167 of 167 FirstFirst ... 67 117 157 165 166 167
Results 4,151 to 4,160 of 4160

Thread: Teensy 4.0 First Beta Test

  1. #4151
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,062
    Paul - Very good update for Windows - just some more fun with the rest of the UI tidbits.

    ~6.5 Hours running here - first and one follow up upload of the LPS.ino. That is twice closing the t_sermon as noted in prior post.

    At this point still running happily - just got back to looking it was up at 230K … now 210K … then back up to 230K.

    It is clearly faster and IIRC the old version would have croaked long ago.

    Click image for larger version. 

Name:	First6hrNewSerMon1.47.png 
Views:	2 
Size:	49.1 KB 
ID:	17283

    That was a long term little disturbance run - just cut power ~10 times and t_sermon picks up on repower.

    … a couple other interruptions and uploads pending …

    >> Did half dozen power Off>On' and t-sermon picks up running fine.
    >> did 10 Button to bootloader and TyComm sending Reset and it did and came up running fine
    >> did 10 Button to bootloader and TyComm Upload of prior lps.hex and it did and came up running fine
    >> did half dozen USB cable Pull and Plug and it came up running fine.

    That seems MORE robust - I've had times where I had to Close SerMon window and click open again to get it to establish a connect.
    Last edited by defragster; Yesterday at 05:14 AM.

  2. #4152
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,062
    >> THIS got dropped on the wrong thread … blaming the foum software since it was too big it failed to post a few times …

    Paul: loop() Code Mod to lps.ino - for a bit more stress that breaks here:
    Code:
    void loop() {
      while (1) {
        Serial.print("count=");
        Serial.print(count);
        Serial.print(", lines/sec=");
        Serial.println(count_per_second);
        count = count + 1;
        uint32_t msec = millis();
        if (msec - prior_msec > 1000) {
          delay(1);
          // when 1 second as elapsed, update the lines/sec count
          prior_msec = prior_msec + 1000;
          count_per_second = count - prior_count;
          prior_count = count;
        }
      }
    }
    With or without the delay(1); on the second update this ruins the operation of Teensy_serialmon. It dies if running - won't get past the first second or now won't start at all.

    At the same time TyCommander for Serial monitor is running at 74K to 116K lps. And running well for some minutes. IT IS USING 29.3% CPU - making this fitful to type. Which is the typical unchanged performance I've seen - until something worse happens where it gets longer faster strings.

    IDE has this in the console: TOO LONG at 270K chars … see file - that had to be zipped for 80KB over limit ::
    Code:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    	at javax.swing.text.DefaultHighlighter$SafeDamager.run(DefaultHighlighter.java:608)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    	at javax.swing.text.DefaultHighlighter$SafeDamager.run(DefaultHighlighter.java:608)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    	at javax.swing.text.DefaultHighlighter$SafeDamager.run(DefaultHighlighter.java:608)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Exception in thread "AWT-EventQueue-0" javax.swing.text.StateInvariantError: Can't render line: 5273
    	at javax.swing.text.PlainView.drawLine(PlainView.java:92)
    	at javax.swing.text.PlainView.paint(PlainView.java:311)
    	at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434)
    	at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:737)
    	at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:881)
    	at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:860)
    	at javax.swing.JComponent.paintComponent(JComponent.java:780)
    	at javax.swing.JComponent.paint(JComponent.java:1056)
    	at javax.swing.JComponent.paintChildren(JComponent.java:889)
    	at javax.swing.JComponent.paint(JComponent.java:1065)
    	at javax.swing.JViewport.paint(JViewport.java:728)
    	at javax.swing.JComponent.paintChildren(JComponent.java:889)
    	at javax.swing.JComponent.paint(JComponent.java:1065)
    	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
    	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
    	at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
    	at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
    	at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
    	at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
    	at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
    	at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
    	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
    	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
    	at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
    	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    
    
    // ...
    
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
    	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
    	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
    	at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
    	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Exception in thread "AWT-EventQueue-0" javax.swing.text.StateInvariantError: Can't render line: 0
    	at javax.swing.text.PlainView.drawLine(PlainView.java:92)
    	at javax.swing.text.PlainView.paint(PlainView.java:311)
    	at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434)
    	at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:737)
    	at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:881)
    	at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:860)
    	at javax.swing.JComponent.paintComponent(JComponent.java:780)
    	at javax.swing.JComponent.paint(JComponent.java:1056)
    	at javax.swing.JComponent.paintChildren(JComponent.java:889)
    	at javax.swing.JComponent.paint(JComponent.java:1065)
    	at javax.swing.JViewport.paint(JViewport.java:728)
    	at javax.swing.JComponent.paintChildren(JComponent.java:889)
    	at javax.swing.JComponent.paint(JComponent.java:1065)
    	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
    	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
    	at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
    	at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
    	at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
    	at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
    	at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
    	at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
    	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
    	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
    	at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
    	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" javax.swing.text.StateInvariantError: Can't render line: 49591
    	at javax.swing.text.PlainView.drawLine(PlainView.java:92)
    	at javax.swing.text.PlainView.paint(PlainView.java:311)
    	at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434)
    	at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:737)
    	at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:881)
    	at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:860)
    	at javax.swing.JComponent.paintComponent(JComponent.java:780)
    	at javax.swing.JComponent.paint(JComponent.java:1056)
    	at javax.swing.JComponent.paintChildren(JComponent.java:889)
    	at javax.swing.JComponent.paint(JComponent.java:1065)
    	at javax.swing.JViewport.paint(JViewport.java:728)
    	at javax.swing.JComponent.paintChildren(JComponent.java:889)
    	at javax.swing.JComponent.paint(JComponent.java:1065)
    	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
    	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
    	at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
    	at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
    	at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
    	at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
    	at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
    	at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
    	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
    	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
    	at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
    	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "Thread-38" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "Thread-40" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    Last edited by defragster; Today at 01:03 AM.

  3. #4153
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,073
    @Paul, @mjs513, @defragster - Not sure which thread to mention this again:
    UncanneyEys0 (earlier mjs513 version) -

    Thought I would try loading it again. And it built fine:

    Output from my current version of the More info
    Code:
    FlexRAM section ITCM+DTCM = 512 KB
        Config : aaaaaaaf
        ITCM :  39664 B	(60.52% of   64 KB)
        DTCM : 185024 B	(40.33% of  448 KB)
        Available for Stack: 273728
    OCRAM: 512KB
        DMAMEM:      0 B	( 0.00% of  512 KB)
        Available for Heap: 524288 B	(100.00% of  512 KB)
    Flash: 214672 B	(10.57% of 1984 KB)
    ===info ||| Multiple libraries were found for "{0}" ||| [Adafruit_GFX.h]
     Used: D:\arduino-1.8.9\hardware\teensy\avr\libraries\Adafruit_GFX
     Not used: C:\Users\kurte\Documents\Arduino\libraries\Adafruit_GFX_Library
    Multiple libraries were found for "ST7735_t3.h"
     Used: C:\Users\kurte\Documents\Arduino\libraries\ST7735_t3
     Not used: D:\arduino-1.8.9\hardware\teensy\avr\libraries\ST7735_t3
    Using library debug_tt in folder: C:\Users\kurte\Documents\Arduino\libraries\debug_tt (legacy)
    Using library SPI at version 1.0 in folder: D:\arduino-1.8.9\hardware\teensy\avr\libraries\SPI 
    Using library Adafruit_GFX at version 1.5.6 in folder: D:\arduino-1.8.9\hardware\teensy\avr\libraries\Adafruit_GFX 
    Using library ST7735_t3 at version 1.0.0 in folder: C:\Users\kurte\Documents\Arduino\libraries\ST7735_t3 
    "D:\\arduino-1.8.9\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-size" -A "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_487078/uncannyEyes0.ino.elf"
    Sketch uses 214672 bytes (10%) of program storage space. Maximum is 2031616 bytes.
    Global variables use 224688 bytes (21%) of dynamic memory, leaving 823888 bytes for local variables. Maximum is 1048576 bytes.
    D:\arduino-1.8.9\hardware\teensy/../tools/teensy_post_compile -file=uncannyEyes0.ino -path=C:\Users\kurte\AppData\Local\Temp\arduino_build_487078 -tools=D:\arduino-1.8.9\hardware\teensy/../tools -board=TEENSY40 -reboot -port=usb:0/140000/0/3/1/2 -portlabel=(null) -portprotocol=(null) 
    No Teensy boards were found on any USB ports of your computer.
    Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch.
    Board at usb:0/140000/0/3/1/2 is not available
    I am used to having this one kill the USB... But this time when the load completed, windows 10 64 bit gave me a message about installing new device (NXP Generic device???)...

    out of Curiosity, I wondered what it would do if I plugged it into a linux board. Most convenient one I had was RPI4, So I plugged it in there, and sure enough it is showing up as some generic device?

    Taking a look at the system messages I see:
    Code:
    [  172.170541] usb 1-1.3: new high-speed USB device number 6 using xhci_hcd
    [  172.311005] usb 1-1.3: New USB device found, idVendor=1fc9, idProduct=0135, bcdDevice= 1.01
    [  172.311022] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [  172.311035] usb 1-1.3: Product: SE Blank RT Family
    [  172.311048] usb 1-1.3: Manufacturer: NXP      SemiConductors Inc
    [  172.314482] hid-generic 0003:1FC9:0135.0004: hiddev97,hidraw3: USB HID v1.00 Device [NXP      SemiConductors Inc  SE Blank RT Family ] on usb-0000:01:00.0-1.3/input0
    Information from USB system:
    Code:
    pi@RPI4B:~ $ lsusb
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 006: ID 1fc9:0135 NXP Semiconductors
    Bus 001 Device 004: ID 04ca:0027 Lite-On Technology Corp.
    Bus 001 Device 003: ID 1241:1177 Belkin Mouse [HT82M21A]
    Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    pi@RPI4B:~ $ lsusb -v -d 1fc9:0135
    
    Bus 001 Device 006: ID 1fc9:0135 NXP Semiconductors
    Couldn't open device, some information will be missing
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.00
      bDeviceClass            0
      bDeviceSubClass         0
      bDeviceProtocol         0
      bMaxPacketSize0        64
      idVendor           0x1fc9 NXP Semiconductors
      idProduct          0x0135
      bcdDevice            1.01
      iManufacturer           1
      iProduct                2
      iSerial                 0
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength       0x0022
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0
        bmAttributes         0xc0
          Self Powered
        MaxPower              100mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         3 Human Interface Device
          bInterfaceSubClass      0
          bInterfaceProtocol      0
          iInterface              0
            HID Device Descriptor:
              bLength                 9
              bDescriptorType        33
              bcdHID               1.00
              bCountryCode            0 Not supported
              bNumDescriptors         1
              bDescriptorType        34 Report
              wDescriptorLength      76
             Report Descriptors:
               ** UNAVAILABLE **
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0040  1x 64 bytes
            bInterval               4
    Now if I do a 15 second reset, I see:
    Code:
    [ 1219.848267] usb 1-1.3: USB disconnect, device number 6
    [ 1247.279958] usb 1-1.3: new high-speed USB device number 7 using xhci_hcd
    [ 1247.410487] usb 1-1.3: New USB device found, idVendor=16c0, idProduct=0486, bcdDevice= 2.79
    [ 1247.410503] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 1247.410516] usb 1-1.3: Product: Teensyduino RawHID
    [ 1247.410528] usb 1-1.3: Manufacturer: Teensyduino
    [ 1247.410540] usb 1-1.3: SerialNumber: 5871650
    [ 1247.424334] hid-generic 0003:16C0:0486.0005: hiddev97,hidraw3: USB HID v1.11 Device [Teensyduino Teensyduino RawHID] on usb-0000:01:00.0-1.3/input0
    [ 1247.426207] hid-generic 0003:16C0:0486.0006: hidraw4: USB HID v1.11 Device [Teensyduino Teensyduino RawHID] on usb-0000:01:00.0-1.3/input1
    
    pi@RPI4B:~ $ lsusb
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 007: ID 16c0:0486 Van Ooijen Technische Informatica Teensyduino RawHID
    Bus 001 Device 004: ID 04ca:0027 Lite-On Technology Corp.
    Bus 001 Device 003: ID 1241:1177 Belkin Mouse [HT82M21A]
    Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    And if I then program it on RPI4 with simple program like EchoBoth: I see:
    Code:
    [ 1631.560869] usb 1-1.3: USB disconnect, device number 8
    [ 1631.954513] usb 1-1.3: new high-speed USB device number 9 using xhci_hcd
    [ 1632.085260] usb 1-1.3: config 1 interface 1 altsetting 0 bulk endpoint 0x3 has invalid maxpacket 64
    [ 1632.085270] usb 1-1.3: config 1 interface 1 altsetting 0 bulk endpoint 0x84 has invalid maxpacket 64
    [ 1632.085529] usb 1-1.3: New USB device found, idVendor=16c0, idProduct=0483, bcdDevice= 2.79
    [ 1632.085536] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 1632.085541] usb 1-1.3: Product: USB Serial
    [ 1632.085547] usb 1-1.3: Manufacturer: Teensyduino
    [ 1632.085551] usb 1-1.3: SerialNumber: 5871650
    [ 1632.087656] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
    pi@RPI4B:~ $ lsusb
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 009: ID 16c0:0483 Van Ooijen Technische Informatica Teensyduino Serial
    Bus 001 Device 004: ID 04ca:0027 Lite-On Technology Corp.
    Bus 001 Device 003: ID 1241:1177 Belkin Mouse [HT82M21A]
    Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    pi@RPI4B:~ $ lsusb -v -d 16c0:0483
    
    Bus 001 Device 009: ID 16c0:0483 Van Ooijen Technische Informatica Teensyduino Serial
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.00
      bDeviceClass            2 Communications
      bDeviceSubClass         0
      bDeviceProtocol         0
      bMaxPacketSize0        64
      idVendor           0x16c0 Van Ooijen Technische Informatica
      idProduct          0x0483 Teensyduino Serial
      bcdDevice            2.79
      iManufacturer           1 Teensyduino
      iProduct                2 USB Serial
      iSerial                 3 5871650
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength       0x0043
        bNumInterfaces          2
        bConfigurationValue     1
        iConfiguration          0
        bmAttributes         0xc0
          Self Powered
        MaxPower              100mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         2 Communications
          bInterfaceSubClass      2 Abstract (modem)
          bInterfaceProtocol      1 AT-commands (v.25ter)
          iInterface              0
          CDC Header:
            bcdCDC               1.10
          CDC Call Management:
            bmCapabilities       0x01
              call management
            bDataInterface          1
          CDC ACM:
            bmCapabilities       0x06
              sends break
              line coding and serial state
          CDC Union:
            bMasterInterface        0
            bSlaveInterface         1
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x82  EP 2 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0010  1x 16 bytes
            bInterval              16
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       0
          bNumEndpoints           2
          bInterfaceClass        10 CDC Data
          bInterfaceSubClass      0
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x03  EP 3 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0040  1x 64 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x84  EP 4 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0040  1x 64 bytes
            bInterval               0
    Device Qualifier (for other device speed):
      bLength                10
      bDescriptorType         6
      bcdUSB               2.00
      bDeviceClass            2 Communications
      bDeviceSubClass         0
      bDeviceProtocol         0
      bMaxPacketSize0        64
      bNumConfigurations      1
    can't get debug descriptor: Resource temporarily unavailable
    Device Status:     0x0000
      (Bus Powered)
    Again not sure if any of this information will be useful, but grabbed it while I could

  4. #4154
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,702
    @Paul, @mjs513, @defragster

    I just gave it a try to see if I could duplicate it and I was sort of able to, to a degree.

    I caused uncannyeyes to fail in my usual way, with one of the eyes without progmem. I do still loose USB but I don't get the window error about loosing the usb port. It prints the setup info to sermon if I open it right away but I will loose the port in the IDE (it gets grayed out). I can upload, but had to do a 15s restart once. I was trying different things - tested it with and with the imxrt-size receipe in the platforms.txt file just out of curiosity.

    UncannyEyes is getting stranger and stranger.

  5. #4155
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,062
    I recognize those 'found devices' - and posted … not reading for context just now - but here are the links matching by name for ref::

    NXP Semiconductors :: 05-18-2019, 12:08 AM :: https://forum.pjrc.com/threads/54711...ors#post206140

    and also :: Van Ooijen
    05-18-2019, 12:08 AM :: https://forum.pjrc.com/threads/54711...jen#post206140

    04-29-2019, 05:29 AM :: https://forum.pjrc.com/threads/54711...jen#post204544

    … those aren't uncanny eyes ….

  6. #4156
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,062
    Popped back to the duplicate post above that listed both names

    @KurtE and @mjs513 :: Are you both using Production boards? In scanning those, that was in the white wire timeframe - not that I know why that would be an issue …

  7. #4157
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,073
    The last one I reported was using one of the white wire versions of the T4...

    I am pretty sure the: 16c0:0486 Van Ooijen Technische Informatica Teensyduino RawHID
    Is a normal value for Teensy...
    Likewise for: 16c0:0483 Van Ooijen Technische Informatica Teensyduino Serial

    My guess is that the 16c0:xxxx was originally purchased by Van Ooijen Technische Informatica, who then resold a range of them to PJRC...

    And for example if you look at usb_desc.h, you will see information like:
    Code:
    #if defined(USB_SERIAL)
      #define VENDOR_ID		0x16C0
      #define PRODUCT_ID		0x0483
      #define DEVICE_CLASS		2	// 2 = Communication Class
      #define MANUFACTURER_NAME	{'T','e','e','n','s','y','d','u','i','n','o'}
      #define MANUFACTURER_NAME_LEN	11
      #define PRODUCT_NAME		{'U','S','B',' ','S','e','r','i','a','l'}
      #define PRODUCT_NAME_LEN	10
      #define EP0_SIZE		64
      #define NUM_ENDPOINTS		4
      #define NUM_USB_BUFFERS	12
      #define NUM_INTERFACE		2
      #define CDC_STATUS_INTERFACE	0
      #define CDC_DATA_INTERFACE	1
      #define CDC_ACM_ENDPOINT	2
      #define CDC_RX_ENDPOINT       3
      #define CDC_TX_ENDPOINT       4
      #define CDC_ACM_SIZE          16
      #define CDC_RX_SIZE           64
      #define CDC_TX_SIZE           64
      #define ENDPOINT2_CONFIG	ENDPOINT_RECEIVE_UNUSED + ENDPOINT_TRANSMIT_INTERRUPT
      #define ENDPOINT3_CONFIG	ENDPOINT_RECEIVE_BULK + ENDPOINT_TRANSMIT_UNUSED
      #define ENDPOINT4_CONFIG      ENDPOINT_RECEIVE_UNUSED + ENDPOINT_TRANSMIT_BULK

  8. #4158
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,062
    Quote Originally Posted by defragster View Post

    Paul: loop() Code Mod to lps.ino - for a bit more stress that breaks here:
    Quick follow up on this from #4152 with the while(1) in the lps.ino loop() - Closed IDE and got back to this on teensy_sermon and it has been running fine some time at the same range of rates as before. So it was some accumulation hopefully the failure path is in the console log.

  9. #4159
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,073
    @Paul - Terminal Monitor Wish list...

    Sometimes when I lose USB (either because I unplug it, or something in program kills it), I wish I could still select and copy the text to the clipboard so I could post it, or put in into edit buffer to diagnose things.

    For example "THE **** program killed USB" and I have some debug information like:
    Click image for larger version. 

Name:	TerminalMonitor.jpg 
Views:	1 
Size:	69.4 KB 
ID:	17289

    In this case, I had added some debug code, that compared the actual memory that startup.c copied and zeroed, to the current values, at the start of setup(). I expect some of the differences.
    D!=S - was areas that we copied. D!=0 was areas we zeroed...
    The first copy of D!=S values are: F_BUS_ACTUAL, F_CPU_ACTUAL, usb_string_serial_number

    The others in this area are values in the range:
    20028a30 d impure_data
    20028e58 D _impure_ptr

    I have not gone through the areas that were cleared, as probably not as interesting. But maybe interesting is where USB died...
    Click image for larger version. 

Name:	TerminalMonitor_end.jpg 
Views:	1 
Size:	35.7 KB 
ID:	17290

    So maybe again maybe it will boil back down to some problem in the st7735_t3 library which again is showing up when the code does: mytft = new ST7735_t3(...)
    And as such the object is created in the HEAP...

    But again back to point of this message. Wish I could have simply copied the above text...

  10. #4160
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,073
    @Paul, @mjs513, @defragster - Maybe found what was trashing memory (At least in the above case).

    One of the two constructors for st7735_t3 was not initializing a few key variables (which should be nullptr or 0...) Did not show up in all of the cases where someone did something like:
    ST7735_t3 tft = ST7735_t3(...);

    As this was allocated in DTCM and either init or zeroed. But in this case the code does: new ST7735_t3(....) which allocates the data up in OCRAM and it is not init and maybe garbage...

    I added some more init code up in the branch: https://github.com/KurtE/ST7735_t3/tree/T4_DMA_LOW

    You might try it to see if it fixes your version of crashing in UnCannyEyes!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •