Topic: Error flagged in ARM Cortex-M "sp_cortexm.c" assembly speedup
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.