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.

56 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 = release
libdeps_dir = depends
[env]
platform = atmelavr
; solves avr-debugger issue https://github.com/jdolinay/avr_debug/issues/19
platform_packages =
toolchain-atmelavr@~1.70300.0 ; use GCC AVR 7.3.0+
board = emgdmm_v3
monitor_speed = 9600
test_transport = custom
test_speed = 115200
lib_deps =
git@teach.emg.ing.tu-bs.de: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
-D AVR8_BREAKPOINT_MODE=2
;-D __AVR_ATmega1284P__ ; required by avr8-stub.c
debug_tool = avr-stub
; 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