Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcp/tls client and server connection with FreeRTOS, lwIP #457

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yota22721
Copy link

changed tcp/tls client socket connection to FreeRTOS, lwIP and added tcp/tls server.
-tcpClient_main.c
-tcpServer_main.c
-tlsClient_main.c
-tlsServer_main.c

1. Download files
$ git clone https://github.com/raspberrypi/pico-sdk
$ git clone https://github.com/raspberrypi/pico-examples
$ git clone hhttps://github.com/FreeRTOS-kernel
$ git clone https://github.com/wolfssl/wolfssl
$ git clone https://github.com/wolfssl-jp/RPi-pico-w

2. Define path
$ export PICO_SDK_PATH=/your/pico-sdk/path
$ export PICO_EXAMPLES_PATH=/your/pico-examples/path
$ export FREERTOS_KERNEL_PATH=/your/FreeRTOS-kernel/path
$ export WOLFSSL_ROOT=/your/wolfssl-root/path

3. cmake and make
$ cd wolfssl-examples/RPi-Pico
$ cmake -DPICO_BOARD=pico_w -DWIFI_SSID=your-wifi-ssid
-DWIFI_PASSWORD=your-wifi-password
-DTCP_SERVER=ip-addr
-DDATETIME=yymmddhhmmss .

$ make
DATETIME is for certificate validity check. Not need to be very acurrate.

4. Target files
testwolfcrypt.uf2
benchmark.uf2
tcp_Client.uf2
tls_Client.uf2
tcp_Server.uf2
tls_Server.uf2

Console output is to USB serial

Copy link
Contributor

@douzzer douzzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bunch of missing final newlines.

also, please fix your git email address -- it's currently showing as yota <[email protected]>.


#endif /* __LWIPOPTS_H__ */
#endif /* __LWIPOPTS_H__ */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing final newline

@@ -515,7 +467,7 @@ extern int my_rng_gen_block(unsigned char *output, unsigned int sz);
// #define WOLFCRYPT_ONLY

/* do not warm when file is included to be built and not required to be */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix typo? warm -> warn

#define WOLF_BLINK_INIT 1

#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing final newline

#define WOLF_FAIL -1

#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing final newline

#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing final newline

pico_enable_stdio_usb(tcp_Client 1)
pico_enable_stdio_uart(tcp_Client 1)

pico_add_extra_outputs(tcp_Client)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing final newline

pico_enable_stdio_usb(tcp_Server 1)
pico_enable_stdio_uart(tcp_Server 1)

pico_add_extra_outputs(tcp_Server)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing final newline

pico_enable_stdio_usb(testwolfcrypt 1)
pico_enable_stdio_uart(testwolfcrypt 1)

pico_add_extra_outputs(testwolfcrypt)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing final newline

pico_enable_stdio_usb(tls_Client 1)
pico_enable_stdio_uart(tls_Client 1)

pico_add_extra_outputs(tls_Client)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing final newline

pico_enable_stdio_usb(tls_Server 1)
pico_enable_stdio_uart(tls_Server 1)

pico_add_extra_outputs(tls_Server)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing final newline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants