Skip to content

Commit 3aee34f

Browse files
committed
[stm32] update STM32L562 pin configuration
- Corrected pin names and configurations in README.md - Updated board descriptions in boards.txt - Adjusted memory definition in ldscript.ld - Revised digital and analog pin arrays in variant_STM32L562E_DK.cpp - Consolidated pin definitions and refined constants in variant_STM32L562E_DK.h.
1 parent 5c3892e commit 3aee34f

File tree

5 files changed

+212
-283
lines changed

5 files changed

+212
-283
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ User can add a STM32 based board following this [wiki](https://github.com./stm32d
745745
| :----: | :-------: | ---- | :-----: | :---- |
746746
| :green_heart: | STM32L552ZC-Q<br>STM32L552ZE-Q | Generic Board | *2.0.0* | |
747747
| :green_heart: | STM32L562ZE-Q | Generic Board | *2.0.0* | |
748-
| :yellow_heart: | STM32L562QEIxQ | Generic Board | *2.11.0* | |
748+
| :yellow_heart: | STM32L562QC-EIxQ | Generic Board | *2.11.0* | |
749749

750750
### Generic STM32U0 boards
751751

boards.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -12269,8 +12269,8 @@ GenL5.menu.pnum.GENERIC_L562ZETXQ.build.product_line=STM32L562xx
1226912269
GenL5.menu.pnum.GENERIC_L562ZETXQ.build.variant=STM32L5xx/L552Z(C-E)TxQ_L562ZETxQ
1227012270
GenL5.menu.pnum.GENERIC_L562ZETXQ.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32L5xx/STM32L562.svd
1227112271

12272-
# Generic L562QEIxQ
12273-
GenL5.menu.pnum.GENERIC_L562QEIXQ=Generic L562QEIxQ
12272+
# Generic L562QC-EIxQ
12273+
GenL5.menu.pnum.GENERIC_L562QEIXQ=Generic L562QC-EIxQ
1227412274
GenL5.menu.pnum.GENERIC_L562QEIXQ.upload.maximum_size=524288
1227512275
GenL5.menu.pnum.GENERIC_L562QEIXQ.upload.maximum_data_size=196608
1227612276
GenL5.menu.pnum.GENERIC_L562QEIXQ.build.board=GENERIC_L562QEIXQ

variants/STM32L5xx/L552Q(C-E)IxQ_L562QEIxQ/ldscript.ld

+2-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
4444
/* Memories definition */
4545
MEMORY
4646
{
47-
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192K
48-
RAM2 (xrw) : ORIGIN = 0x20030000, LENGTH = 64K
49-
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K
47+
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
48+
FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
5049
}
5150

5251
/* Sections */

variants/STM32L5xx/L552Q(C-E)IxQ_L562QEIxQ/variant_STM32L562E_DK.cpp

+87-123
Original file line numberDiff line numberDiff line change
@@ -15,132 +15,96 @@
1515

1616
// Digital PinName array
1717
const PinName digitalPin[] = {
18-
PA_0, // D0/A0
19-
PA_1, // D1/A1
20-
PA_2, // D2/A2
21-
PA_3, // D3/A3
22-
PA_4, // D4/A4
23-
PA_5, // D5/A5
24-
PA_6, // D6/A6
25-
PA_7, // D7/A7
26-
PA_8, // D8
27-
PA_9, // D9
28-
PA_10, // D10
29-
PA_11, // D11
30-
PA_12, // D12
31-
PA_13, // D13
32-
PA_14, // D14
33-
PA_15, // D15
34-
PB_0, // D16/A8
35-
PB_1, // D17/A9
36-
PB_2, // D18
37-
PB_3, // D19
38-
PB_4, // D20
39-
PB_5, // D21
40-
PB_6, // D22
41-
PB_7, // D23
42-
PB_8, // D24
43-
PB_9, // D25
44-
PB_10, // D26
45-
PB_11, // D27
46-
PB_12, // D28
47-
PB_13, // D29
48-
PB_14, // D30
49-
PB_15, // D31
50-
PC_0, // D32/A10
51-
PC_1, // D33/A11
52-
PC_2, // D34/A12
53-
PC_3, // D35/A13
54-
PC_4, // D36/A14
55-
PC_5, // D37/A15
56-
PC_6, // D38
57-
PC_7, // D39
58-
PC_8, // D40
59-
PC_9, // D41
60-
PC_10, // D42
61-
PC_11, // D43
62-
PC_12, // D44
63-
PC_13, // D45
64-
PC_14, // D46
65-
PC_15, // D47
66-
PD_0, // D48
67-
PD_1, // D49
68-
PD_2, // D50
69-
PD_3, // D51
70-
PD_4, // D52
71-
PD_5, // D53
72-
PD_6, // D54
73-
PD_7, // D55
74-
PD_8, // D56
75-
PD_9, // D57
76-
PD_10, // D58
77-
PD_11, // D59
78-
PD_12, // D60
79-
PD_13, // D61
80-
PD_14, // D62
81-
PD_15, // D63
82-
PE_0, // D64
83-
PE_1, // D65
84-
PE_2, // D66
85-
PE_3, // D67
86-
PE_4, // D68
87-
PE_5, // D69
88-
PE_6, // D70
89-
PE_7, // D71
90-
PE_8, // D72
91-
PE_9, // D73
92-
PE_10, // D74
93-
PE_11, // D75
94-
PE_12, // D76
95-
PE_13, // D77
96-
PE_14, // D78
97-
PE_15, // D79
98-
PF_0, // D80
99-
PF_1, // D81
100-
PF_2, // D82
101-
PF_3, // D83
102-
PF_4, // D84
103-
PF_5, // D85
104-
PF_11, // D86
105-
PF_12, // D87
106-
PF_13, // D88
107-
PF_14, // D89
108-
PF_15, // D90
109-
PG_0, // D91
110-
PG_1, // D92
111-
PG_2, // D93
112-
PG_3, // D94
113-
PG_4, // D95
114-
PG_5, // D96
115-
PG_6, // D97
116-
PG_7, // D98
117-
PG_8, // D99
118-
PG_9, // D100
119-
PG_10, // D101
120-
PG_12, // D102
121-
PH_0, // D103
122-
PH_1, // D104
123-
PH_3 // D105
18+
PB_10, // D0
19+
PB_11, // D1
20+
PD_11, // D2
21+
PD_12, // D3
22+
PF_4, // D4
23+
PD_13, // D5
24+
PB_8, // D6
25+
PC_6, // D7
26+
PG_0, // D8
27+
PB_9, // D9
28+
PE_0, // D10
29+
PB_5, // D11
30+
PB_4, // D12
31+
PG_9, // D13
32+
PB_7, // D14
33+
PB_6, // D15
34+
PA_0, // D16 (A0)
35+
PA_1, // D17 (A1)
36+
PA_4, // D18 (A2)
37+
PA_5, // D19 (A3)
38+
PC_4, // D20 (A4)
39+
PC_5, // D21 (A5)
40+
PB_14, // D22
41+
PB_15, // D23
42+
PA_13, // D24
43+
PA_14, // D25
44+
PB_3, // D26
45+
PA_15, // D27
46+
PA_9, // D28
47+
PA_2, // D29
48+
PA_3, // D30
49+
PA_6, // D31
50+
PA_7, // D32
51+
PB_0, // D33
52+
PB_1, // D34
53+
PB_2, // D35
54+
PC_0, // D36
55+
PC_1, // D37
56+
PC_2, // D38
57+
PC_3, // D39
58+
PF_2, // D40
59+
PC_8, // D41
60+
PC_9, // D42
61+
PC_10, // D43
62+
PC_11, // D44
63+
PC_12, // D45
64+
PD_2, // D46
65+
PD_7, // D47
66+
PD_5, // D48
67+
PD_4, // D49
68+
PF_0, // D50
69+
PD_14, // D51
70+
PD_15, // D52
71+
PD_0, // D53
72+
PD_1, // D54
73+
PE_7, // D55
74+
PE_8, // D56
75+
PE_9, // D57
76+
PE_10, // D58
77+
PE_11, // D59
78+
PE_12, // D60
79+
PE_13, // D61
80+
PE_14, // D62
81+
PE_15, // D63
82+
PD_8, // D64
83+
PD_9, // D65
84+
PD_10, // D66
85+
PE_1, // D67
86+
PF_1, // D68
87+
PF_14, // D69
88+
PF_15, // D70
89+
PH_0, // D71
90+
PA_10, // D72
91+
PA_13, // D73 (ALT)
92+
PA_14, // D74 (ALT)
93+
PA_11, // D75
94+
PA_12, // D76
95+
PC_13, // D77
96+
PD_3, // D78
97+
PG_12 // D79
12498
};
12599

126-
// Analog (Ax) pin number array
100+
127101
const uint32_t analogInputPin[] = {
128-
0, // A0, PA0
129-
1, // A1, PA1
130-
2, // A2, PA2
131-
3, // A3, PA3
132-
4, // A4, PA4
133-
5, // A5, PA5
134-
6, // A6, PA6
135-
7, // A7, PA7
136-
16, // A8, PB0
137-
17, // A9, PB1
138-
32, // A10, PC0
139-
33, // A11, PC1
140-
34, // A12, PC2
141-
35, // A13, PC3
142-
36, // A14, PC4
143-
37 // A15, PC5
102+
16, // A0
103+
17, // A1
104+
18, // A2
105+
19, // A3
106+
20, // A4
107+
21 // A5
144108
};
145109

146110
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)