You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.4 KiB
INI
54 lines
1.4 KiB
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
[platformio]
|
|
default_envs = debug
|
|
libdeps_dir = depends
|
|
|
|
[env]
|
|
platform = atmelavr @ ^3.3.0
|
|
|
|
board = emgdmm_v3
|
|
monitor_speed = 9600
|
|
test_transport = custom
|
|
test_speed = 115200
|
|
|
|
lib_deps =
|
|
git@git.rz.tu-bs.de:emg/lehre/dmm/dmm-libs.git
|
|
|
|
[env:release] ; for flash via bootloader
|
|
; keep defaults, see board definitions for programming support
|
|
|
|
|
|
[env:debug] ; for debugging using avr-stub, see documentation
|
|
build_type = debug
|
|
build_flags =
|
|
-D DEBUG
|
|
-D GDBSTUB ; program should disable any own UART use if this is defined
|
|
-D AVR8_BREAKPOINT_MODE=2
|
|
|
|
debug_tool = avr-stub
|
|
debug_port = /dev/ttyUSB0 ; TODO: this should be infered automagically
|
|
|
|
; add GDB stub implementation
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
jdolinay/avr-debugger @ ^1.3
|
|
|
|
|
|
[env:jtag] ; for JTAG bootloader flashing and potentialy debugging once supported
|
|
build_type = debug
|
|
build_flags =
|
|
-D DEBUG
|
|
|
|
upload_protocol = jtag3
|
|
upload_flags = -p, atmega1284 ; fix signature error with JTAGICE
|
|
|
|
; Atmel-ICE based AVR debug is not directly supported by PIO as of 04.2020. As not
|
|
; available at home, not an issue for DMM at the moment.
|
|
; Potentially solveable by using avarice as a server.
|
|
; See: https://github.com/platformio/platform-atmelavr/issues/53
|
|
|