Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Olimexino-STM32F3 variant #1115

Closed
wants to merge 7 commits into from

Conversation

Stanimir-Petev
Copy link
Contributor

@Stanimir-Petev Stanimir-Petev commented Jul 8, 2020

Summary

This PR adds support for the Olimex board Olimexino-STM32F3 including: GPIO, Analog input, Serial UART, I2C, SPI, CAN.
In order to make variant for this board (Olimexino-STM32F3) the variant for Generic STM32F3 (PILL_F303XX) series was taken as a base and then modified to match the hardware configuration.

Link to the board on our website
https://www.olimex.com/Products/Duino/STM32/OLIMEXINO-STM32F3/

PDF of the board schematic
OLIMEXINO-STM32F3_RevB.pdf

Peripheral examples
Olimexino-STM32F3_examples.zip

Notes:

  1. I2C example is using MOD-BME280 (https://www.olimex.com/Products/Modules/Sensors/MOD-BME280)
  2. SPI example is using MOD-LCD3310 (https://www.olimex.com/Products/Modules/LCD/MOD-LCD3310/)
  3. MOD-LCD3310 + SD card example doesn't work with the default SPI library due to the single SPI object.

Added Olimexino-STM32F3 variant and boards.txt dscirption.
@fpistm
Copy link
Member

fpistm commented Jul 8, 2020

Hi @Stanimir-Petev
thanks for this PR.
I know the OLIMEXINO STM32F103:
https://www.olimex.com/Products/Duino/STM32/OLIMEXINO-STM32/open-source-hardware

but I could not find any link on an OLIMEXINO F303, could you share some inputs?

Fixed files to meet the AStyle checks of the stm32duino repository.
Removed a typo-like paste command.
@Stanimir-Petev
Copy link
Contributor Author

Stanimir-Petev commented Jul 8, 2020

Hi @Stanimir-Petev
thanks for this PR.
I know the OLIMEXINO STM32F103:
https://www.olimex.com/Products/Duino/STM32/OLIMEXINO-STM32/open-source-hardware

but I could not find any link on an OLIMEXINO F303, could you share some inputs?

Hi @fpistm !
Thanks for the fast reply and the tag you made!
I am an Olimex employee. At this stage Olimexino-STM32F3 is just a prototype yet to be released. Hope we get it out soon.

For now I am making only a draft of the PR to see if it will meet the checks requirements and soon I will edit the description. If needed I can post some pictures and/or pdf of the schematic. Also I can provide few examples for the different peripherals, although the one for SD card require a patch in the SPI library (which is probably a subject for another PR). All others work on the prototype I have.

@Stanimir-Petev Stanimir-Petev marked this pull request as ready for review July 9, 2020 08:37
Name of the board is now in all capital letters to avoid problems on Linux due to case-sensitive
Removed the old variant folder. It will be added now with all capital letters.
All capital letters
@fpistm
Copy link
Member

fpistm commented Sep 4, 2020

Will be added later when #1091 will be done

Renamed the macros GPIOx to EXT_GPIOx in order to prevent duplication of names (since GPIOx is too generic name) like in the library RDA5807 (https://github.com/pu2clr/RDA5807) where GPIO1, GPIO2, GPIO3 are defined in part of structure "refined", RDA6807.h lines 214-216
ABOSTM added a commit to ABOSTM/Arduino_Core_STM32 that referenced this pull request Mar 26, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
ABOSTM added a commit to ABOSTM/Arduino_Core_STM32 that referenced this pull request Mar 26, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
ABOSTM added a commit to ABOSTM/Arduino_Core_STM32 that referenced this pull request Mar 26, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
ABOSTM added a commit to ABOSTM/Arduino_Core_STM32 that referenced this pull request Mar 26, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Mar 28, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Mar 29, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
@fpistm fpistm added this to In progress in STM32 core based on ST HAL via automation Mar 29, 2021
@fpistm
Copy link
Member

fpistm commented Mar 29, 2021

Hi @Stanimir-Petev
I've included your PR in #1091, it has been reformatted to the new variant definition way.
So I close this one as it is superseded by #1091.
Thanks again for your contribution.

3\. MOD-LCD3310 + SD card example doesn't work with the default SPI library due to the single SPI object.

About this, a first issue is that SDCARD_SS_PIN should be defined to PD2 as it is the real CS for the SD card slot (Software chip select). PB12 is the hardware CS which is not the same. And yes SPI_2 is not instantiate by default. This would be achieve thanks #705 and the support of SPI_INTERFACES_COUNT.
I've successfully tested the embedded SD card slot using the default SD Arduino library using card info example, to test it you can modify the sketch like this:

- const int chipSelect = 4;
+ const int chipSelect = SDCARD_SS_PIN;
-
+  SPI.setMISO(PB14);
+  SPI.setMOSI(PB15);
+  SPI.setSCLK(PB13);
  Serial.print("\nInitializing SD card...");

@fpistm fpistm closed this Mar 29, 2021
STM32 core based on ST HAL automation moved this from In progress to Done Mar 29, 2021
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Mar 30, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Mar 30, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Mar 30, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 2, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 8, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 9, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 9, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 9, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 12, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 14, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 14, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 15, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 15, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this pull request Apr 16, 2021
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <[email protected]>
Co-authored-by: Alexandre Bourdiol <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants