Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 14 of 14

Thread: Teensyduino 1.52 Beta #5

  1. #1
    Administrator Paul's Avatar
    Join Date
    Oct 2012
    Posts
    381

    Teensyduino 1.52 Beta #5

    Here is a fifth beta test for Teensyduino 1.52.


    Linux 32 bit:
    https://www.pjrc.com/teensy/td_152-b...nstall.linux32

    Linux 64 bit:
    https://www.pjrc.com/teensy/td_152-b...nstall.linux64

    Linux ARM:
    https://www.pjrc.com/teensy/td_152-b...stall.linuxarm

    Linux ARM64:
    https://www.pjrc.com/teensy/td_152-b...l.linuxaarch64

    MacOS 10.10 to 10.15:
    https://www.pjrc.com/teensy/td_152-b...S_Catalina.zip

    MacOS 10.8 to 10.14:
    https://www.pjrc.com/teensy/td_152-b...inoInstall.dmg

    Windows:
    https://www.pjrc.com/teensy/td_152-b...inoInstall.exe


    Changes since Teensyduino 1.52-beta4:

    Fix Audio ADC input on Teensy 3.x
    Initialize PSRAM chips at startup on Teensy 4.1

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,411
    Win 10 :: installed TD 1.52 B5 - that went well. I deleted ALL of Teensy\AVR first to overwrite that in exisiting IDE 1.8.12.

  3. #3
    Senior Member
    Join Date
    Dec 2015
    Location
    LA
    Posts
    184
    Mac 10.15.4 Catalina, this B5, Teensy4.1 no Xtra chips, installed no problems.

    Even inexplicably solves most issues I was having with Franks memory info program https://forum.pjrc.com/threads/57326...l=1#post239115

    It still makes the T4.1 unresponsive and blinking when I set optimization to 'debug' with the flexRamInfo program.
    Last edited by bicycleguy; 05-13-2020 at 08:35 PM. Reason: added debug info, spelling, with men program

  4. #4
    Senior Member DD4WH's Avatar
    Join Date
    Oct 2015
    Location
    Central Europe
    Posts
    676
    Win10, Teensy 4.0, Teensy Convolution SDR, works well!

    Win10, Teensy 4.1, 2 PSRAM chips, tried several example sketches, including PSRAM memory display ("16MB"), works well so far, however the T4.1 does only program after pressing the program button

  5. #5
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,925
    Quote Originally Posted by bicycleguy View Post
    Mac 10.15.4 Catalina, this B5, Teensy4.1 no Xtra chips, installed no problems.

    Even inexplicably solves most issues I was having with Franks memory info program https://forum.pjrc.com/threads/57326...l=1#post239115

    It still makes the T4.1 unresponsive and blinking when I set optimization to 'debug' with the flexRamInfo program.
    Might be the stack-info...
    Not sure.

  6. #6
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,411
    @DD4WH: with T_4.1 fresh from the mail and IDE 1.8.12 w/TD1.52 B5 it does an AUTO Upload from IDE.

    Wondering if you have an alternate USB cable? Is TyComm or other 'external' SerMon in use holding the USB port open preventing Auto Upload?

    I did the PSRAM init test with no chips yet soldered and it works to not find them and see them not work. And from the IDE that works with Ctrl+U to t_SerMon and IDE_SerMon.

    <edit>: TimeRTC.pde :: Working from Windows to pass the current PC time to T_4.1 on upload.
    > Note::
    >> t_SerMon restarts properly after upload
    >> IDE_SerMon does not restart after IDE upload with this sketch? It stays "Offline"

    <edit> Fresh T_4.1 - did 15s Restore with no problem and returned to work for AUTO upload of the TimeRTC.pde sketch as above

  7. #7
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,925
    I'm having the same issue since ages - any teensy.
    Incomprehensible.
    Sometimes it works for days without me having to press the button - then - with the same sketch - it doesn't work anymore.

    Sometimes Arduino forgets the serial port - and I have to select exactly the same one again.

    This happens with all cables.
    I suspect windows is the problem. Or, more likely, a bug in the (patched?) Arduino or associated tools.

    Then, the PJRC-patched Ardunio has still the problem, that with very fast prints - the Serial monitor prints random pc-memory contents (a pointer going wild). Race condition.. After while it hangs completely (no suprise, then.. (pointer))
    Last edited by Frank B; 05-13-2020 at 09:35 PM.

  8. #8
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,684
    I am wondering, I was trying T4.1 (without memory) in my Lynxmotion Servo board for first time and it would not program using my updated TyCommander... Tried a few different things.
    I undid the TyCommander and I reinstalled the new beta to make sure.

    I then did the N second reset of the board to make sure back to default and now I can program it... At least with one simple case.

    Now try the next one.

  9. #9
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,757
    Quote Originally Posted by Frank B View Post
    Or, more likely, a bug in the (patched?) Arduino or associated tools.
    It could be a bug. Maybe open a command prompt window and run the "teensy_ports.exe". It should be in C:\Program Files (x86)\Arduino\hardware\tools. If you just leave it running, you'll see it prints JSON about each USB connect and disconnect event, or updates as Windows makes more info available.


    Then, the PJRC-patched Ardunio has still the problem, that with very fast prints - the Serial monitor prints random pc-memory contents (a pointer going wild). Race condition.. After while it hangs completely (no suprise, then.. (pointer))
    I can't do much about those Windows problems.

  10. #10
    Senior Member
    Join Date
    Jan 2020
    Location
    Toscana
    Posts
    130
    This would need to be fixed for 1.52
    https://forum.pjrc.com/threads/45216...I-related-bugs
    Unfortunately I am not able to repair it.
    So please, coders, this is yours.

  11. #11
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,925
    @flashburn:

    Please, user, it's yours (means: Test it)
    https://forum.pjrc.com/threads/45216...l=1#post239299

  12. #12
    Senior Member
    Join Date
    Jan 2020
    Location
    Toscana
    Posts
    130
    Do you believe in the Users?

    Thank you Frank B.

    Catching the NULL cures the symptom, but there has to be a reason why this error evolves.

    Anyway, I've tried several imports that failed before and work now, so I think it is important to merge this to 1.52, so the audio tool can be used for more complex projects.

    I remember you've made some important adjustments forTeensy 4.x to the tool. Do you plan to commit them, too? Or what about a second index.html for Teensy 4.x?

  13. #13
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    2,588
    I think this is wrong in teensy4/startup.c
    Code:
    CCM_CBCMR = (CCM_CBCMR & (CCM_CBCMR_FLEXSPI2_PODF_MASK | CCM_CBCMR_FLEXSPI2_CLK_SEL_MASK))
    		| CCM_CBCMR_FLEXSPI2_PODF(7) | CCM_CBCMR_FLEXSPI2_CLK_SEL(0); // 49.5 MHz
    needs "~"
    Code:
    CCM_CBCMR = (CCM_CBCMR & ~(CCM_CBCMR_FLEXSPI2_PODF_MASK | CCM_CBCMR_FLEXSPI2_CLK_SEL_MASK))
    		| CCM_CBCMR_FLEXSPI2_PODF(7) | CCM_CBCMR_FLEXSPI2_CLK_SEL(0); // 49.5 MHz
    i was having a heck of time figuring out why PSRAM clock was running at 90mhz when code said 49.5 !


    EDIT:
    hmm, looks like that was fixed on github 18 hours ago with
    Code:
    CCM_CBCMR = (CCM_CBCMR & ~(CCM_CBCMR_FLEXSPI2_PODF_MASK | CCM_CBCMR_FLEXSPI2_CLK_SEL_MASK))
    		| CCM_CBCMR_FLEXSPI2_PODF(5) | CCM_CBCMR_FLEXSPI2_CLK_SEL(3); // 88 MHz
    Last edited by manitou; 05-14-2020 at 07:45 PM.

  14. #14
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,925
    Quote Originally Posted by flashburn View Post
    Catching the NULL cures the symptom, but there has to be a reason why this error evolves.
    Well, it fixes the problem - does it not?

    I remember you've made some important adjustments forTeensy 4.x to the tool. Do you plan to commit them, too? Or what about a second index.html for Teensy 4.x?
    Nope.

Posting Permissions

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