-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
benchmark example does not finish correctly in NCS36510 dev board #29
Comments
The example does not finish correctly when compiled in the online IDE either. |
@0xc0170 Please let me know how to re produce the issue. |
@pradeep-gr: To reproduce the issue checkout the mbed-os-example-tls version tagged with
Finally, flash the board and observe the output in the serial terminal. This README describes the expected behaviour. |
It seems that the problem with the toolchains GCC and IAR is that the program eventually runs out of heap memory when trying to grow one of the MPI numbers for 4096 RSA private key calculations. |
ARM Internal Ref: IOTSSL-1110 |
@andresag01 Not able to build mbed-os-5.3.0-rc1 with mbed-os. main.cpp from mbed-os-example-tls requires EthernetInterface.h file in turn requires target specific lwipopts_conf.h file. But Ethernet interface not available in target NCS36510. |
@pradeep-gr: The error occurs because building from the root of the mbed-os-example-tls project causes mbed-cli to build every project subdirectory. This fails because the tls-client requires a Ethernet interface that the NCS36510 does not support. To build only the benchmark application (the one discussed in this issue), please use the following commands:
|
@andresag01 Thanks for the details. I am able to re-produce the issue. But I am seeing the same behavior and delay, even if I comment out all the code from trng_init(), trng_free() and trng_get_bytes() functions and just return success. I am also getting below warning "Object file test_env.o is not unique! It could be made from:" on compile even build is successful. |
@sbutcher-arm: As discussed, this is caused either by stack overflow or heap allocation failure (depending on the toolchain used). In some sense, this is a duplicate of #14. Should we close it? |
@andresag01 And about the delay: If you compare K64F results (attached below) with NCS36510. As K64F can go up to 120 MHZ where NCC36510 is 32MHz. In this sense timings for NCS36510 are seems to be fine. |
Fixed by PR #194 which has now been merged. Issue can be closed. |
The benchmark example is very slow to run in the NCS36510 target. Furthermore, after waiting for sometime it does not seem to progress from the
CTR_DRBG (PR)
when compiled with ARMCC:When compiled with gcc, the program terminates, but the following error is printed:
The text was updated successfully, but these errors were encountered: