The examples are sorted by programming language:
- asm: RISC-V assembly
- c/singles: standalone C programs
- c/projects: C projects
- py/singles: standalone Python programs
- py/projects: Python projects
- js/singles: standalone JavaScript programs
- js/projects: JavaScript projects
- js/websites: HTML/JavaScript exampels
- cs/: C# console programs
- esp: Microcontroller projects for ESP32C6
- unity/ Unity example
(This should already have been done in the first lecture)
- Download: https://code.visualstudio.com/
The examples run within VS code. The installation of the following extensions for VS code are recommended:
- .NET Install Tool
- C/C++
- C/C++ Extension Pack
- CodeLLDB
- C#
- C# Dev Kit
- IntelliCode for C# Dev Kit
- JavaScript Debugger
- Python
- Python Debugger
- Pylance
- RISC-V Support
- RISC-V Venus Simulator
- Git (Submodule) Assistant
- Live Preview
- Jupyter
For the embedded programming part:
- ESP-IDF (configure 'advanced and install v5.1.4)
- (optional: Wokwi Simulator)
Please open the leaf directories seperately as folder so that VS code applies the correct language. However... do the following before.
- Install Python
- To run the C# single examples, install and use .NET.
- Install version .NET 8.0
- IMPORTANT (WINDOWS ONLY): Start Visual Studio as follows:
- Press Windows key
- Write: Developer Command Prompt and open it
- type in the following command:
code .
- To run the JavaScript examples, install and use node.js.
- And install prompt-sync:
- (re)start VS Code
- open a terminal in VS Code (in menu: Terminal -> New Terminal)
- In the opened terminal window, type in the following command:
npm i prompt-sync
- macOS: install developer tools, open a Terminal and type
and agree to install.
git - Windows: install GCC with minGW following this instructions
- Choose ESP32C6 as device target
- For debugging on hardware, use Eclipse CDT GDB Adapter
- For debugging with Wokwi, use Wokwi GDB