PDA

View Full Version : Teensyduino 1.52 Beta #5



Paul
05-13-2020, 05:35 PM
Here is a fifth beta test for Teensyduino 1.52.


Linux 32 bit:
https://www.pjrc.com/teensy/td_152-beta5/TeensyduinoInstall.linux32

Linux 64 bit:
https://www.pjrc.com/teensy/td_152-beta5/TeensyduinoInstall.linux64

Linux ARM:
https://www.pjrc.com/teensy/td_152-beta5/TeensyduinoInstall.linuxarm

Linux ARM64:
https://www.pjrc.com/teensy/td_152-beta5/TeensyduinoInstall.linuxaarch64

MacOS 10.10 to 10.15:
https://www.pjrc.com/teensy/td_152-beta5/Teensyduino_MacOS_Catalina.zip

MacOS 10.8 to 10.14:
https://www.pjrc.com/teensy/td_152-beta5/TeensyduinoInstall.dmg

Windows:
https://www.pjrc.com/teensy/td_152-beta5/TeensyduinoInstall.exe


Changes since Teensyduino 1.52-beta4 (https://forum.pjrc.com/threads/60746-Teensyduino-1-52-Beta-4):

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

defragster
05-13-2020, 07:51 PM
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.

bicycleguy
05-13-2020, 09:05 PM
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-T4-0-Memory-trying-to-make-sense-of-the-different-regions?p=239115&viewfull=1#post239115

It still makes the T4.1 unresponsive and blinking when I set optimization to 'debug' with the flexRamInfo program.

DD4WH
05-13-2020, 09:17 PM
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

Frank B
05-13-2020, 10:14 PM
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-T4-0-Memory-trying-to-make-sense-of-the-different-regions?p=239115&viewfull=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.

defragster
05-13-2020, 10:18 PM
@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

Frank B
05-13-2020, 10:23 PM
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))

KurtE
05-13-2020, 11:11 PM
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.

PaulStoffregen
05-14-2020, 01:22 AM
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.

Deleted User
05-14-2020, 11:54 AM
This would need to be fixed for 1.52
https://forum.pjrc.com/threads/45216-Two-GUI-related-bugs
Unfortunately I am not able to repair it.
So please, coders, this is yours.

Frank B
05-14-2020, 07:25 PM
@flashburn:

Please, user, it's yours (means: Test it)
https://forum.pjrc.com/threads/45216-Two-GUI-related-bugs?p=239299&viewfull=1#post239299

Deleted User
05-14-2020, 08:23 PM
:eek: 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?

manitou
05-14-2020, 08:28 PM
I think this is wrong in teensy4/startup.c

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 "~"

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

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

Frank B
05-14-2020, 10:29 PM
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.