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

How to use micro-ecc without loading micro_ecc_lib_nrf52.lib?

The micro-ecc works well when I load micro_ecc_lib_nrf52.lib in keil5. However, the author suggest copying the uECC files into the project, so I include uEcc.h but fail in compling. I get some error information,such as: ............\external\micro-ecc\micro-ecc\asm_arm.inc(87): error: #18: expected a ")"

I guess maybe some defines should be changed, is there anyone know how to complie micro-ecc files in Keil5?

Parents
  • I use 10040, my Keil version is 5.14. Please make sure if you call the function "EccDemo()", because ecc_init doesn't call any functions in the lib file.

    	uart_init();
    	
    	ecc_init(true);
    
    buttons_leds_init(&erase_bonds);
    ble_stack_init();
    gap_params_init();
    services_init();
    advertising_init();
    conn_params_init();
    
    NRF_LOG_INFO("\r\nUART Start!\r\n");
    	NRF_LOG_FLUSH();
    err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
    APP_ERROR_CHECK(err_code);
    
    	EccDemo();
    	
    // Enter main loop.
    for (;;)
    {
        power_manage();
    }
    

    static void EccDemo(void) is just above th function main()

Reply
  • I use 10040, my Keil version is 5.14. Please make sure if you call the function "EccDemo()", because ecc_init doesn't call any functions in the lib file.

    	uart_init();
    	
    	ecc_init(true);
    
    buttons_leds_init(&erase_bonds);
    ble_stack_init();
    gap_params_init();
    services_init();
    advertising_init();
    conn_params_init();
    
    NRF_LOG_INFO("\r\nUART Start!\r\n");
    	NRF_LOG_FLUSH();
    err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
    APP_ERROR_CHECK(err_code);
    
    	EccDemo();
    	
    // Enter main loop.
    for (;;)
    {
        power_manage();
    }
    

    static void EccDemo(void) is just above th function main()

Children
No Data
Related