@@ -419,19 +419,19 @@ Both the IDF bootloader image and the application image are verified against
419
419
- Run container
420
420
421
421
` ` ` bash
422
- docker run --rm -it esp32s3:latest
422
+ # Adjust the --device value to appropriate port
423
+ docker run --rm -it --device=/dev/ttyUSB0 esp32s3:latest
423
424
` ` `
424
425
425
- - Build sample app inside container
426
+ - Build sample void app inside container. Note that the app specific
427
+ ` sdkconfig.defaults` is symlinked to ` ../sdkconfig.apps` .
426
428
427
429
` ` ` bash
428
430
$ pwd
429
431
/home/esp
430
432
# Set up environment
431
433
. esp-idf/export.sh
432
- # Get sample app - hello_world and build for esp32s3 target
433
- $ cp -r esp-idf/examples/get-started/hello_world/ .
434
- $ cd hello_world
434
+ $ cd apps/avoid_app
435
435
$ idf.py set-target esp32s3
436
436
$ idf.py build
437
437
` ` `
@@ -449,11 +449,41 @@ Both the IDF bootloader image and the application image are verified against
449
449
Inside container, you can interact with the device using esp-idf tools, e.g.,
450
450
451
451
` ` ` bash
452
+ cd apps/void_app
452
453
# Display serial output
453
454
idf.py monitor
454
- # Flash app and partition table images
455
- idf.py flash
455
+ # Flash bootloader - idf.py flash cannot be used if secure boot is enabled
456
+ # Adjust device node (-p option) as needed
457
+ # Second-stage bootloader shall be flashed at offset 0x0000
458
+ esptool.py --chip esp32s3 \
459
+ --port=/dev/ttyUSB0 \
460
+ --baud=460800 \
461
+ --before=default_reset \
462
+ --after=no_reset \
463
+ --no-stub \
464
+ write_flash \
465
+ --flash_mode dio \
466
+ --flash_freq 80m \
467
+ --flash_size keep \
468
+ 0x0 build/bootloader/bootloader.bin
469
+ # Flash app and partition table images. Can use `idf.py flash` or explicitly
470
+ # as below. Adjust device node (-p option) as needed
471
+ esptool.py -c esp32s3 \
472
+ -p /dev/ttyUSB0 \
473
+ -b 460800 \
474
+ --before=default_reset \
475
+ --after=no_reset \
476
+ --no-stub \
477
+ write_flash \
478
+ --flash_mode dio \
479
+ --flash_freq 80m \
480
+ --flash_size keep \
481
+ 0x20000 build/void_app.bin \
482
+ 0x10000 build/partition_table/partition-table.bin
456
483
` ` `
484
+
485
+ Please refer to the void app' s [flashing
486
+ instructions](./esp32s3/apps/void_app/README.md) for more detail.
457
487
</details>
458
488
459
489
<details>
0 commit comments