Monitor_options not working

Hi there

I’m trying to set my serial monitor in PIO to have the local echo enabled as default.

In the example here, the following is set:

; Serial Monitor options
monitor_speed = 115200
monitor_options =
--encoding
hexlify

So in my platformio.ini, I have the following:

[env:uno]
platform = atmelavr
board = uno
framework = arduino
upload_port = COM105
monitor_port = COM105
monitor_speed = 9600
monitor_options =
--echo

They all work well except the monitor_options.

I get the following message in the terminal:
Warning! Ignore unknown configuration option `monitor_options` in section [env:uno]

I know I can turn echo on with CTRL+T, CTRL+E, but that gets a bit tedious after forgetting a few times.

Is there a way to turn it on by default?

That must be a typo in the docs… it’s monitor_flags, not monitor_options :wink:

https://docs.platformio.org/en/latest/projectconf/section_env_monitor.html#monitor-flags

Thanks. I wish I could try it.
Since closing Visual Studio Code down last night and reopening this morning, I have these types of errors :confounded::

command 'platformio-ide.build' not found
command 'platformio-ide.rebuildProjectIndex' not found 
command 'platformio-ide.upload' not found

I had this before. I had to uninstall the extension and reinstall and then mess about with my project to get it to work correctly again (although I can’t remember exactly what I did).

Damn :frowning:

For someone else with pretty much the same problem, and recently… Ivan has suggested the following:

The solution was related to another post I made earlier about multi-root workspaces. Once I had that figured out, PlatformIO activated and all was well.
Here’s the link to said post:

And you are right, it is monitor_flags

1 Like