Skip to content

Pinout_Xtreme_MCU

AAEONAEU-SW edited this page May 13, 2022 · 2 revisions

Pinout MCU

Alt Functions External Conn Chassis MCU Pinout Pin - Pin MCU Pinout External Conn Chassis Alt Functions
1 3.3V 1 2 3.3V 2
GND 3 4 GND
13 GPIO_PB1 5 6 VBAT
3 GPIO_PB7 7 8 GPIO_PB8 15
4 GPIO_PB6 9 10 GPIO_PB9 16
GPIO_PB5 11 12 GPIO_PC15 14
GPIO_PB4 13 14 NRST
GPIO_PB3 15 16 GPIO_PA0 WKUP
GPIO_PA15 17 18 GPIO_PA1 5
SWDCLK GPIO_PA14 19 20 GPIO_PA2 6
SWDIO GPIO_PA13 21 22 GPIO_PA3 7
USB_DP GPIO_PA12* 23 24 GPIO_PA4 8
USB_DN GPIO_PA11* 25 26 GPIO_PA5 9
GPIO_PA10 27 28 GPIO_PA6 10
GPIO_PA9 29 30 GPIO_PA7 11
12 GPIO_PA8 31 32 GPIO_PB0
GPIO_PB15 33 34 GPIO_PB2
GPIO_PB14 35 36 GPIO_PB10 I2C_SCL
GPIO_PB13 37 38 GPIO_PB11 I2C_SDA
GPIO_PB12 39 40 5V

Accessing the peripherals on the MCU on UP Xtreme

In order to access the peripherals, you need to reprogram the MCU with the desired functions using one of your favourite frameworks/language:

PlatformIO Projects

Using PlatformIO (with ST STM32 extension), it is easy to setup a project and code with your preferred language and framework for UP Xtreme MCU.

We provide 2 generic samples to test the MCU I/O:

In order to configure your project correctly, the platform.ini file included in the project should be as follows:

 ;PlatformIO Project Configuration File
 ;
 ;   Build options: build flags, source filter
 ;   Upload options: custom upload port, speed and extra flags
 ;   Library options: dependencies, extra library storages
 ;   Advanced options: extra scripting
 ;
 ; Please visit documentation for the other options and examples
 ; https://docs.platformio.org/page/projectconf.html
  
 [env:bluepill_f103c8]
 platform = ststm32
 board = bluepill_f103c8
 framework = arduino
 upload_protocol = stlink
 lib_ldf_mode = deep+
 board_build.f_cpu = 48000000L
 build_flags =
     -D HSE_VALUE=8000000
     -D HAL_PCD_MODULE_ENABLED
     -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
     -D USBCON
     -D USBD_USE_CDC
     -D USBD_VID=0X160D
     -D USBD_PID=0X9991
     -D USB_MANUFACTURE="Unknown"

Once your project is ready to be flashed, connect the USB STM32 Programmer to the Host PC where you have the PlatformIO IDE and use the available programming adapter cable to connect the STM32 Programmer to the MCU internal header. Then you can program the MCU by pressing the "upload" button on PlatformIO.

Once the upload process is complete the MCU will reset itself and start the uploaded sketch.

Clone this wiki locally