1 (edited by dmitryp 2014-09-29 00:04:05)

Topic: wolfSSL embedded SSL on STM32F103RF

Hi Guys,

Sorry for possibly ignorant question, we are currently struggling to build wolfssl into exiting project. The target MCU is STM32F103RF. The compilation stumbles upon aes_asm.s with the following error:


line 40: Error:  #11-D: unrecognzed preprocessing directive
# parameter 1: %rdi

Not really an expert in ASM so at a loss at the moment.

Can anybody advise which direction to look?

Thank you,
Dmitry

Re: wolfSSL embedded SSL on STM32F103RF

Hi Dmitry,

The aes_asm.s file is specific to the Intel AES-NI functionality found on some Intel processors.  In an STM32-based environment you can safely remove that file from your project.

Best Regards,
Chris

3 (edited by dmitryp 2014-09-29 22:20:24)

Re: wolfSSL embedded SSL on STM32F103RF

Hi Chris,

Thank you, managed to compile! (with a few stubs instead of real functions)

One more question if you don't mind.

In MDK-ARM example in time-STM32F2xx.c in struct tm *wolfssl_MDK_gmtime(const time_t *c) the only input parameter 'c' is not used anywhere. Isn't it supposed to be an equivalent of gmtime() which converts time_t to tm?


Thank you,
Dmitry

Re: wolfSSL embedded SSL on STM32F103RF

Hi Dmitry,

Thank you for your note. Yes, you are right.

The function in time-STM32F2xx.c/time-dummy.c is for dummy and redundant.
You can use gmtime. Additionally, you need to define XTIME and XGMTIME
in asn.c for operational system.

For further detail, you can refer "2.9 Time, wolfSSL Porting Guide"
http://wolfssl.com/yaSSL/Docs-cyassl-porting-guide.html

Best Regards,

Kojo

Share