Are you new to Embedded Swift and embedded programming?
In this tutorial I will help guide you on installing the Swift development trunk so that you can play with Apples new experimental version of Swift. I'll show you how to install the tools, how to troubleshoot problems, and how to think about the entire process.
You can read my guide here: https://blog.supereasyapps.com/how-to...
You'll need to set up the ESP-IDF (Espressif IoT Development Framework) in order to flash the firmware onto your micro controller.
I'm new to embedded programming, and worked with firmware engineers at GoPro as an iOS Developer. So I am comfortable working with hardware and prototypes, but I was not involved in any of the firmware programming. This is my chance to explore firmware programming for small computing devices using Swift.
The install process and toolchain can be frustrating to setup, which is why I created this video to help you. Below you'll find some notes, and I'll have a follow-up troubleshooting video with additional notes.
Start Here: You'll need to be comfortable working on the command line to follow along.
Watch: Go small with Embedded Swift: https://developer.apple.com/wwdc24/10197
Embedded Swift Examples: https://www.swift.org/blog/embedded-s...
Help Forum: https://forums.swift.org/t/embedded-s...
Buy a ESP32-C6: https://www.sparkfun.com/products/22924
NOTE: I am using an ESP32-C6 (sparkfun). The biggest thing to keep in mind is that the LED GPIO is going to be different from Apple's code sample. So you'll need GPIO23 instead of GPIO8, which is the default for Apple's sample code.
00:00 Getting Started
03:05 Embedded Swift is Experimental
04:25 Install process
06:22 Swift Trunk Development (main)
18:25 ESP IDF Install
23:02 Swift Matter Install
45:20 Shell Setup
49:15 Clone Swift Matter Examples
49:42 LED Blink Demo Setup
59:30 Visual Studio Code Setup
1:08:29 Debugging the Blink Logic
Commands to run
idf.py clean
idf.py set-target esp32c6
idf.py build
idf.py build monitor
All in one command with idf.py
idf.py build flash monitor
#embeddedswift #swift #esp32 #esp32-c6 #embeddedprogramming #programming #coding #hardware #firmware #idf #LED #blink