Simavr Debugging

I’m trying to debug code for arduino uno using simavr, but I can’t get it to work even with the simplest of projects. The last error it gives is:

.pioinit:12: Error in sourced command file:
Remote target does not support flash erase

Any help would be much appreciated

I’m not able to reproduce that.

With the standard

[env:uno]
platform = atmelavr
board = uno
framework = arduino
debug_tool = simavr

and blinky code shown above. Please post a minimal project that fails.

Weird. That exact setup is what I tried.

I guess I’ll try deleting my ~/.platformio folder and trying again?

Now I get a new error:
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

I’m on Ubuntu 23.10, which doesn’t include ncurses 5 anymore. I fixed this before by linking platformio’s avr-gdb to my system’s avr-gdb, but maybe that doesn’t play nice with simavr?

Hi @thirstyice
Did you ever fix this? I’ve got the exact same problem and getting mad in trying to solve this…
Best, mous

Try https://askubuntu.com/a/1531606?

Thanks, but I meant the original problem:

.pioinit:12: Error in sourced command file:
Remote target does not support flash erase

But I found it, had to disable upload:

debug_load_cmds =
debug_load_mode = manual

Now it works.
Thanks anyway!