Topic: build WolfCrypt for STM32

Hello,
In order to port WolfCrypt on STM32, I compiled WolfSSL for STM32L072, with arm-none-eabi-gcc.

I am using Cygwin to cross compile my project.
I am getting following error, and I am unable to find the source:

"checking whether C compiler works... no"

The command which I am sending is
./configure CC=arm-none-eabi-gcc-8.3.1 LD=arm-none-eabi-ld AR=arm-none-eabi-ar RANLIB=arm-none-eabi-ranlib CFLAGS="-DWOLFSSL_USER_IO -O0" --host arm-none-eabi

gcc and linker paths have been set correctly, both in system environment and build command


Please help me regarding the issue.

Share

Re: build WolfCrypt for STM32

Hi kvhekale,

Try using something like this:

export WOLFSSL_PREFIX="`pwd`/../build"
./configure \
    --host=arm-none-eabi \
    CFLAGS="-mcpu=cortex-m0 --specs=nano.specs -DNO_WOLFSSL_DIR -DWOLFSSL_USER_IO -DNO_WRITEV" \
    --prefix=$WOLFSSL_PREFIX/wolfssl-m0-baremetal \
    --disable-examples
make
make install

Thanks,
David Garske, wolfSSL

Share

Re: build WolfCrypt for STM32

Hi Kvkhekale,

Also make sure you have the arm-none-eabi-gcc-8.3.1/bin directory in your path.

Thanks,
David Garske, wolfSSL

Share