-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
38 lines (35 loc) · 1.25 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32-c3-ai-thinker]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32-c3-ai-thinker
framework = espidf
board_build.partitions = partitions_singleapp.csv
debug_tool = custom
debug_server =
openocd-esp32/bin/openocd
-f
openocd-esp32/share/openocd/scripts/board/esp32c3-builtin.cfg
debug_init_break = thb app_main
debug_port = localhost:3333
debug_init_cmds =
define pio_reset_halt_target
mon reset halt
end
define pio_reset_run_target
mon reset run
end
target extended-remote $DEBUG_PORT
pio_reset_halt_target
flushregs
$LOAD_CMDS
$INIT_BREAK
;debug_svd_path = esp32c3.svd ; this option is already present in esp32-c3-ai-thinker.json(custom board); you need to put it in PLATFORM_ROOT/misc/svd directory, doesn't work with project directory
;copy esp32c3.svd to PLATFORM_ROOT/misc/svd directory to be able to view peripheral regs