Came across an error I haven’t seen before when attempting to upload to a board that my computer (Windows) isn’t seeing. I’ve tried with 2 separate computers and 2 known good cables. Neither of these computers/cables have had issue with several other boards. When I connect the board, I only see COMs that aren’t the board, I try to upload it anyway and I get the following error:
“Cannot perform port reset: 1200-bps touch: opening port at 1200bps: The semaphore timeout period has expired.”
I bought the board off AliExpress. It already came pre-programmed with a crappy config. It works except for the USB. The on-board LED pulses once every second.
Random thought- can I reconfig it over Bluetooth? I’ve never used the Bluetooth function before so I’m not sure
Proffieboards don’t have bluetooth, but they have a serial port that is often used together with a bluetooth module. It may be possible to put the board in bootloader mode and upload over serial, but I’m not sure if anybody has ever tried that.
There is also something called an SWD port (accessible through pads on the bottom of the board) which can be used to program the board. You need an SWD programmer, but those can be had for a few bucks.
There are three round pads on the bottom of the board.
The one next to the SCL pad is SWDIO, the one next to DATA2 is SWDCLK.
Wire those two, plus GND to the ST-link V2 and you should be ready to go.
Then, open up ProffieOS in arduino and hit verify. Read the output and find the location of the “ProffieOS.ino.elf” file. Then open up a cmd or powershell window and run openocd as:
openocd.exe -f stm32l452.cfg program c:\full\path\to\ProffieOS.ino.elf verify reset exit
Note, I have not tried this on windows, so there may be permission issues to figure out, but in principle, these are the steps that you need to do.