# Selecting MCU

At this point, Arduino should be ready to work with a wide variety of STM32 microcontrollers. We need to specify which exact one we're going to use. Today our star is **STM32G474RExx**.

Open Arduino IDE and do the following:

* Select the "**Generic STM32G4 series**" in the "**Board**" field:\
  Tools->Board->STM32 boards groups->Generic STM32G4 series

<figure><img src="https://content.gitbook.com/content/liPblHHYVNdK0NqFTupF/blobs/tkduVXh6x3Hs8Q6pk3Pk/image.png" alt=""><figcaption></figcaption></figure>

* Make sure it is displayed as a target board:

<figure><img src="https://content.gitbook.com/content/liPblHHYVNdK0NqFTupF/blobs/fLFNw7jqAfJd9aQf4rZa/image.png" alt=""><figcaption></figcaption></figure>

Если в списке плат у вас стоит что-то другое, то кликните на стрелочку внизу и выберите Select Other Board and Port. Укажите необходимые названия и нажмите OK.

<figure><img src="https://content.gitbook.com/content/liPblHHYVNdK0NqFTupF/blobs/TR5XjHNUAz3RM1VMSP6q/image.png" alt=""><figcaption></figcaption></figure>

* Select the "**Generic G474RETx**" in the "**Board part number**" field:\
  Tools->Board part number->Generic G474RETx

<figure><img src="https://content.gitbook.com/content/liPblHHYVNdK0NqFTupF/blobs/8bITcwmdbz9BlLX0yXyj/image.png" alt=""><figcaption></figcaption></figure>

* Select the "**STM32CubeProgrammer (SWD)**" in the "**Upload method**" field:\
  Tools->Upload method->STM32CubeProgrammer (SWD)

<figure><img src="https://content.gitbook.com/content/liPblHHYVNdK0NqFTupF/blobs/NIZAjosdwKwmiEbI8UYG/image.png" alt=""><figcaption></figcaption></figure>
