How to install particular branch of STM32 core?

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
jremington
Posts: 10
Joined: Thu Jun 18, 2020 2:19 pm

How to install particular branch of STM32 core?

Post by jremington »

Hi, All:

I have the STM32F7456G Discovery board and would like to use the TFT display. I've gone through the standard procedure of installing the master branch of STM32 core, which works fine for a Blink program, but does not have the display enabled. Using Windows 10 and Arduino IDE 1.8.12

So, I removed that core and followed the instructions to install the core from this Github branch:
https://github.com/fpistm/Arduino_Core_STM32

I also copied the LTDC library folder from that repo into the Arduino sketchbook libraries directory, and attempted to run the "Mandelbrot" example. Compilation fails with the message quoted below, in addition to lots of other dependency failures. Pointers on how to fix this would be much appreciated!
Arduino: 1.8.12 (Windows 10), Board: "Discovery, STM32F746G-DISCOVERY, Mass Storage, Enabled (generic 'Serial'), None, Low/Full Speed, Smallest (-Os default), Newlib Nano (default)"

In file included from C:\Users\Jim\Desktop\Arduino\libraries\LTDC\src/LTDC_F746_Discovery.h:6,
from C:\Users\Jim\Desktop\Arduino\Mandelbrot\Mandelbrot.ino:10:
C:\Users\Jim\Desktop\Arduino\libraries\LTDC\src/LTDC.h:97:9: error: 'LTDC_HandleTypeDef' does not name a type; did you mean 'RTC_HandleTypeDef'?
97 | LTDC_HandleTypeDef hLtdcHandler;
| ^~~~~~~~~~~~~~~~~~
| RTC_HandleTypeDef
by fpiSTM » Thu Jun 18, 2020 4:02 pm
Well, if you do not know git, I understand it is not simple.

In that case, we will use an other way:

after deleting the 1.9.0 directory, instead of using git clone.
Go to:
https://github.com/fpistm/Arduino_Core_ ... TEST_1.9.0

Then click on the down arrow of the "clone" button then select "download as zip":
dlBranchAsZip.png
Then unzip it where the core should be (where you deleted the 1.9.0)
Finally rename the folder (I guess it should be 'Arduino_Core_STM32-LTDC_TS_TEST_1.9.0') to "1.9.0".
Go to full post
fpiSTM
Posts: 1836
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 102
Location: Le Mans
Contact:

Re: How to install particular branch of STM32 core?

Post by fpiSTM »

I guess you have follow this:
https://github.com/stm32duino/wiki/wiki ... repository

So, if you have cloned my repo, simply checkout the LTDC branch rebased on the 1.9 version.
No need to copy in the sketchbook folder, as they are built in libraries.
jremington
Posts: 10
Joined: Thu Jun 18, 2020 2:19 pm

Re: How to install particular branch of STM32 core?

Post by jremington »

Thanks, I tried to follow those instructions (quote below), but they don't work on Windows.
3.1. Cloning the git repository to replace the stm32 core version package (1st method)

In the "<local Arduino directory>/packages/STM32/hardware/stm32/" do the clone:

git clone https://github.com/stm32duino/Arduino_Core_STM32.git <version>

where <version> is the one you delete in step 2.
For this example: 1.1.1
So, do:

git clone https://github.com/stm32duino/Arduino_Core_STM32.git 1.1.1
The way I did that was to (1) delete the specified core directory as instructed, (2) install the desktop version of Github on Windows 10, (3) open the Windows command line interpreter, navigate to the required directory and issue the "git" command above (with 1.9.0 as the argument).

Windows does not recognize "git" as a command, but it does recognize "github", however "github clone etc." just downloads the repository, and does not accomplish the task of replacing the core files.
So, if you have cloned my repo, simply checkout the LTDC branch rebased on the 1.9 version.
I don't understand this sentence, but thanks.
fpiSTM
Posts: 1836
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 102
Location: Le Mans
Contact:

Re: How to install particular branch of STM32 core?

Post by fpiSTM »

Well, if you do not know git, I understand it is not simple.

In that case, we will use an other way:

after deleting the 1.9.0 directory, instead of using git clone.
Go to:
https://github.com/fpistm/Arduino_Core_ ... TEST_1.9.0

Then click on the down arrow of the "clone" button then select "download as zip":
dlBranchAsZip.png
dlBranchAsZip.png (19.32 KiB) Viewed 4145 times
Then unzip it where the core should be (where you deleted the 1.9.0)
Finally rename the folder (I guess it should be 'Arduino_Core_STM32-LTDC_TS_TEST_1.9.0') to "1.9.0".
jremington
Posts: 10
Joined: Thu Jun 18, 2020 2:19 pm

Re: How to install particular branch of STM32 core?

Post by jremington »

That worked perfectly. Thanks very much!!

Please consider adding those instructions to the Wiki, for GitHub-ignorant Windows users like myself.
Post Reply

Return to “General discussion”