Can't get SMT32CubeProgrammer to connect to picocalc

Having some real trouble connecting STM32CubeProgrammer to the picocalc to update the keyboard firmware. We switched the #1 dip switch on on the sw701. Connect to the usb on the PC and power on the picocalc. We get a noise for the USB connecting. Then switch to UART in STM32CP. COM ports listed are COM6, COM4, COM5, COM3. COM6 and COM3 say in use. Connecting with COM4 or COM5 both give the error:

Since both ports give that error - including when the picocalc isn’t even plugged in - this feels to me like it’s not trying to actually trying to correct port to talk to the serial.

Is there a separate driver I need? I vaguely remember it installing one as part of the STM32CP install but I may be wrong.

We tried several different USB cables, including a brand new USB C 3.2 one. Same result.

This was all in service of my son wanting to upgrade to a Pico 2 he wanted, which as near as I could tell required the keyboard update. Unfortunately, my son must have slightly mishandled it while he was holding it and it cracked the screen. Now we have to order a new one. After being so careful while installing since so many people warned about how fragile they are, it’s quite a setback for him. This whole process has him wishing he’d never tried tinkering with it, which is pretty heartbreaking. I’m trying to keep his spirits up. He wanted the new chip because he’s been writing a lot of programs and pushing it to the limit of the Pico 1 chip. He got a Pico 2 chip for only $7, but now it looks like that’s going to become a LOT more expensive.

Thanks for any help.

Edit: This is on Windows 11.

Bamboo, this reply only applies if you are using a linux system to connect to your RP

The STM32 cube programmer is looking for a serial port to connect to.THat will be in the form of /dev/ttyUSB0

After your have your picocalc USBC cable plugged in to your linux machine AND after powering up your picocalc (make sure SW1 is enabled) - that enables uart communication with the PICOCALC board) go in to terminal mode on your host computer and as administrator type the following: ls -la /dev/tty*

You should see a ttyUSB0 or something like that displayed on the list

do the following as administrator: sudo chmod 666 t/dev/ttyUSB0 (or whatever that port name is)

bottom line - you must give access to the STM32 programmer software to connect to that port. The other way would be for you run the STM32 software as super user but I have not tried that.

see if that works and let me know here

That is what I did and it worked fine.

Thanks, but I should have noted I’m on Windows 11.

We’re going to give it a try on (another Windows) machine.

Solved it!

The problem was running STM32CP before powering on the picocalc. So it wasn’t seeing the right com port yet. Gotta follow those instructions. :sweat_smile: