# Cube-MX

## Installation

[Download Cube-mx](https://www.st.com/en/development-tools/stm32cubemx.html#overview\&secondary=st-get-software)

[User Manual for Cube-MX](https://www.st.com/resource/en/user_manual/dm00104712-stm32cubemx-for-stm32-configuration-and-initialization-c-code-generation-stmicroelectronics.pdf)

## Using CubeMX with uVision

This section explains explains how to setup the tools necessary to create a project for an STM32 microcontroller with Arm Keil MDK. The project is tightly integrated with STM32CubeMX, a graphical tool that configures initialization code for peripherals and system clock setup.

To install STM32CubeMX on your computer:

1. **Download** [**STM32CubeMX**](https://www.st.com/en/development-tools/stm32cubemx.html).
2. **Install STM32CubeMX** and start the utility.
3. Use **Help - Install New Libraries** to add a **Firmware Package** for the relevant STM32 device series.

Continue to read on how to use STM32CubeMX together with MDK:

* [Use STM32CubeMX in MDK Projects](https://www.keil.com/pack/doc/STM32Cube/html/cubemx_using.html)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ykkim.gitbook.io/EC/other-programming/cube-mx.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
