Forum Rule: Always post complete source code & details to reproduce any issue!
Page 158 of 175 FirstFirst ... 58 108 148 156 157 158 159 160 168 ... LastLast
Results 3,926 to 3,950 of 4361

Thread: Teensy 4.0 First Beta Test

  1. #3926
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,068
    Quote Originally Posted by PaulStoffregen View Post
    Here's a CPU speed benchmark I've been using. Tonight I finally took a few moments to clean it up, add some comments in the code, and run the test on several boards (see the readme file).

    https://github.com/PaulStoffregen/RSA_signature_speed
    Safe to assume those are default clock speed numbers 180/120/96 of 3.6/3.5/3.2 ?

    <edit> Indeed a T_3.6 at 256 MHz gives: Signature computation took 0.333 seconds { versus the posted 0.474 }

    To compare - I just got some 240 MHz Dual Core ESP32 PICO based 'TinyPICO' boards. The code as published ran one pass on task in the indicated time 0.518.

    Revisiting a quick Task done on each core RTOS version {std Arduino} showed that each core in parallel showed about the same result. I had to tweak to get the loops down to 6 and put in to not trigger the RTOS watchdog

    To hope the two collided I did for() runs of 6 passes, one rsa_init() in setup() and then two versions of the rsa_sign code with unique signature[] strings used, then tested the state of the string after the 6th iteration - this shows the first two groups of 6 on each core - after this they hold at the .51 number:
    Code:
    Task1: 6 iterations in us=3072821	Signature computation took 0.512 seconds
    Signature is good :-)
    
    Task0: 6 iterations in us=3063082	Signature computation took 0.511 seconds
    Signature is good :-)
    
    Task1: 6 iterations in us=3059924	Signature computation took 0.510 seconds
    Signature is good :-)
    
    Task0: 6 iterations in us=3062031	Signature computation took 0.510 seconds
    Signature is good :-)
    So a T_3.6 at 256 MHz - 50% faster on one core loses ~30% to the ESP32 even if both 240 MHz cores are "used" - and a T_4 at 600 MHz with 0.085 is 3 times faster than even the 0.510/2 counting both cores.

    @mjs513 - I wonder what your TeensyThreads on T4 would show running it similarly on two threads?
    Last edited by defragster; 08-05-2019 at 10:54 AM.

  2. #3927
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,760
    I also cleaned up the CoreMark benchmark.

    https://github.com/PaulStoffregen/CoreMark

    This copy has all the "no edits allowed" files unchanged, and as far as I know the porting I did is well within what's allowed to be claimed as a valid CoreMark result.

    It prints to proper Serial on all Arduino compatible boards, so you can benchmark almost any board if it has enough RAM.


    Quote Originally Posted by defragster View Post
    Safe to assume those are default clock speed numbers 180/120/96 of 3.6/3.5/3.2 ?
    Yes, I tested every board with its default settings. Same for CoreMark - the results in the readme file are with default settings. Yes, I know Teensy 4.0 can do a little better if the other optimizations are used.

  3. #3928
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,282
    Quote Originally Posted by defragster
    @mjs513 - I wonder what your TeensyThreads on T4 would show running it similarly on two threads?
    Should have posted this before. My WIP TeensyThreads_t4 version is posted up on GitHub - https://github.com/mjs513/TeensyThre...ensyThreads_t4.

    I just woke up to all this activity and haven't even had my coffee yet Oh boy.

    EDIT: Just tried running in a thread - can't seem to get it run properly from within the thread. Thread never seems to return. Probably something conflicting in other tab functions.
    Last edited by mjs513; 08-05-2019 at 12:37 PM.

  4. #3929
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,068
    offline here - but just put this up that shows the shifting for 2 cores as noted above. TinyPICO/.../RSA_signature_speed

    <Updated > minor tweaks to github of ESP32 PICO using RTOS - no speed improvement - just Task adjust playing - And updated Speed table and notes in readme.

    NXP's ARM core in Teensy 3.6 and 4 more efficient at this task
    Last edited by defragster; 08-05-2019 at 08:55 PM.

  5. #3930
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,282
    To test TeensyThreads I resurrected my GPS sketch that runs in a thread for a test. The GPS is BN-280 with PPS broken out. So was able to also test a PPS signal of 2000Hz with the freqCount library. To change the PPS I used @ChrisO.'s ublox library which allows provisions to change the PPS rate. Needless to say it was right on at 2000Hz.

    As for the GPS running in a thread it worked without a problem.

  6. #3931
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    2,235
    Quote Originally Posted by PaulStoffregen View Post
    Here's a CPU speed benchmark I've been using. Tonight I finally took a few moments to clean it up, add some comments in the code, and run the test on several boards (see the readme file).

    https://github.com/PaulStoffregen/RSA_signature_speed
    Here's a few more MCU's doing RSAsign
    Code:
          T4@600     0.085 seconds   faster
          T3.6@180   0.474   
          T3.5@120   0.910
          T3.2@120   1.223
          ESP32@240  0.516
          STM32F405  0.675  adafruit @168mhz
          M4@120     0.816  faster   SAMD51
          DUE@84     1.901
          dragon@80  1.162 faster   dragonfly STM32L476
          maple@72   1.964  faster
          cpx@48     9.496  circuit playground express SAMD21
          ZERO@48   11.022
          1284p@16 119.068    16K  enough
    Teensy LC and 2++ and MEGA2560 won't work -- need more than 8K RAM?

    The benchmark is based on mbedtls. The NXP SDK has upgraded their lib's (mbedlts and wolfssl) to take advantage of MCU's crypto accelerators (CAU or DCP) for hashing (SHA256) and secret-key encryption (AES). One could also construct and test the benchmark on desktop's and Raspberry PI using OpenSSL or mbedtls or wolfssl.

    Some more Teensy crypto performance numbers (microseconds) for mbedtls and wolfssl (optimize Faster)
    Code:
         tls  SHA256  100!   DH      RSAs    RSAv   CRT   us    Faster
         T4     53    163    40279  286990   3413   81259
         T3.6  371    718   223952 1601592  19819  451616
         T3.5  593   1494   427386 3020459  36098  861444     sketch 64K 6.5K
         T3.2  844   1724   580803 4182796  47101 1169631    @120mhz
         M4    559   1384   380810 2641328  38555  769537
         dragon 1473 2333   548201 3857128  47745 1105866    STML476RE @80mhz
         32F405 448  1272   313675 2214487  33196  633691    @168mhz -O2
    
    
         ssl  SHA256  100!   DH      RSAs    RSAv   CRT     us    Faster
         T4     47     22    33947  213540   7918   67656
         T3.6  347    135   223692 1478821  52545  444273
         T3.5  558    204   344588 2233720  83411  684374
         T3.2  769    210   348616 2241161  86211  692799   @120mhz
         M4    442    243   355905 2319518  78639  704381
         dragon 798   371   539358 3488030 127341 1072544  @80mhz
         32F405 397   171   243018 1582018  57316  479503  @168mhz -O2
    Factorial, Diffie-Hellman, and RSA are based on the respective library's big-integer implementation. RSA is 2048-bit encryption/decryption using N, P, Q, E, and D from Paul's RSA sketch, with or without Chinese Remainder Theorem (CRT). With CRT disabled in Paul's sketch (#define MBEDTLS_RSA_NO_CRT in local_rsa.h), T4 signing takes 0.290 seconds.

    T4 crypto accelerator DCP tests

    more MCU performance comparisons crypto, floating point, coremark
    Last edited by manitou; 11-12-2019 at 05:19 PM.

  7. #3932
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,760
    Ok, it's official - Teensy 4.0 has been release is starts shipping today.

    https://www.pjrc.com/store/teensy40.html

    It's now ok to post photos of the best test hardware.

  8. #3933
    Member ETMoody3's Avatar
    Join Date
    Mar 2014
    Location
    New Ulm, Mn
    Posts
    82
    Yoiks and away!

  9. #3934
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,699
    Not sure if Best hardware, but been playing around some with:
    Click image for larger version. 

Name:	IMG_0845-(002).jpg 
Views:	88 
Size:	78.2 KB 
ID:	17122

    Also I have some other boards I have fabricated but have not assembled one yet:
    Click image for larger version. 

Name:	T4-RPI.jpg 
Views:	63 
Size:	83.5 KB 
ID:	17123

  10. #3935
    Member ETMoody3's Avatar
    Join Date
    Mar 2014
    Location
    New Ulm, Mn
    Posts
    82
    @KurtE

    I like that, are they available?

  11. #3936
    Which port is the CAN FD ? Hope is not on the back side. Can't tell from the pinout card.

  12. #3937
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,282
    Quote Originally Posted by PaulStoffregen View Post
    Ok, it's official - Teensy 4.0 has been release is starts shipping today.

    https://www.pjrc.com/store/teensy40.html

    It's now ok to post photos of the best test hardware.
    Fantastic - time for videos and pictures like Kurt's.

  13. #3938
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,282
    Quote Originally Posted by skpang View Post
    Which port is the CAN FD ? Hope is not on the back side. Can't tell from the pinout card.
    Back side - pins 30, 31, CRX3, CTX3

  14. #3939
    Quote Originally Posted by mjs513 View Post
    Back side - pins 30, 31, CRX3, CTX3
    Oh, that is going to be a pain to get access to.

    What is the best way to access to those pins when designing a board for T4 ?

  15. #3940
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,543
    Quote Originally Posted by PaulStoffregen View Post
    Ok, it's official - Teensy 4.0 has been release is starts shipping today.

    https://www.pjrc.com/store/teensy40.html

    It's now ok to post photos of the best test hardware.
    Congratulations!

    A huge Thank You to Paul, the PJRC crew, and the beta testers/contributors!

    Unfortunately, I was (and I am still) "under water" with lots of other things going on and could neither test nor contribute. But I'm happy to see that the T4 has now come to market, even without crowdfunding, and I wish it a huge success!

  16. #3941
    Great news!

    I know this is hot off the press, but any preliminary thoughts on the evolution of the 4.0, will there be a 4.6 with more available I/O pins and an SD card slot?

    We have several hardware devices we use in scientific balloon projects that are based on the 3.6, and it would be great if we could migrate these to a 4.6 to take advantage of the new performance and features.

  17. #3942
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,282
    Quote Originally Posted by skpang View Post
    Oh, that is going to be a pain to get access to.

    What is the best way to access to those pins when designing a board for T4 ?
    Don't know if there is a best way but two ways that have been used are with pogo pins or with SMD header. For one of the breakout boards that I created I am using the SMD header on the underside pins and pogo pins for the USBHost connector. Here is a photo of the breakout board and the underside of one of the Beta T4 boards we used for testing.
    Click image for larger version. 

Name:	20190807_120441.jpg 
Views:	114 
Size:	107.6 KB 
ID:	17124

  18. #3943
    Senior Member
    Join Date
    Feb 2015
    Posts
    102
    Quote Originally Posted by PaulStoffregen View Post
    Ok, it's official - Teensy 4.0 has been release is starts shipping today.

    https://www.pjrc.com/store/teensy40.html

    It's now ok to post photos of the best test hardware.
    Congratulations Paul! I just bought 5 of them.

  19. #3944
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,068
    Quote Originally Posted by PaulStoffregen View Post
    Ok, it's official - Teensy 4.0 has been release is starts shipping today.

    https://www.pjrc.com/store/teensy40.html

    Congratulations and that is Awesome news PJRC!

    Especially for that $19.95 - price point!

  20. #3945
    Junior Member
    Join Date
    Oct 2016
    Posts
    18
    Quote Originally Posted by PaulStoffregen View Post
    Ok, it's official - Teensy 4.0 has been release is starts shipping today.

    https://www.pjrc.com/store/teensy40.html

    It's now ok to post photos of the best test hardware.
    Congrats on the release! The benchmarks are off the charts!

  21. #3946
    Junior Member
    Join Date
    Aug 2016
    Posts
    18
    I've checked this thread often just to see the crazy stuff being tested. I can't say I fully understood any of it but it was awesome to watch all the contributors working on this together. Congratulations to everyone and my hat is off to you Paul!

  22. #3947
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    260
    Congrats on the release !

  23. #3948
    Senior Member
    Join Date
    Feb 2015
    Posts
    102
    Just FYI, the Teensy 4.0 page is showing the topside pinout twice.

  24. #3949
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,699
    Quote Originally Posted by ETMoody3 View Post
    @KurtE

    I like that, are they available?
    If you mean are they available for purchase... Not exactly

    I do often put some of the designs I am working with up on github in a hodge podge of stuff: https://github.com/KurtE/Teensy3.1-Breakout-Boards
    There as Diptrace Design and layout files for these, plus a zip file that you can send off to places like: OSHPark, Seeedstudio, pcbway...

    For the one partially assembled board, I put up a xls file with parts on it, which is probably only partially correct. I just updated it a little as I found earlier I called out the wrong resistors for R11 and R12...

    Again I only do this for my own fun, so guarantee it is good for anything. Also I have not fully assembled one yet. Like I have not put on a ILI9341 display (PJRC) on it yet. So I have not populated the two transistors that allow you to control the brightness... Also Have not put on it a LoRa, so don't remember what all I have not put on it yet... And I only just started to play around with Robotis Servos, And I have not tried out the USB on it yet. The version you see had issue with power chip on bottom, which I updated and got new boards, but have not built one yet...

  25. #3950
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,068
    Quote Originally Posted by wcalvert View Post
    Just FYI, the Teensy 4.0 page is showing the topside pinout twice.
    Yes, it is - it was right until I did a refresh.

Posting Permissions

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