Please help me getting I2C Slave to work on STM32F103

In short:
Arduino Wire library fails to act as a Slave on at least STM32F103Cx , :

I also tried to ask Copilot for help, but that did not result in working code.

What I need is to recieve and respond to Write requests - much like the test app
issue at Arduino poster above.

I also tried the super-bloated STM32CubeMX, but that generated many files, and much code, including irrelevant code that was #ifdef’ed for other MCU series that I selected, with no clear way to use it.

Please point me to some source that I can use as example on how to recieve/respond to I2C slave requests. Something like the “wire” library from Arduino, or just code for IC2C1 /PB6/PB7

Duplicate of STM32F108 as Slave won't work
Duplicate of STM32F103 as I2C slave the PlatformIO way? (non-Arduino?)

Please ask questions just once.

Requested for deletion of those.
Those look like the same for you, but those are in very different phases of the the troubleshooting, in the beginning I had no clue why this happened, now I need help on how to workaround it. :slight_smile: