This shows you the differences between two versions of the page.
iothings:laboratoare:2022:lab9 [2023/01/13 10:30] dan.tudose [Building NuttX] |
iothings:laboratoare:2022:lab9 [2023/11/20 15:50] (current) dan.tudose |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Lab 9. NuttX OS ====== | + | ====== Lab 9. HTTPS and SSL/TLS ====== |
- | In this laboratory you will learn how to build and upload the NuttX OS on your ESP32 Sparrow boards. | + | In this laboratory assignment you will familiarize yourself with establishing an HTTPS connection between your ESP32 board and a browser client. The board will act as a server, with an attached SSL certificate to establish the necessary credentials. |
- | ====== Building NuttX ====== | + | Follow the steps [[https://randomnerdtutorials.com/esp32-https-requests/ | in this tutorial]] to set up everything on your board. |
- | + | ||
- | Follow [[https://embetronicx.com/tutorials/rtos/nuttx/setup-nuttx-rtos-on-esp32-dev-board/ | this]] tutorial (alternatively you can build using [[https://nuttx.apache.org/docs/latest/quickstart/index.html | this]] and [[https://nuttx.apache.org/docs/latest/platforms/xtensa/esp32/index.html | this tutorial]]) in order to install all tools and build chain. | + | |
- | <note warning>For the bootloader and partition table binaries, you can use the following commands: | + | |
- | + | ||
- | //mkdir esp-bins// | + | |
- | + | ||
- | //curl -L "https://github.com/espressif/esp-nuttx-bootloader/releases/download/latest/bootloader-esp32.bin" -o esp-bins/bootloader-esp32.bin// | + | |
- | + | ||
- | //curl -L "https://github.com/espressif/esp-nuttx-bootloader/releases/download/latest/partition-table-esp32.bin" -o esp-bins/partition-table-esp32.bin// | + | |
- | + | ||
- | Excerpt from [[https://blog.espressif.com/getting-started-with-esp32-and-nuttx-fd3e1a3d182c | this]] tutorial</note> | + | |
- | + | ||
- | <note>**Assignment 1:** Modify and compile the NuttX OS kernel to toggle on and off an on-board LED. You can use the [[https://embetronicx.com/tutorials/rtos/nuttx/blink-led-on-esp32-using-nuttx-rtos/ | following tutorial]] to get started. </note> | + | |
+ | <note>**Assignment 1:** Build an ESP32 HTTPS server and connect to it through a browser. </note> |