Skip to content

Commit db0b9a8

Browse files
committed
boards: weact: blackpill_h523ce: Added index.rst file
1 parent 51a38ba commit db0b9a8

File tree

2 files changed

+107
-17
lines changed

2 files changed

+107
-17
lines changed

boards/weact/blackpill_h523ce/blackpill_h523ce.dts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,6 @@
4545
};
4646
};
4747

48-
/*
49-
&timers4 {
50-
status = "okay";
51-
52-
pwm4: pwm {
53-
status = "okay";
54-
pinctrl-0 = <&tim4_ch1_pb6 &tim4_ch2_pb7>;
55-
pinctrl-names = "default";
56-
};
57-
};
58-
*/
59-
6048
&timers3 {
6149
status = "okay";
6250
st,prescaler = <1000>;
@@ -75,14 +63,12 @@
7563
current-speed = <115200>;
7664
};
7765

78-
/*
7966
&i2c1 {
80-
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
67+
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
8168
pinctrl-names = "default";
8269
status = "okay";
8370
clock-frequency = <I2C_BITRATE_FAST>;
8471
};
85-
*/
8672

8773
&spi1 {
8874
pinctrl-0 = <&spi1_sck_pa5 &spi1_nss_pa4
@@ -91,13 +77,11 @@
9177
status = "okay";
9278
};
9379

94-
/*
9580
&rtc {
9681
clocks = <&rcc STM32_CLOCK_BUS_APB3 0x00200000>,
9782
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
9883
status = "okay";
9984
};
100-
*/
10185

10286
zephyr_udc0: &usb {
10387
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
.. zephyr:board:: blackpill_h523ce
2+
3+
Overview
4+
********
5+
The WeAct STM32H523CE Core Board is a low cost and bare-bone development
6+
board made in famous "blackpill" package. It features STM32H523CE, high
7+
performance microcontroller based on a Arm Cortex M33 processor.
8+
9+
Hardware
10+
********
11+
12+
The STM32H523CE based Black Pill board provides the following harware
13+
components:
14+
15+
- STM32H523CE in 48 pin package
16+
- ARM 32-bit Cortex -M33 CPU with FPU
17+
- 250 MHz max CPU frequency
18+
- VDD from 1.7 V to 3.6 V
19+
- 512 kB Flash
20+
- 274 kB SRAM
21+
- TIM
22+
- ADC
23+
- USART
24+
- I2C
25+
- SPI
26+
- USBFS
27+
- FDCAN
28+
- RTC
29+
30+
Supported Features
31+
==================
32+
33+
.. zephyr:board-supported-hw::
34+
35+
Connections and IOs
36+
===================
37+
38+
Default Zephyr Peripheral Mapping:
39+
----------------------------------
40+
41+
- UART_1 TX/RX : PA9/PA10
42+
- I2C1 SCL/SDA : PB6/PB7
43+
- SPI1 CS/SCK/MISO/MOSI : PA4/PA5/PA6/PA7 (Routed to footprint for external flash)
44+
- PWM_3_CH3 : PB0
45+
- PWM_3_CH4 : PB1
46+
- ADC_1 : PA1
47+
- USER_PB : PA0
48+
- USER_LED : PC13
49+
50+
Programming and Debugging
51+
*************************
52+
53+
.. zephyr:board-supported-runners::
54+
55+
There are 2 main entry points for flashing STM32H5X SoCs, one using the ROM
56+
bootloader, and another by using the SWD debug port (which requires additional
57+
hardware). Flashing using the ROM bootloader requires a special activation
58+
pattern, which can be triggered by using the BOOT0 pin.
59+
60+
Flashing
61+
========
62+
63+
Installing dfu-util
64+
-------------------
65+
66+
It is recommended to use at least v0.8 of `dfu-util`_. The package available in
67+
debian/ubuntu can be quite old, so you might have to build dfu-util from source.
68+
69+
There is also a Windows version which works, but you may have to install the
70+
right USB drivers with a tool like `Zadig`_.
71+
72+
Flashing an Application
73+
-----------------------
74+
75+
Connect a USB-C cable and the board should power ON. Force the board into DFU mode
76+
by keeping the BOOT0 switch pressed while pressing and releasing the NRST switch.
77+
78+
The dfu-util runner is supported on this board and so a sample can be built and
79+
tested easily.
80+
81+
.. zephyr-app-commands::
82+
:zephyr-app: samples/basic/blinky
83+
:board: blackpill_f523ce
84+
:goals: build flash
85+
86+
87+
Debugging
88+
=========
89+
90+
The board can be debugged by installing the included 100 mil (0.1 inch) header,
91+
and attaching an SWD debugger to the 3V3 (3.3V), GND, SCK, and DIO
92+
pins on that header.
93+
94+
References
95+
**********
96+
97+
.. target-notes::
98+
99+
.. _WeAct Github:
100+
https://github.com/WeActStudio/WeActStudio.STM32H523CoreBoard/tree/master
101+
102+
.. _STM32F523CE website:
103+
https://www.st.com/en/microcontrollers-microprocessors/stm32h523ce.html
104+
105+
.. _STM32F523CE reference manual:
106+
https://www.st.com/en/microcontrollers-microprocessors/stm32h523ce.html#

0 commit comments

Comments
 (0)