so I'm somewhat of a noob when it comes to anything around STM chips. I have received an STM32F042F6
chip from my school, worked with it successfully on one Windows laptop. Since then I haven't had time to tinker with it at all and I have bought a new laptop. The chip is able to connect to the old laptop just fine, can be read and programmed using STM32CubeProgrammer
. Issues arise when I attempt to connect to it from the new laptop - while CubeProgrammer finds the USB device, attempting to connect prompts an error message about the device being under readout protection. (on the old laptop I have verified that the readout protection option is set to 0 - no protection)
Old laptop (running win11, connection via USB):
- can connect via
STM32CubeProgrammer (v2.11.0)
- can read, erase, write to board
New laptop (running win11, connection via USB):
STM32CubeProgrammer (v2.10.0, v2.13.0)
reports device under readout protection- attempt to connect with Readout Unprotect results in:
- "Error: DFU connection error.Please reset the target and try again" (under version v2.10.0)
- message prompting me to "turn off turn on device" (under v2.13.0)
- no amount of reconnecting the device has helped
I'm not sure about the differing behaviors under those two version of CubeProgrammer on new laptop, however between those two version I have reinstalled drivers several times, so that might be the reason? The v2.11.0 that's working on my old laptop is no longer available on stm webpage (no idea why), therefore I wasn't able to download this exact same version.
I've tried to uninstall-reboot-reinstall everything stm related, including drivers. I have exported the driver being used for the board from the old laptop (using pnputil) and installed it on the new one - just to be sure that I'm running the same version. I've tried to connect via UART instead of USB to rule out cable issues (using my FlipperZero as UART to USB adapter). I'm starting to be hopeless and have no clue what the issue could be or what to do next. I'd be extremely grateful for any guidance or direction about what to try to do.
Further info:
It's not a nucleo board, it's just a standalone chip in TSSOP20 package, wire bonded to a breadboard adapter. This all sits on a breadboard with minimum extra stuff, just buttons for RESET and BOOT0, LEDs (power and extra one), and power supply + data via USB (on a daughter board); see picture below for reference.
STM32F042F6 on the page of manufacturer (I have the version in TSSOP20 packaging)