kmackay / micro-ecc

ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors.
BSD 2-Clause "Simplified" License
1.24k stars 456 forks source link

Getting error when I build uECC.c with command "armcc --thumb uECC.c" #174

Open Ashwinperal opened 3 years ago

Ashwinperal commented 3 years ago

"asm_arm.h", line 425: Error: #18: expected a ")" : [dptr] REG_RW (result), [lptr] REG_RW (left), [rptr] REG_RW (right), ^ "asm_arm.h", line 430: Warning: #12-D: parsing restarts here after previous syntax error ); ^ "asm_arm.h", line 410: Warning: #177-D: variable "left_word" was declared but never referenced uint32_t left_word; ^ "asm_arm.h", line 411: Warning: #177-D: variable "right_word" was declared but never referenced uint32_t right_word;

Anybody can help me out to fix this syntax issue with in asm volatile ( .......); in the asm_arm.inc file for armcc build?

kmackay commented 3 years ago

Maybe it's not detecting thumb architecture correctly? You could try manually defining uECC_PLATFORM=uECC_arm_thumb (or thumb2, depending on what you're building for) and see if that helps.

yonasc commented 2 years ago

Hi, I am getting the same error, I tried uECC_PLATFORM=uECC_arm_thumb, uECC_PLATFORM=uECC_arm_thumb2, none worked. Did anyone solve this. Maybe it is related to the face I am trying to compile in Keil environment?

yonasc commented 2 years ago

Found the cause of this. The assembly syntax using ':' and then parameters is not supported by Keil 5 compiler

KevinZu commented 2 years ago

Found the cause of this. The assembly syntax using ':' and then parameters is not supported by Keil 5 compiler

Which version of Keil will compile successfully,I am getting the same error.