STM32F746 and STM32CubeIDE or CubeMX?

Hello guys,

i have the stm32f746 board and it works with the stm32cubeIDE or CUBEMX as you want.

Now i have to say, the tutorials are not beginner friendly written and i have a lot of problems to understand
or to install things.

I expect the documentation and tutorials are made from the developers :slight_smile:

Now i would like to get my project done with stm32cube IDE or MX and littlevgl if possible.

Can you tell me if there is a beginner friendly tutorial how to make it, or isnt it at all not possible to work with this IDE /MX?

Thanks in advance.

We have a premade project for this board. Google “stm32f746 discovery littlevgl” and you should easily find it.

Hello Embeddedt,

thank you for your answer. Thats the point, i searched for over 1 week and tried to learn it, but without success.

I expect you mean this project. “GitHub - lvgl/lvgl: Embedded graphics library to create beautiful UIs for any MCU, MPU and display type.” but i cant find another “TUTORIAL”.

Also i cant find a tutorial which use the STM32IDE for littlevgl. Only eclipse.

Because this, my question was, if this is possible with it and if there is a tutorial step by step with it?

Because if i dont know how to setup the project in the beginning i dont have all folders or the display isnt activated…

In the tutorial of littlevgl i am at the point when i dont know what to do:

### Initialization

In order to use the graphics library you have to initialize it and the other components too. To order of the initialization is:

1. Call lv_init()
2. Initialize your drivers
3. Register the display and input devices drivers in LittlevGL. (see below)

But there is no guide "which file it is in which i have to put in this lines or where i should put this lines in and declare this lines. I am from arduino and there i would understand everything, because there we only have 1 file. But in STM there are so many files, and if i dont setup my project correctly i dont get the file also.

Isnt there a tutorial where i can find ALL steps how to install it from the beginning to the end?

I ask other coders already, but nobody wasnt able to help me. Now i write here in hope to get help.

I think more ppl would use the really nice software if the step in would be more easy with a full installation video.

Thanks :slight_smile:

Strange. Normally Google shows me the example project as the first result, but not today… here is what I was pointing you to:

1 Like

Hi,
We have done similar project. There are couple settings you need to change on cubemx. Especially, pin configurations, if you just start project from CubeMX there are alternate pins so you need to change these pins. You can make pins same as LCD_MpsInit and make same as DMA conf, LCD_Layer conf from same link. Also if you need to use FMC(SDRAM), you need to configure, make it same pin configuration.

I hope that will help.

1 Like

Hey, thanks for your answer!

Yes its exactly what i am searching for! May i ask if you have a tutorial for it?
My project is very small, i only want to speed up and speed down a stepper motor and get some temperature data on the display.
In Arduino it was very easy to do. In STM i got it that i can get an stepper motor on the PWM.
But at all i am still a total beginner.
I was in hope in 2019 that there are more video tutorials out there, or more beginner friendly tutorials,
but i have to say, its extremly hard for beginners, to get into littlevgl even if you have experience with
Arduino before :slight_smile:
I know from other forums now lot of people they gave up on littlevgl because there are no good tutorials.
Even this on the startpage, there are huge lags for beginners, because even here often there is no correct
path given or an example. There are so many hours in developing such a awesome software, but then
they stop to make tutorials and the only thing i find are final made GUIs. For me as designer, a nightmare.
I think the only reason why embedded wiz. can make the price of 3000 - 8000 euro is because they have so many tutorials out and ppl often can do it by them self. Because even touchgfx has no or near no tutorials out which their developers wrote me back. And to work with cubemx or the ide, is still a big problem they showed in the video 2 weeks ago.
Littlevgl could be the winner out of all of them, but also here are no beginner friendly tutorials…
The STM32F746 board is a dream for this price. There is no way around. But to make a gui and to connect it to hardware, this is a nightmare for beginners.

1 Like

It’s already a complete project. You don’t need to know much about how the IDE works in general. You just need to follow the instructions on the page:

I don’t understand exactly what the problem is. The project is designed to be simple to download and get started with.

Hello Embeddedt,

thanks for answering again. I wrote already a answer to your last comment, but it wasnt send as i saw now. I will try it with AC6, but its not the wish i had, because:
I watched near all GUI softwares which are out to have a actual IDE which i can make modern things without problems. Now i looked in many forums, and they wrote back, if i am a beginner, stay away from AC6, because to make a complete project which you want to connect to hardware is a way you dont want to go as beginner, because i would need addons, and would get into problems which have to find always a way around. Many said to me, its only a question of time till they also have to change to CUBE IDE, and if i want to do it right, i should start with CubeIDE so i dont have to learn 2 different IDEs.
Dont get me wrong, as i said, i only write down what others wrote me, its without own experience. And because CUBE IDE is there, i was asking if there is a way to work with it in combination with littlevgl. STEMWIN can work with it, but i dont like the designs i saw so far, Everything looks like it comes from the year 1990 till 2000. It doesnt look modern what i saw. The best GUIs came from LittlevGL, TouchGFX ( but they cant really connect it to hardware, and it makes still huge problems with CUBEIDE as i saw 2 weeks ago as a statement from the developer), and sure Embedded wiz. but they are expensive. So my question was, if i can do it with cubeide as i asked in the headline, to get in no trouble later when i have a gui to connect it to the hardware. Because to make the GUI isnt the problem. In TouchGFX it was very easy and looked really awesome. But to connect it to the hardware was or is still a huuuge problem with TouchGFX.
So please dont understand me wrong, i love to learn new things, and i dont give up when it becomes hard, but we are in 2019 and i ask my self why there is no video tutorial which makes it total easy to follow :slight_smile: Sure the 1-4 steps are easy, but as you also said, it wasnt foundable. Google and youtube work better for videos than for text. The title is near not understandable for a beginner. I mean how should i know what does it mean in the title littlevgl/stm32f746_disco_no_os_sw4stm32/blob/master/README.md
… _no_os_sw4stm32/blob/master/…???
what is no_os? Operatiing system? On Screen?
what is Blob?
why there is MASTER?
This all is not beginner friendly.
When i get my project done i will make tutorials for littlevgl , beginner friendly. Because it looks really awesome in my opinion, and its free… a dream.
But first i have to understand it by my self. And as it is normal for a human when they got it to work and have a nice GUI and they show it as a video in youtube, they think i show my made GUI, which costs me a lot of time, why should i make it easy for them and make a video tutorial… , thats normal in our time, but to get tutorials. EASY tutorials, would be the WIN for littlevgl. Because arduino is only so successfully because there are millions of beginner friendly tutorials. Give them a F746 board and an easy tutorial, and you can get over them time so many more littlevgl fans… believe me or look in their forums why they all gave up. Thats the key. But anyhow, my english isnt good enought to explain that i am thankfull for your link, i will try it and will see if i have at the end a good GUI like in TouchGFX and then no way to get it work with the hardware :slight_smile:

Ok. Let me check my repo. I recommend you to use AtollicTrue Studio for IDE, it is free.

cc @kisvegabor

This probably interests you.

grafik

Thats the point why i tried out to start with CubeIDE

@Papino True, we are not full of beginner friendly examples and tutorials now. However, @embeddedt and I agreed on it should be addressed and we are planning to work on it after the release of v6.0.

Unfortunately, we can’t try and learn all of the IDEs but we are open to accept ready to use projects from a new IDE to help people to get started. So any help in this field is very welcome! :slight_smile:

To be honest I have no problem with Ac6. Almost every MCU manufacturer has an Eclipse based IDE so IMO it’s worth to learn Eclipse once. In addition, basically, Eclipse is an IDE for PC so it’s really cross-platform (not only among operation systems but hardware too). (Atollic is also Eclipse-based)
CubeMX worked well it for me as well (not counting the bugs in the drivers…)

In fact, projects can seamlessly be imported from Ac6 to STM32CubeIDE (they are both Eclipse-based).

Good to know! Thanks!

I know this is an old topic but did anyone manage to get this working ?

I have just downloaded the whole projected, imported into STM32CUBEIDE 1.5.1 and it does not compile, loads of errors e.g. unable to find lvgl/lvgl.h, I can get round some by adding to the include path but not all and it appears it does not like any of the asm file syntax.

As you may have guessed, I am very new to all this, hence I just wanted to find a simple working example to go through before trying with my own project.

If anyone has a working example to get me started I would really appreciate it !

Thanks in advance

Did you clone with submodules?

It’s also possible that newer versions of CubeIDE have broken the project. I’ll test it shortly.

I just downloaded the complete project etc.

Hi,
the available AC6 project can be ported to CubeIDE. If you want I can share a 7z file with the reworked CubeIDE source that builds & runs as-is.
But to take full advantage of CubeIDE, one must be able to use the Cube IDE code builder that starts from an IOC file. I’m experimenting since a few days to get that IOC file up & running. For the initial screen init / buildup that was quite fast functional. For the DMA2D things go wrong (and I haven’t figured out yet what’s wrong). The AC6 example most likely started from a CubeMX IOC file. It would be helpful if that file is also put in that demo project.

Hi, Could please give me proper working code in STM32 Cube IDE for STM32F746G disco module display initialization and also LVGL integration, Last 2 months onwards i am working on this board till now i am not found any full fledged working code for this, please help me out.

Hi, Could please give me proper working code in STM32 Cube IDE for STM32F746G disco module display initialization with .ioc file and also LVGL integration, Last 2 months onwards i am working on this board till now i am not found any full fledged working code for this, please help me out.