mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 16:57:48 +01:00
fix upload not working
This commit is contained in:
@@ -22,21 +22,24 @@ board_hardware.oscillator = external
|
||||
board_hardware.uart = no_bootloader
|
||||
; Brown-out detection
|
||||
board_hardware.bod = 2.7v
|
||||
|
||||
; specify fuses because platformio burns wrong ones when uploading
|
||||
; actually this doesn't help?
|
||||
; for whatever reason avrdude gives an error if you don't upload
|
||||
; just after flashing fuses
|
||||
board_fuse.lfuse = 0xf7
|
||||
board_fuse.hfuse = 0xd7
|
||||
board_fuse.efuse = 0xfd
|
||||
build_unflags = -flto
|
||||
|
||||
board_upload.speed = 115200
|
||||
|
||||
monitor_speed = 9600
|
||||
|
||||
upload_protocol = stk500
|
||||
upload_port = COM3
|
||||
upload_flags = -PCOM3
|
||||
; Custom upload procedure
|
||||
upload_protocol = custom
|
||||
; Avrdude upload flags
|
||||
upload_flags =
|
||||
-C$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
|
||||
-p$BOARD_MCU
|
||||
-PCOM3
|
||||
-cstk500
|
||||
-e
|
||||
; Avrdude upload command
|
||||
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
|
||||
|
||||
|
||||
|
||||
lib_deps = 883 #Servo
|
||||
Reference in New Issue
Block a user