Open Con30 opened 2 years ago
i been having the same issue on an sanguino_atmega1284p. if i look in windows task manager. its missing the .elf file added to the run command is yours missing it to?
if i look in atmelavr\platform.py it seems to be missing the .elf agument?
debug["tools"]["simavr"] = {
"port": ":1234",
"server": {
"package": "tool-simavr",
"arguments": [
"-g",
"-m", debug["simavr_target"],
"-f", build.get("f_cpu", "")
],
"executable": "bin/simavr"
},
}
to make mine run i add this to plantform.ini (it still fails at random, like it times out with a full rebuild)
[env:melzi_debug]
build_type = debug
debug_tool = simavr
debug_server =
${platformio.packages_dir}/tool-simavr/bin/simavr.exe
-m
atmega1284p
-f
16000000L
-g
1234
${platformio.build_dir}\melzi_debug\firmware.elf
still trying to figure out how the console works for simavr
When trying to run simavr the debugger fails stating load failed and no error.
My launch.json looks like this:
platform.ini:
Debug Console:
The strange thing is that it works fine running simavr from power shell but for some reason platformio just doesn’t want to run it.