PicoCalc mmbasic USB serial console

I loaded the picocalc version of mmbasic.

WebMite_PICO2W_V6.00.03_PicoCalc.uf2

The option serial console is listed as follows.

OPTION SERIAL CONSOLE COM1 , GP0,GP1

I either want to remove this option or change it to

OPTION SERIAL CONSOLE GP0,GP1,B

Either option should enable the serial console over USB. I tested it with the not specific to the picocalc generic version of mmbasic and serial over USB worked. Unfortunately, the generic version appears not to support the various control, arrow or function keys in the editor when using the picocalc keyboard.

Any attempts to change the serial console option are reset back to the defaults. Is there any way to enable a USB serial console in the official picocalc version?

The other option would be to solve the editor key issue in the generic version.

WebMiteRP2350V6.00.03.uf2

You’ll have to edit FileIO.c. Comment out lines 5009-5011 so they look like:

    //Option.SerialConsole = 1;
    //Option.SerialTX = 1;
    //Option.SerialRX = 2;

then you’ll have to recompile to create a new .uf2 file.

Thanks, I will see how it goes when I get a chance to set up the build environment.

Thanks Tom, you were close, I had to do the following to get it to work. With the first line commented out, the options were still set the same as with the lines uncommented. So I left the first line uncommented and changed the value to 0, worked as I wanted.

FileIO.c lines 5009-5011

Option.SerialConsole = 0;
//Option.SerialTX = 1;
//Option.SerialRX = 2;

And now I have the Pico SDK setup, I have been meaning to get to it. Now to get back too that basic program I am working on, too large to use the pico keyboard.

Strange! With all three lines commented out, I can add the OPTION SERIAL line at will and change to COM2: if I want to. I can change it to both or not at my whim.

When I saw it still come up as the same default, I had not thought to try and change it. I went back to just what you suggested. Yes, I am able to manually change it to what I want and my changes remain after a power down.

I see that setting that first line to 0, prevents changes if a person wants a uart serial console.

So yes, I an going with your original suggestion. Thanks again.