Thank you this was also useful for for other libraries with fixed SPIsfpiSTM wrote: ↑Wed Aug 11, 2021 10:13 am Hi,
Refers to the wiki: https://github.com/stm32duino/wiki/wiki ... tance-pins
Simply change default SPI instance pins to the SPI2 peripherals before the SPI.Begin().
Search found 10 matches
- Thu Aug 12, 2021 10:00 am
- Forum: Libraries & Hardware
- Topic: SD Card Using SPI2
- Replies: 8
- Views: 9962
Re: SD Card Using SPI2
- Thu Aug 12, 2021 9:58 am
- Forum: Libraries & Hardware
- Topic: SD Card Using SPI2
- Replies: 8
- Views: 9962
Re: SD Card Using SPI2
Thanks your version is working well on a F103RET6 however the STM32_Test example for that library does not compile as the have used: static SPIClass mySPI2(2); Instead of how you have done it: static SPIClass SPI_2 (PB15, PB14, PB13); The example compile error shows that there is no constructor wher...
- Wed Aug 11, 2021 8:55 am
- Forum: Libraries & Hardware
- Topic: SD Card Using SPI2
- Replies: 8
- Views: 9962
SD Card Using SPI2
Hi all I have been bouncing around Google trying to work out how to get SD cards working with SPI and specifically with SPI2. I have managed it with Atmel and ESP but just can't get it going with STM anyone managed it? What I have tried so far: The standard Arduino SD library https://www.arduino.cc/...
- Wed Oct 07, 2020 9:15 pm
- Forum: General discussion
- Topic: Problem creating new Variant STM32L151C
- Replies: 4
- Views: 7886
- Thu Oct 01, 2020 8:29 pm
- Forum: General discussion
- Topic: Problem creating new Variant STM32L151C
- Replies: 4
- Views: 7886
Re: Problem creating new Variant STM32L151C
Probably the clock config. "void SystemClock_Config(void)" function was copied from STM32CubeIDE auto generated form a working blink example that was tested. other than that function in variant.cpp are you referring to any other config? here it is here void SystemClock_Config(void) { RCC_...
- Wed Sep 30, 2020 9:03 pm
- Forum: General discussion
- Topic: Problem creating new Variant STM32L151C
- Replies: 4
- Views: 7886
Problem creating new Variant STM32L151C
Hi I created two new Variants using the github wiki instructions here https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-(board) one works perfectly the other compilies but does not work with blink example. I can rule out hardware as blink using stm32cudeprogramer works fine. Here is the boar...
- Wed Sep 30, 2020 8:51 pm
- Forum: General discussion
- Topic: Problems with new custom variant
- Replies: 3
- Views: 3616
Re: Problems with new custom variant
Actually I needed thefpiSTM wrote: ↑Fri Sep 18, 2020 8:29 am Hi,
you have to use this one:Code: Select all
STM32L151xB
https://github.com/stm32duino/Arduino_C ... ild.h#L293
This file provides all possible value.
Code: Select all
STM32L151xBA
- Fri Sep 18, 2020 4:44 am
- Forum: General discussion
- Topic: Problems with new custom variant
- Replies: 3
- Views: 3616
Re: Problems with new custom variant
It is set in board.txt
.build.product_line=STM32L151xBA
I had set it to the actual chip STM32L151x8A but you have to select a valid group.
.build.product_line=STM32L151xBA
I had set it to the actual chip STM32L151x8A but you have to select a valid group.
- Fri Sep 18, 2020 3:30 am
- Forum: General discussion
- Topic: Problems with new custom variant
- Replies: 3
- Views: 3616
Problems with new custom variant
I am trying to create a Generic L151C8xxA Variant and followed the instructions for the Wiki https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-(board) Instructions While testing blink example I found the following issue: 1) stm32l1xx.h:167:3: error: #error "Please select first the targe...
- Wed Jul 22, 2020 10:47 pm
- Forum: Custom design boards
- Topic: Chips without support
- Replies: 17
- Views: 27206
Re: Chips without support
I would like to add support for the STM32L152 range. There are some STM boards ~ 3 that have them so a generic one which just changes Flash/Ram and led pin should not be complicated right?
I will have a go
I will have a go