You are not logged in. Please login or register.
Active topics Unanswered topics
Welcome to the wolfSSL Forums!
Please post questions or comments you have about wolfSSL products here. It is helpful to be as descriptive as possible when asking your questions.
References
Stable Releases - download stable product releases.
Development Branch - latest development branch on GitHub.
wolfSSL Manual - wolfSSL (formerly CyaSSL) product manual and API reference.
Search options
Hi David,
Thanks for the feedback. The easiest approach seemed to be to switch to a release build which removed the error. I then had a couple more errors which I fixed as follows (in case it helps anyone else):
A number of errors of "selected processor does not support `umaal ...' in Thumb mode." I tried to turn thumb mode off but after some searching discovered "All Cortex-M processors, including M33, are Thumb only. They cannot execute ARM instructions." On examining the sp_cortexm.c file I found a flag
#define WOLFSSL_SP_NO_UMAAL
which when set removed the errors. After that I just had to include misc.c and sp_int.c and the project built without errors!
Next stage is to test some ECC crypto ;-).
Mark
I am using the WolfCrypt library (vers 5.7.2) ECC functions in a bare metal project based on a Cortex-M33 processor. I want to use the Cortex-M assembly speedup so I am building ecc.c with sp_cortexm.c. Following various examples and community posts my settings.h file specifies:
/* Use single precision math only */
#define WOLFSSL_SP
#define WOLFSSL_SP_SMALL
#define WOLFSSL_HAVE_SP_ECC
#define WOLFSSL_SP_MATH /* only SP math - eliminates integer/tfm math code, so only standard curves/key sizes are supported */
#define WOLFSSL_SP_ASM /* enable the assembly speedup */
#define WOLFSSL_SP_ARM_CORTEX_M_ASM /* optional cortex-m speedups */
This configuration builds with just a single error: "r7 cannot be used in 'asm' here" in sp_cortexm.c at line 30931. Any suggestions as to what the cause might be would be much appreciated.
Posts found: 2
Generated in 0.015 seconds (95% PHP - 5% DB) with 4 queries