-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
51 lines (44 loc) · 1.61 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
39
40
41
42
43
44
45
46
47
48
49
50
51
; 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]
platform = nordicnrf52
board = nrf52_dk
framework = mbed
; platform_packages = framework-mbed @ ~6.51401.0
platform_packages = framework-mbed@https://github.com/StarGate01/mbed-os.git
extra_scripts = pre:patch/apply_patch.py
debug_tool = cmsis-dap
upload_protocol = cmsis-dap
build_type = release
build_flags = -DPIO_FRAMEWORK_MBED_RTOS_PRESENT -Ires/fonts/include -Ires/img/include
lib_extra_dirs = res
src_filter = +<*> -<.git/> -<doc/> -<patch/> -<tools/>
monitor_port = socket://localhost:19021
[env:i6hrc_debug]
build_type = debug
build_flags = ${env.build_flags} -DTARGET_VARIANT_I6HRC -DMAIN_APP -D_DEBUG
[env:i6hrc]
build_flags = ${env.build_flags} -DTARGET_VARIANT_I6HRC -DMAIN_APP
[env:i6hrc_flash_read_debug]
build_type = debug
build_flags = ${env.build_flags} -DTARGET_VARIANT_I6HRC -DFLASH_READ_INTERFACE -D_DEBUG
[env:i6hrc_flash_read]
build_flags = ${env.build_flags} -DTARGET_VARIANT_I6HRC -DFLASH_READ_INTERFACE
[env:nrf52_dk_debug]
build_type = debug
upload_protocol = jlink
debug_tool = jlink
monitor_port = /dev/ttyACM0
build_flags = ${env.build_flags} -DTARGET_VARIANT_NRF52_DK -DMAIN_APP -D_DEBUG
[env:nrf52_dk]
upload_protocol = jlink
debug_tool = jlink
monitor_port = /dev/ttyACM0
build_flags = ${env.build_flags} -DTARGET_VARIANT_NRF52_DK -DMAIN_APP