Flashing the latest keyboard firmware

Hi, does anyone have any idea of how to flash the latest PicoCalc keyboard firmware from MacOs using the STM32CubdeProgrammer?
I’ve tried the (very brief) instructions here - PicoCalc/wiki/Setting-Up-Arduino-Development-for-PicoCalc-keyboard.md at master · clockworkpi/PicoCalc · GitHub
But nothing works

How nothing works?

What does STM32CubdeProgrammer report ??

It wasn’t finding the USB serial port. Then all of a sudden it did!
The firmware update then worked!
Who knows :slight_smile:

Good to know :slight_smile:

I think it is related with usb device priviledge on Mac ,I have no Mac so I can not verify that

but I think STM32CubdeProgrammer will do the job

It eventually found it, without doing anything different.

And what is the device id/label on Mac? like /dev/ttyACM0 under linux

When it found the serial connection, I just did the firmware upgrade and stopped looking at it.
I backed away, and calmed down.

And how do you flash keyboard firmware with a pc? Thonny? Or how?

Boy the process sure is fussy. I managed to get the download to work once - or so I thought, but then my Pico was dead. I re-flashed basic onto it, and when it booted it complained it couldn’t find the keyboard.

Now I can’t get it to connect correctly at all. I’m using STM32CubeProgrammer on an M-series Mac. I have it set to UART, and I picked … ah… tty.usbserial was the correct one. I’d kept picking a different tty debug thing that wouldn’t work.

So it looks like it downloaded, then I picked Disconnect, then turned off SW1, and unplugged the USB-C cable. The led on the pico is flashing slowly but the main power button does nothing.

Can’t get it to turn on, can’t even get it into BOOTSEL mode. Guess I bricked it…

EDIT - and of course right after I posted, I tried turning it on again, and it decided to work fine. Keyboard works etc. (I’m running basic RC23a for the pico 2 I just installed)

-Dave

You probably turned on the device again while the switch was still in BOOT mode. Power button is ultimately handled by the stm32 so that’s why it didn’t work. Solution: hold down power button for a long long time (half a minute?) to force the axp to power off, or simply remove and reinstall the batteries.