This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can't find micro_ecc_lib_nrf52.lib and build uECC error with KEIL5

Now, I'm using the SDK12.1.0 and the device is NRF52832, I trying to use the secure DFU bootloader, when I open the Project Nordic provided(PCA10040 Debug) and build it, the MDK can't find micro_ecc_lib_nrf52.lib, and I can't find it in project folder, then I download the latest uECC source code, add it to project and build it, but 4 errors appears as following:

*** Using Compiler 'V5.06 update 2 (build 183)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'nrf52832_xxaa_s132'
compiling uECC.c...
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(87): error:  #18: expected a ")"
          : [dptr] REG_RW_LO (result), [lptr] REG_RW_LO (left), [rptr] REG_RW_LO (right),
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(95): warning:  #12-D: parsing restarts here after previous syntax error
      );
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(52): warning:  #177-D: variable "jump" was declared but never referenced
      uint32_t jump = (uECC_MAX_WORDS - num_words) * 4 * 2 + 1;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(58): warning:  #177-D: variable "left_word" was declared but never referenced
      uint32_t left_word;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(59): warning:  #177-D: variable "right_word" was declared but never referenced
      uint32_t right_word;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(141): error:  #18: expected a ")"
          : [dptr] REG_RW_LO (result), [lptr] REG_RW_LO (left), [rptr] REG_RW_LO (right),
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(149): warning:  #12-D: parsing restarts here after previous syntax error
      );
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(106): warning:  #177-D: variable "jump" was declared but never referenced
      uint32_t jump = (uECC_MAX_WORDS - num_words) * 4 * 2 + 1;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(112): warning:  #177-D: variable "left_word" was declared but never referenced
      uint32_t left_word;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(113): warning:  #177-D: variable "right_word" was declared but never referenced
      uint32_t right_word;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(624): error:  #18: expected a ")"
          : [r3] "+l" (num_words), [r4] "=&l" (r4),
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(628): warning:  #12-D: parsing restarts here after previous syntax error
      );
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(531): warning:  #177-D: variable "r4" was declared but never referenced
      uint32_t r4, r5, r6, r7;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(531): warning:  #177-D: variable "r5" was declared but never referenced
      uint32_t r4, r5, r6, r7;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(531): warning:  #177-D: variable "r6" was declared but never referenced
      uint32_t r4, r5, r6, r7;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(531): warning:  #177-D: variable "r7" was declared but never referenced
      uint32_t r4, r5, r6, r7;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(809): error:  #18: expected a ")"
          : [r2] "+l" (num_words), [r3] "=&l" (r3), [r4] "=&l" (r4),
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(813): warning:  #12-D: parsing restarts here after previous syntax error
      );
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(706): warning:  #177-D: variable "r3" was declared but never referenced
      uint32_t r3, r4, r5, r6, r7;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(706): warning:  #177-D: variable "r4" was declared but never referenced
      uint32_t r3, r4, r5, r6, r7;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(706): warning:  #177-D: variable "r5" was declared but never referenced
      uint32_t r3, r4, r5, r6, r7;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(706): warning:  #177-D: variable "r6" was declared but never referenced
      uint32_t r3, r4, r5, r6, r7;
..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(706): warning:  #177-D: variable "r7" was declared but never referenced
      uint32_t r3, r4, r5, r6, r7;
..\..\..\..\..\external\micro-ecc\micro-ecc\uECC.c: 19 warnings, 4 errors
".\_build\nrf52832_xxaa_s132.axf" - 4 Error(s), 19 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01

How do I solve this problem, thanks very much!

Related