Open the terminal as administrator, and run:
$ diskpart
$ DISKPART> list disk
$ DISKPART> select disk <number>
$ DISKPART> clean
$ DISKPART> convert <gpt|mbr>
$ DISKPART> create partition primary size=<size in Mib>
Note: to create others partitions you must specify the offset
option. This option must be specified in Kib unity. The first default offset
is of 1024Kib, so to create a second, third, ... partition primary, specify the offset
as (size in Mib of the last partition ⨯ 1024) + 1024.
$ DISKPART> list partition
$ DISKPART> select partition <number>
$ DISKPART> format fs=<filesystem name> quick
Note: to convert a partition to FAT32, it must be a maximum of 32 Gib (32.768 Mib).
$ assign letter=<letter>