Skip to content

Commit 3a59311

Browse files
committed
yes
1 parent 65c050c commit 3a59311

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ idf_tools.py install qemu-xtensa qemu-riscv32
143143

144144
# Boot firmware image
145145
qemu-system-xtensa -machine esp32 -nographic -drive file=firmware1.bin,if=mtd,format=raw
146-
147146
```
147+
- Press Ctrl+A then C to exit qemu
148+
148149

149150
---
150151

demo_esp_idf/build_and_boot.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
project="$(pwd)"
4+
5+
echo "[+] Building ${project}"
6+
idf.py build
7+
8+
echo "[+] Merging binaries"
9+
cd build
10+
11+
esptool.py --chip esp32 merge_bin -o ../firmware2.bin --fill-flash-size 4MB @flash_args
12+
13+
echo "[+] Booting"
14+
qemu-system-xtensa -machine esp32 -nographic -drive file=firmware2.bin,if=mtd,format=raw

demo_esp_idf/firstproj/main/firstproj.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
void app_main(void)
55
{
66
ESP_LOGI("firstproj", "Started first project");
7+
printf("Trying to print from printf");
78

89
// while (true)
910
// {

0 commit comments

Comments
 (0)