Skip to content

Commit 7c53d58

Browse files
committed
Signed-off-by: Venelin Efremov <ghent360@iqury.us>
2 parents d44f48d + 7704900 commit 7c53d58

89 files changed

Lines changed: 2131 additions & 1832 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ assignees: ''
1515
- **Avoid** to submit a GitHub issue for project troubleshooting.
1616

1717
Any questions/feedback/suggestions should be discussed on the [stm32duino forum](http://stm32duino.com):
18-
* questions on the [STM32 Core](http://stm32duino.com/viewforum.php?f=48)
19-
* bugs/enhancements on the [STM core: Bugs and enhancements](http://stm32duino.com/viewforum.php?f=49)
18+
* questions on the [STM32 Core](http://stm32duino.com/viewforum.php?f=35)
19+
* bugs/enhancements on the [STM core: Bugs and enhancements](http://stm32duino.com/viewforum.php?f=38)
2020

2121
When reporting any issue, please try to provide all relevant information:
2222

CI/build/conf/cores_config.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"NUCLEO_F303K8",
7575
"NUCLEO_G431KB",
7676
"PRNTR_F407_V1",
77+
"PRNTR_V2",
7778
"RUMBA32",
7879
"RAK811_TRACKER",
7980
"RAK811_TRACKERA",
@@ -103,7 +104,7 @@
103104
{
104105
"pattern": "Blink(WithoutDelay)?.ino",
105106
"applicable": false,
106-
"boards": [ "EEXTR_F030_V1", "MALYANM200_F103CB" ]
107+
"boards": [ "EEXTR_F030_V1", "MALYANM200_F103CB", "PRNTR_V2" ]
107108
},
108109
{
109110
"pattern": "STM32SD",
@@ -113,7 +114,9 @@
113114
{
114115
"pattern": "Ethernet/|STM32FreeRTOS",
115116
"applicable": false,
116-
"boards": [ "BLUEPILL_F103C6", "EEXTR_F030_V1", "MALYANM200_F103CB", "NUCLEO_F030R8", "NUCLEO_L031K6" ]
117+
"boards": [
118+
"BLUEPILL_F103C6", "EEXTR_F030_V1", "MALYANM200_F103CB", "NUCLEO_F030R8",
119+
"NUCLEO_L031K6", "PRNTR_V2" ]
117120
},
118121
{
119122
"pattern": "09.USB",
@@ -193,6 +196,7 @@
193196
"FEATHER_F405",
194197
"MALYANM200_F103CB",
195198
"NUCLEO_L031K6",
199+
"PRNTR_V2",
196200
"PX_HER0",
197201
"RAK811_TRACKER",
198202
"RAK811_TRACKERA",
@@ -230,12 +234,12 @@
230234
{
231235
"pattern": "SerialLoop.ino|Tests_basic_functions.ino",
232236
"applicable": false,
233-
"boards": [ "BLUEPILL_F103C6", "NUCLEO_L031K6", "Wraith32_V1"]
237+
"boards": [ "BLUEPILL_F103C6", "NUCLEO_L031K6", "Wraith32_V1" ]
234238
},
235239
{
236240
"pattern": "(Alarm)?TimedWak(e)?up|SerialDeepSleep",
237241
"applicable": false,
238-
"boards": [ "EEXTR_F030_V1", "MALYANM200_F103CB", "STEVAL_MKSBOX1V1" ]
242+
"boards": [ "EEXTR_F030_V1", "MALYANM200_F103CB", "PRNTR_V2", "STEVAL_MKSBOX1V1" ]
239243
},
240244
{
241245
"pattern": "ArduinoISP",
@@ -263,7 +267,10 @@
263267
{
264268
"pattern": "PWM_FullConfiguration",
265269
"applicable": false,
266-
"boards": [ "THUNDER_PACK" ]
270+
"boards": [
271+
"GENERIC_F401RB", "GENERIC_F401RC", "GENERIC_F401RD", "GENERIC_F401RE",
272+
"HY_TinySTM103TB", "THUNDER_PACK"
273+
]
267274
},
268275
{
269276
"pattern": "HardwareTimer_OutputInput_test",

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ But check the following boxes before posting an issue:
1111

1212
- [ ] `Make sure you are using the latest STM32 core and libraries versions.` See [lastest core here](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest).
1313
- [ ] `Your issue is NOT a question/feedback/suggestions.` This should be discussed on the [stm32duino forum](http://stm32duino.com):
14-
* questions on the [STM32 Core](http://stm32duino.com/viewforum.php?f=48).
15-
* bugs/enhancements on the [STM core: Bugs and enhancements](http://stm32duino.com/viewforum.php?f=49).
14+
* questions on the [STM32 Core](http://stm32duino.com/viewforum.php?f=35).
15+
* bugs/enhancements on the [STM core: Bugs and enhancements](http://stm32duino.com/viewforum.php?f=38).
1616
- [ ] `Make sure your issue is not already reported/fixed on GitHub or discussed on the forum` See [stm32duino forum](http://stm32duino.com).
1717
- [ ] `Make sure you are working on the right repository.` See the table below.
1818

README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Arduino core support for STM32 based boards
22
[![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest)
33
![GitHub All Releases](https://img.shields.io/github/downloads/stm32duino/Arduino_Core_STM32/total.svg?label=downloads%20since%201.4.0)
4-
[![GitHub commits](https://img.shields.io/github/commits-since/stm32duino/Arduino_Core_STM32/1.7.0.svg)](https://github.com/stm32duino/Arduino_Core_STM32/compare/1.7.0...master)
4+
[![GitHub commits](https://img.shields.io/github/commits-since/stm32duino/Arduino_Core_STM32/1.8.0.svg)](https://github.com/stm32duino/Arduino_Core_STM32/compare/1.8.0...master)
55
[![Build Status](https://travis-ci.com/stm32duino/Arduino_Core_STM32.svg?branch=master)](https://travis-ci.com/stm32duino/Arduino_Core_STM32)
66

77
* [Introduction](https://github.com/stm32duino/Arduino_Core_STM32#Introduction)<br>
@@ -67,7 +67,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
6767
| :green_heart: | [Nucleo L073RZ](http://www.st.com/en/evaluation-tools/nucleo-l073rz.html) | *1.4.0* | |
6868
| :green_heart: | [Nucleo L152RE](http://www.st.com/en/evaluation-tools/nucleo-l152re.html) | *1.0.0* | |
6969
| :green_heart: | [Nucleo L452RE](http://www.st.com/en/evaluation-tools/nucleo-l452re.html) | *1.5.0* | |
70-
| :yellow_heart: | [Nucleo L452RE-P](http://www.st.com/en/evaluation-tools/nucleo-l452re-p.html) | **1.8.0** | |
70+
| :green_heart: | [Nucleo L452RE-P](http://www.st.com/en/evaluation-tools/nucleo-l452re-p.html) | *1.8.0* | |
7171
| :green_heart: | [Nucleo L476RG](http://www.st.com/en/evaluation-tools/nucleo-l476rg.html) | *0.1.0* | |
7272
| :green_heart: | [P-Nucleo-WB55RG](https://www.st.com/en/evaluation-tools/p-nucleo-wb55.html) | *1.6.0* | No BLE support |
7373

@@ -95,8 +95,8 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
9595

9696
| Status | [STM32MP1 series coprocessor](https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-arm-cortex-mpus/stm32mp1-series.html) | Release | Comment |
9797
| :---: | --- | :---: | :--- |
98-
| :yellow_heart: | [STM32MP157A-DK1](https://www.st.com/en/evaluation-tools/stm32mp157a-dk1.html) | **1.8.0** | See [the documentation](https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/STM32MP157_DK/README.md) to use this board|
99-
| :yellow_heart: | [STM32MP157C-DK2](https://www.st.com/en/evaluation-tools/stm32mp157c-dk2.html) | **1.8.0** | See [the documentation](https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/STM32MP157_DK/README.md) to use this board|
98+
| :green_heart: | [STM32MP157A-DK1](https://www.st.com/en/evaluation-tools/stm32mp157a-dk1.html) | *1.8.0* | See [the documentation](https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/STM32MP157_DK/README.md) to use this board|
99+
| :green_heart: | [STM32MP157C-DK2](https://www.st.com/en/evaluation-tools/stm32mp157c-dk2.html) | *1.8.0* | See [the documentation](https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/STM32MP157_DK/README.md) to use this board|
100100

101101

102102
| Status | Generic STM32F0xx | Release | Comment |
@@ -117,27 +117,29 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
117117

118118
| Status | Generic STM32F4xx | Release | Comment |
119119
| :---: | --- | :---: | :--- |
120-
| :yellow_heart: | [Adafruit Feather STM32F405 Express](https://www.adafruit.com/product/4382) | **1.8.0** | |
120+
| :green_heart: | [Adafruit Feather STM32F405 Express](https://www.adafruit.com/product/4382) | *1.8.0* | |
121121
| :green_heart: | BlackPill F401CC | *1.7.0* | |
122122
| :green_heart: | [Black F407VET6](https://stm32-base.org/boards/STM32F407VET6-STM32-F4VE-V2.0) | *1.4.0* | VG/ZE/ZG in *1.5.0* |
123123
| :green_heart: | [Blue F407VET6 Mini](https://stm32-base.org/boards/STM32F407VET6-VCC-GND-Small) | *1.4.0* | |
124124
| :green_heart: | Core Board F401RC | *1.7.0* | |
125125
| :green_heart: | [DIYMORE STM32F407VGT](https://stm32-base.org/boards/STM32F407VGT6-diymore) | *1.5.0* | |
126126
| :green_heart: | FK407M1 | *1.5.0* | |
127+
| :green_heart: | Generic F401R(B-C-D-E) | *1.8.0* | |
127128

128129
| Status | Generic STM32L0xx | Release | Comment |
129130
| :---: | --- | :---: | :--- |
130-
| :yellow_heart: | [PX-HER0](https://piconomix.com/fwlib/_p_i_c_o_n_o_m_i_x__s_t_m32__h_e_r_o__b_o_a_r_d.html) | **1.8.0** | |
131-
| :yellow_heart: | [ThunderPack](https://github.com/jgillick/ThunderPack) | **1.8.0** | |
131+
| :green_heart: | [PX-HER0](https://piconomix.com/fwlib/_p_i_c_o_n_o_m_i_x__s_t_m32__h_e_r_o__b_o_a_r_d.html) | *1.8.0* | |
132+
| :green_heart: | [ThunderPack](https://github.com/jgillick/ThunderPack) | *1.8.0* | |
132133

133134
| Status | 3D printer boards | Release | Comment |
134135
| :---: | --- | :---: | :--- |
135136
| :green_heart: | [ARMED V1](https://github.com/ktand/Armed) | *1.5.0* | |
136137
| :green_heart: | [EExtruder F030 V1](https://github.com/ghent360/PrntrBoard/tree/tmc2130-redesign/EExtruder) | *1.5.0* | Small companion board for Prntr Board V1 |
137138
| :green_heart: | [Malyan M200 V1](http://malyansys.com/product/m200-v1/) | *1.5.0* | |
138139
| :green_heart: | [Malyan M200 V2](http://malyansys.com/product/m200-v2/) | *1.5.0* | |
139-
| :yellow_heart: | [Malyan M300](http://malyansys.com/product/m300/) | **1.8.0** | |
140+
| :green_heart: | [Malyan M300](http://malyansys.com/product/m300/) | *1.8.0* | |
140141
| :green_heart: | [Prntr Board V1](https://github.com/ghent360/PrntrBoard) | *1.5.0* | |
142+
| :green_heart: | [Prntr Board V2](https://github.com/ghent360/PrntrBoardV2) | *1.8.0* | |
141143
| :green_heart: | [RemRam v1](https://github.com/hasenbanck/remram) | *1.4.0* | |
142144
| :green_heart: | [RUMBA32](https://github.com/Aus3D/RUMBA32) | *1.5.0* | |
143145
| :green_heart: | [STEVAL-3DP001V1](https://www.st.com/en/evaluation-tools/steval-3dp001v1.html) | *1.6.0* | |
@@ -150,7 +152,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
150152

151153
| Status | Electronic Speed Controller boards | Release | Comment |
152154
| :---: | --- | :---: | :--- |
153-
| :yellow_heart: | Wraith V1 ESC | **1.8.0** | |
155+
| :green_heart: | Wraith V1 ESC | *1.8.0* | |
154156

155157
| Status | Generic flight controllers | Release | Comment |
156158
| :---: | --- | :---: | :--- |
@@ -167,10 +169,6 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
167169

168170
## Troubleshooting
169171

170-
### Important notice:
171-
172-
**Currently [stm32duino forum](http://stm32duino.com) is down. Forum alternative is under investigation.**
173-
174172
If you have any issue, you could [file an issue on Github](https://github.com/stm32duino/Arduino_Core_STM32/issues/new).
175173

176174
For question, support, ..., you could submit a topic on the [stm32duino forum](http://stm32duino.com):

boards.txt

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,42 @@ GenF4.menu.pnum.FEATHER_F405.build.board=FEATHER_F405
10251025
GenF4.menu.pnum.FEATHER_F405.build.product_line=STM32F405xx
10261026
GenF4.menu.pnum.FEATHER_F405.build.variant=FEATHER_F405
10271027

1028+
# Generic F401RE
1029+
GenF4.menu.pnum.Generic_F401RE=Generic F401RE
1030+
GenF4.menu.pnum.Generic_F401RE.upload.maximum_size=524288
1031+
GenF4.menu.pnum.Generic_F401RE.upload.maximum_data_size=98304
1032+
GenF4.menu.pnum.Generic_F401RE.build.board=GENERIC_F401RE
1033+
GenF4.menu.pnum.Generic_F401RE.build.product_line=STM32F401xE
1034+
GenF4.menu.pnum.Generic_F401RE.build.variant=Generic_F401Rx
1035+
GenF4.menu.pnum.Generic_F401RE.node=NODE_F401RE
1036+
1037+
# Generic F401RD
1038+
GenF4.menu.pnum.Generic_F401RD=Generic F401RD
1039+
GenF4.menu.pnum.Generic_F401RD.upload.maximum_size=393216
1040+
GenF4.menu.pnum.Generic_F401RD.upload.maximum_data_size=98304
1041+
GenF4.menu.pnum.Generic_F401RD.build.board=GENERIC_F401RD
1042+
GenF4.menu.pnum.Generic_F401RD.build.product_line=STM32F401xE
1043+
GenF4.menu.pnum.Generic_F401RD.build.variant=Generic_F401Rx
1044+
GenF4.menu.pnum.Generic_F401RD.node=NODE_F401RE
1045+
1046+
# Generic F401RC
1047+
GenF4.menu.pnum.Generic_F401RC=Generic F401RC
1048+
GenF4.menu.pnum.Generic_F401RC.upload.maximum_size=262144
1049+
GenF4.menu.pnum.Generic_F401RC.upload.maximum_data_size=65536
1050+
GenF4.menu.pnum.Generic_F401RC.build.board=GENERIC_F401RC
1051+
GenF4.menu.pnum.Generic_F401RC.build.product_line=STM32F401xC
1052+
GenF4.menu.pnum.Generic_F401RC.build.variant=Generic_F401Rx
1053+
GenF4.menu.pnum.Generic_F401RC.node=NODE_F401RE
1054+
1055+
# Generic F401RB
1056+
GenF4.menu.pnum.Generic_F401RB=Generic F401RB
1057+
GenF4.menu.pnum.Generic_F401RB.upload.maximum_size=131072
1058+
GenF4.menu.pnum.Generic_F401RB.upload.maximum_data_size=65536
1059+
GenF4.menu.pnum.Generic_F401RB.build.board=GENERIC_F401RB
1060+
GenF4.menu.pnum.Generic_F401RB.build.product_line=STM32F401xC
1061+
GenF4.menu.pnum.Generic_F401RB.build.variant=Generic_F401Rx
1062+
GenF4.menu.pnum.Generic_F401RB.node=NODE_F401RE
1063+
10281064
# Upload menu
10291065
GenF4.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
10301066
GenF4.menu.upload_method.swdMethod.upload.protocol=0
@@ -1276,7 +1312,7 @@ LoRa.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
12761312
3dprinter.menu.pnum.PRNTR_F407_V1.build.board=PRNTR_F407_V1
12771313
3dprinter.menu.pnum.PRNTR_F407_V1.build.series=STM32F4xx
12781314
3dprinter.menu.pnum.PRNTR_F407_V1.build.product_line=STM32F407xx
1279-
3dprinter.menu.pnum.PRNTR_F407_V1.build.variant=PRNTR_F407_V1
1315+
3dprinter.menu.pnum.PRNTR_F407_V1.build.variant=PRNTR_Vx
12801316
3dprinter.menu.pnum.PRNTR_F407_V1.build.cmsis_lib_gcc=arm_cortexM4lf_math
12811317

12821318
# PRNTR_V2 board
@@ -1288,7 +1324,7 @@ LoRa.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
12881324
3dprinter.menu.pnum.PRNTR_V2.build.board=PRNTR_V2
12891325
3dprinter.menu.pnum.PRNTR_V2.build.series=STM32F4xx
12901326
3dprinter.menu.pnum.PRNTR_V2.build.product_line=STM32F407xx
1291-
3dprinter.menu.pnum.PRNTR_V2.build.variant=PRNTR_V2
1327+
3dprinter.menu.pnum.PRNTR_V2.build.variant=PRNTR_Vx
12921328
3dprinter.menu.pnum.PRNTR_V2.build.cmsis_lib_gcc=arm_cortexM4lf_math
12931329

12941330
# EEXTR_F030_V1 board

cores/arduino/pins_arduino.c

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,42 @@ PinName analogInputToPinName(uint32_t pin)
6767
return pn;
6868
}
6969

70+
bool pinIsAnalogInput(uint32_t pin)
71+
{
72+
bool ret = false;
73+
#if NUM_ANALOG_INPUTS > 0
74+
#ifndef NUM_ANALOG_LAST
75+
ret = (pin >= A0) && (pin < (A0 + NUM_ANALOG_INPUTS));
76+
#else
77+
for (uint32_t i = 0; i < NUM_ANALOG_INPUTS; i++) {
78+
if (analogInputPin[i] == pin) {
79+
ret = true;
80+
break;
81+
}
82+
}
83+
#endif /* NUM_ANALOG_LAST */
84+
#endif /* NUM_ANALOG_INPUTS > 0 */
85+
return ret;
86+
}
87+
88+
uint32_t digitalPinToAnalogInput(uint32_t pin)
89+
{
90+
uint32_t ret = NUM_ANALOG_INPUTS;
91+
#if NUM_ANALOG_INPUTS > 0
92+
#ifndef NUM_ANALOG_LAST
93+
ret = pin - A0;
94+
#else
95+
for (uint32_t i = 0; i < NUM_ANALOG_INPUTS; i++) {
96+
if (analogInputPin[i] == pin) {
97+
ret = i;
98+
break;
99+
}
100+
}
101+
#endif /* NUM_ANALOG_LAST */
102+
#endif /* NUM_ANALOG_INPUTS > 0 */
103+
return ret;
104+
}
105+
70106
#ifdef __cplusplus
71107
}
72108
#endif

0 commit comments

Comments
 (0)