2025-12-17 1:57 AM
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.
Solved! Go to Solution.
2025-12-20 3:07 AM - edited 2025-12-20 3:10 AM
@Sourabh15 wrote:why do manufacturer bring up such units.
Because customers buy them!
They are for the edge cases where lowest pin count trumps absolutely everything - including convenience of programming/debugging/development.
It you are not in that situation, they are best avoided!
PS:
If package size is your key concern, some of the other variants might actually be smaller - even with more pins...
2025-12-24 9:08 PM
Hey Andrew,
Thanks for your help with the diagram.
I created something in the CubeMX, can you just check if the assigned pins are good?
And as schematic is concerned, I am planning to keep three components on the PCB for easy debug. Do you feel I am going in a good direction?
I am eagerly waiting for your feedback.