Solved
How to Initialize STM32C011J6
- December 17, 2025
- 5 replies
- 352 views
Hi There,
So, I got some of the STM32C011J6 MCUs for my simple project of reading sensors data and generating an interrupt.
But I am in a dilemma, that the MCU's has I2C Pins, SWD Pins for programming, GPIO pins to act as interrupt but how to initialize it in CUBEMX.
I am planning to build PCB after I successfully assign pins in CUBEMX.
When I choose I2C, It blocks the SWD Pins and Vice versa. Also, is External Crystal necessary for such MCU? Looking forward to most of the suggestions and resources.
My plan is to read a sensor data via I2C and generate interrupt on a GPIO Pin.

