Go to file
victorpv 21bdc4ad13
Update to fix FSMC inclusion in Rx devices
The FSMC is only available in high density and XL density devices with more than 4 ports.
Basically excluded in the RC/D/E/F/G models, since they dont have enough pins.
Page 11 in the Datasheet references this. The table shows what is present, and shows the FSMC is NOT present in Rx MCUs:
http://www.st.com/content/ccc/resource/technical/document/datasheet/59/f6/fa/84/20/4e/4c/59/CD00191185.pdf/files/CD00191185.pdf/jcr:content/translations/en.CD00191185.pdf

Recent changes to other files highlight this issue during compilation time. The issue was already there, but GPIO E and GPIO F were declared and defined, while they don't actually exist in Rx MCUs, so FSMC was being included for those MCU even though they don't actually have an FSMC device, or at least no external ports to use it. 
With the recent changes GPIO E and F and correctly excluded from the build, but since FSMC was still included and needs GPIO E and F, it was failing to compile. I.e.:
C:/Users/Victor/Documents/Arduino/Hardware/Arduino_STM32/STM32F1/cores/maple/libmaple/fsmc_f1.c:51:19: error: 'GPIOE' undeclared (first use in this function)

Since the FSMC is not available (I suspect the silicon is there, but there is no IO pins to use it), the correct solution is to include FSMC only when using an MCU with more than 4 GPIO ports, which is what matches the datasheet.
2018-04-05 21:54:05 -05:00
STM32F1 Update to fix FSMC inclusion in Rx devices 2018-04-05 21:54:05 -05:00
STM32F3 stm32duino now uses __IO 2018-01-24 20:33:11 +01:00
STM32F4 Merge branch 'aster94-master' 2018-04-01 15:03:36 +10:00
drivers fixed problem in last 2 commits with windows bat for STM32 com 2016-11-29 15:17:01 +11:00
tools Use useradd instead of adduser 2018-02-25 14:00:13 +01:00
.gitignore Added platform.local.txt and boards.local.txt to .gitignore 2018-01-23 13:19:39 +01:00
.gitmodules Removed stm32duino-bootloader submodule 2016-05-05 21:31:00 +10:00
LICENSE Added license 2015-06-11 10:19:36 +10:00
README.md Fix formatting and typos in README.md 2018-02-26 17:36:11 -08:00

README.md

Arduino STM32

Notice

This software is experimental and a work in progress. Under no circumstances should these files be used in relation to any critical system(s). Use of these files is at your own risk.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Summary:

This repo contains the "Hardware" files to support STM32 based boards on Arduino version 1.8.x (some older versions may also work) including LeafLabs Maple, and Maple mini, and other generic STM32F103 boards.

PRIMARY SUPPORT FORUM: http://www.stm32duino.com/

We are also on Gitter https://gitter.im/stm32duino/Lobby/ Gitter

Background & Support:

YouTube Videos:

Purchase info:

Entry level boards

Bigger boards (You need to load the stm32duino bootloader)

Some suppliers have this board e.g.