Flashing with VScode

I am trying to modify the firmware with Visual Studio code. it builds fine but when it goes to upload it says something about dragon ISP. I do not know or do not have the dragon ISP. After it says this it says something like sending command -1 or something like that. I have 3 other printers and flashing them with stock marlin it works fine. Its only my wanhao that does not work fine when uploading. The reason behind modifying the firmware is because I got a genuine bondtech mini and I need to tell the printer that the x axis is smaller by 15mm. If you know of a solution for this please let me know. I can provide more information
Daniel V

Note: move to a more appropriate category.

This is probably because i let the dragon in the configuration (this is what i am using). I will fix that.

Replace the content of platformio.ini file with the following and it should fix your issue:

#
# ADVi3++ Firmware
# PlatformIO Configuration File
#
# For detailed documentation with EXAMPLES:
#
# http://docs.platformio.org/en/latest/projectconf.html
#

[platformio]
description        = ADVi3++ Firmware
src_dir            = Marlin
build_dir          = .pioenvs
lib_dir            = .piolib
libdeps_dir        = .piolibdeps
default_envs       = i3plus, i3plus-bltouch, i3plus-bltouch3, i3plus-mark2, i3plus-he180021, i3plus-he180021-bltouch, i3plus-he180021-bltouch3

[common]
platform           = atmelavr
board              = megaatmega2560
framework          = arduino
build_flags        = -I $BUILDSRC_DIR -Wall -std=c++14
board_build.f_cpu  = 16000000L
monitor_speed      = 115200

[env:i3plus]
platform           = ${common.platform}
board              = ${common.board}
framework          = ${common.framework}
build_flags        = ${common.build_flags}
board_build.f_cpu  = ${common.board_build.f_cpu}
monitor_speed      = ${common.monitor_speed}

[env:i3plus-bltouch]
platform           = ${common.platform}
board              = ${common.board}
framework          = ${common.framework}
build_flags        = ${common.build_flags} -D ADVi3PP_BLTOUCH
board_build.f_cpu  = ${common.board_build.f_cpu}
monitor_speed      = ${common.monitor_speed}

[env:i3plus-bltouch3]
platform           = ${common.platform}
board              = ${common.board}
framework          = ${common.framework}
build_flags        = ${common.build_flags} -D ADVi3PP_BLTOUCH3
board_build.f_cpu  = ${common.board_build.f_cpu}
monitor_speed      = ${common.monitor_speed}

[env:i3plus-mark2]
platform           = ${common.platform}
board              = ${common.board}
framework          = ${common.framework}
build_flags        = ${common.build_flags} -D ADVi3PP_MARK2
board_build.f_cpu  = ${common.board_build.f_cpu}
monitor_speed      = ${common.monitor_speed}

[env:i3plus-he180021]
platform           = ${common.platform}
board              = ${common.board}
framework          = ${common.framework}
build_flags        = ${common.build_flags} -D ADVi3PP_HE180021
board_build.f_cpu  = ${common.board_build.f_cpu}
monitor_speed      = ${common.monitor_speed}

[env:i3plus-he180021-bltouch]
platform           = ${common.platform}
board              = ${common.board}
framework          = ${common.framework}
build_flags        = ${common.build_flags} -D ADVi3PP_HE180021 -D ADVi3PP_BLTOUCH
board_build.f_cpu  = ${common.board_build.f_cpu}
monitor_speed      = ${common.monitor_speed}

[env:i3plus-he180021-bltouch3]
platform           = ${common.platform}
board              = ${common.board}
framework          = ${common.framework}
build_flags        = ${common.build_flags} -D ADVi3PP_HE180021 -D ADVi3PP_BLTOUCH3
board_build.f_cpu  = ${common.board_build.f_cpu}
monitor_speed      = ${common.monitor_speed}

Be sure to build and upload for your specific printer and configuration (BLTouch, BLTouch3, without BLTouch, …)

Alternatively, you can take the firmware built by platformIO and upload it to the mainboard like you do usually (with Cura, or ArduinoIDE or OctoPrint, …)