Search found 10 matches

by toogooda
Thu Aug 12, 2021 10:00 am
Forum: Libraries & Hardware
Topic: SD Card Using SPI2
Replies: 8
Views: 9647

Re: SD Card Using SPI2

fpiSTM 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().
Thank you this was also useful for for other libraries with fixed SPIs :)
by toogooda
Thu Aug 12, 2021 9:58 am
Forum: Libraries & Hardware
Topic: SD Card Using SPI2
Replies: 8
Views: 9647

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...
by toogooda
Wed Aug 11, 2021 8:55 am
Forum: Libraries & Hardware
Topic: SD Card Using SPI2
Replies: 8
Views: 9647

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/...
by toogooda
Wed Oct 07, 2020 9:15 pm
Forum: General discussion
Topic: Problem creating new Variant STM32L151C
Replies: 4
Views: 7794

Re: Problem creating new Variant STM32L151C

fpiSTM wrote: Thu Oct 01, 2020 4:38 am Probably the clock config.
@fpiSTM are you able to give me more detail? I can't seem to solve this, I used the SystemClock_Config(void) that worked in STM32CubeIDE can you give me anything else I can check?

Thanks
by toogooda
Thu Oct 01, 2020 8:29 pm
Forum: General discussion
Topic: Problem creating new Variant STM32L151C
Replies: 4
Views: 7794

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_...
by toogooda
Wed Sep 30, 2020 9:03 pm
Forum: General discussion
Topic: Problem creating new Variant STM32L151C
Replies: 4
Views: 7794

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...
by toogooda
Wed Sep 30, 2020 8:51 pm
Forum: General discussion
Topic: Problems with new custom variant
Replies: 3
Views: 3524

Re: Problems with new custom variant

fpiSTM 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.
Actually I needed the

Code: Select all

STM32L151xBA 
one thanks
by toogooda
Fri Sep 18, 2020 4:44 am
Forum: General discussion
Topic: Problems with new custom variant
Replies: 3
Views: 3524

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.
by toogooda
Fri Sep 18, 2020 3:30 am
Forum: General discussion
Topic: Problems with new custom variant
Replies: 3
Views: 3524

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...
by toogooda
Wed Jul 22, 2020 10:47 pm
Forum: Custom design boards
Topic: Chips without support
Replies: 17
Views: 21578

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 :)

Go to advanced search