Giter VIP home page Giter VIP logo

Comments (9)

ejohnstown avatar ejohnstown commented on May 27, 2024

Are you using the GCC arm cross-compiler and the configure script in the package? How are you setting up and building wolfSSL/wolfCrypt?

from wolfssh.

Vaibhav1587 avatar Vaibhav1587 commented on May 27, 2024

I have started up with the wolfCrypt test building with the reference to video posted on youtube link provided https://www.youtube.com/watch?v=FG6jvINvls0
But I got stuck as its configuring the STM32F4 device and I'm using STM32F1

from wolfssh.

ejohnstown avatar ejohnstown commented on May 27, 2024

Which toolchain or IDE are you using? The YouTube video you refer to uses the Atollic TrueSTUDIO IDE, which is Eclipse based.

To build the libwolfssl.a library archive for the STM32F103C8, I opened the IDE/TRUESTUDIO/wolfssl directory as the project. I right-clicked on the the "wolfssl" in the Project Explorer pane and selected "Properties". In the project properties, I opened the "C/C++ Build:Settings" panel, and then selected the "Target Settings" tab. In the search field on the Target Settings I entered "STM32F103" and STM32F103C8 was listed under STM32F1:MCUs. I selected it and clicked "OK" at the bottom.

Next I added the following options to the file user_settings.h:

#define WOLFSSL_PUBLIC_MP
#define WOLFSSL_SHA512
#define WOLFSSL_SHA384
#define HAVE_AESGCM
#define WOLFCRYPT_ONLY

Last I built the project by first right-clicking on "wolfssl" in the Project Explorer pane and selected "Build Project". It finished successfully and in the debug folder in the Project Explorer was the file "libwolfssl.a". That would be used in wolfSSH.

from wolfssh.

Vaibhav1587 avatar Vaibhav1587 commented on May 27, 2024

Thanks!! That really helped.

Its there any easiest way to run the echoserver on STM32F103C8T6 device and connect it from outside ?
That would be simplest implementation of it.

from wolfssh.

ejohnstown avatar ejohnstown commented on May 27, 2024

The example echoserver can be embedded in another application. If you set the define flag "NO_MAIN_DRIVER" it doesn't build the main() function in echoserver.c. Then you can include echo server.c in another program and call echoserver_test(). You will need to make up your own argv and argc variables to pass to the function.

from wolfssh.

ejohnstown avatar ejohnstown commented on May 27, 2024

Were you able to get the echoserver running?

from wolfssh.

Vaibhav1587 avatar Vaibhav1587 commented on May 27, 2024

Nope. :(

..\src\wolfssh\examples\echoserver\echoserver.c:25:33: fatal error: wolfssl/options.h: No such file or directory
     #include <wolfssl/options.h>

even when I have added the

libwolfssl.a

file.

from wolfssh.

ejohnstown avatar ejohnstown commented on May 27, 2024

Did you add the wolfSSL header directory in your IDE's header search path? In the Atollic TRUEStudio, you select "Build Settings..." from the Project menu. Select "C/C++ General:Paths and Symbols" from the list box on the left of the properties window. On the "Includes" tab, you'll need to add the path to the wolfSSL header files.

from wolfssh.

ejohnstown avatar ejohnstown commented on May 27, 2024

Were you able to get the project to build?

from wolfssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.