Skip to main content
Visitor II
December 23, 2025
Question

STM32C011J4M6 programming pins and timer example ?

  • December 23, 2025
  • 2 replies
  • 89 views

 

1. Please suggest the pin for programming interface or documents 

2. Programme example for tick timer, two external interrupts? library

Glodhi_0-1766468122893.png

 

    This topic has been closed for replies.

    2 replies

    Super User
    December 23, 2025

    My copilot said:

    Programming Interface Pins (SWD)

    Even in the 8‑pin SOIC package, the STM32C011J4M6 exposes the full SWD interface.

    ✔ Recommended SWD pins

    Function Pin Notes
    SWDIOPA13Bidirectional debug data
    SWCLKPA14Debug clock
    NRSTPA0Optional but strongly recommended
    VDD / VSSPower + ground
     

    These are the same pins used on all STM32C0 devices.

    ✔ Official documentation

    You’ll want these three documents from ST:

    • Datasheet (STM32C011x4/x6)

    • Reference Manual (RM0490 — STM32C0 series)

    • Errata Sheet (always worth checking)

    You can find them on ST’s product page by searching “STM32C011J4M6”.

     

    Minimal Example: SysTick + Two External Interrupts (HAL)

    Below is a clean, minimal, reproducible example using HAL. It demonstrates:

    • SysTick running at 1 ms

    • Two EXTI lines on PA1 and PA2

    • Interrupt handlers toggling flags

    • No CubeMX required

    ... (code snippets and explanations follow) 

     

    Notes:

    - the toolchain was recently upgraded  to STM32Cube for VS Code - STMicroelectronics 
    and many existing tutorials... dont reflect that yet,

    - try the STM32 Sidekick (chat button down right corner)

    hth

    KnarfB

    Super User
    December 23, 2025

    @Glodhi wrote:

    1. Please suggest ... documents 


    See the 'Documentation' tab of the Product Page:

    https://www.st.com/en/microcontrollers-microprocessors/stm32c011j4.html#documentation

    The key documents are the Datasheet and the Reference Manual.

     

    For software & examples, see the 'Tools & Software' tab:

    https://www.st.com/en/microcontrollers-microprocessors/stm32c011j4.html#tools-software

     

    You can access examples via STM32CubeMX