2022-11-14 05:09 PM
I am attempting to get the display example running on a nucleo board. I am following this document:
um2787-getting-started-with-the-xcubedisplay-stm32cube-expansion-package-stmicroelectronics.pdf
I am getting the following issues and I don't know how to resolve them:
I tried to click the resolve button but it resulted in more yellow triagles and this when I closed the component selector.
The document doesn't describe what to do if it doesn't go as planned. It also describes the setup for a different Eval board. However it states both in the start of the document and on the webpage for the display expansion that this should work for the nucleo board. I'm fairly new to STs tools so I have no idea how to resolve these. Any help is greatly appreciated.
Solved! Go to Solution.
2023-01-13 02:15 PM
I wanted to come back and update this for anyone who found there way here. Don't waste your time with the simple examples, TouchGFX is much more complex and requires a bit of C++ knowledge, but has way more functionality, Also the examples there work! With the nucleo and the display eval boards.
https://www.st.com/en/development-tools/touchgfxdesigner.html
2022-11-15 06:45 AM
Hello @ASimo.3
Thank you for raising this question
First ,you need to resolve dependencies
Example :Here you need to enable the FMC
Go to Connectivity--> FMC -->NAND FLASH --> select NCE Chip Select
Data /Address 8 bits
Second
Activate the OSPI
Go to Connectivity --> Mode :Single SPI
Clock :Port1 CLK
Chip Select :Port1 NCS
Data[3:0] :Port1IO[1:0]
Then check that all dependencies are resolved
You will find below the file ioc
Thx
Ghofrane
2022-11-15 04:14 PM
Hi Ghofrane,
Thanks for getting back to me so quickly. I am still having some issues. First your IOC file is for CubeMX v6.7 which doesn't seem to be available to the public yet. The highest I can download is 6.6.1. if I try and open your IOC it just tells me I need an update.
I also tried to follow your resolution steps manually. Some of it was successful. My default config for the Nucleo board used PC2/AN3 I had to turn it off before it would stop with dependency issues.
I still have 1 problem.
It doesn't give me any options to change those configs and if I try and continue to generate code anyway I get this:
Main Config: These peripherals still have some not configured or wrong parameter values:
[STMicroelectronics.X-CUBE-DISPLAY.2.2.0, Verify the Platform Settings Tab ]
Thanks,
Avery
2022-11-15 11:41 PM
Hello @ASimo.3
After choosing your board
1-Go to Pinout-> Clear Pinout
2-Try to do the steps mentioned above again that may help you to overcome the issue.
If that doesn't work i need you to provide your file ioc and i will chick it for you
I will be waiting for your feedback
Thx
Ghofrane
2022-11-16 07:15 AM
2022-11-16 07:45 AM
Hi @ ASimo.3
I did a little change in the configuration based on the dependencies.
You will find below your file ioc with the required change.
Please take a look and please don't hesitate to ask if you need help
Ghofrane
2022-11-16 03:27 PM
Ghofrane,
I am still getting this warning:
I also found that using your IOC I couldn't get it to actually generate code. It would claim to but the project would be empty.
SO I tried a few things. First I uninstalled and reinstalled everything ST on my PC just to make sure it was not a SW issue, still didn't work. So then I opened two instances of cubeMX and copied every setting from your IOC to a new project. That gave me the same error as above, but did generate code. However it doesn't build:
I suspect it has something to do with these:
However they are currently greyed out and do not have options.
Thanks,
Avery
2022-11-16 11:47 PM
Good morning @ASimo.3
Actually the issue that you encountered is related to this
So i did this
PF1->Input
PF2->Input
PF3->Input
PF4->Input
PF5->Input
PC2->output
Then i generated the code and everything was working just fine
You will find below the file ioc after modification
Ghofrane
2022-11-18 02:03 AM
Hello @ASimo.3
If your issue is resolved, please close this post by clicking the "Select as Best" button on the previous answer. This will help other members of the community find this response more quickly.
Thanks for your contribution and do not hesitate to raise any issues or feedback.
Ghofrane
2022-11-18 07:39 AM
Ghofrane,
I appreciate your help, however I am not close to having this resolved. I have a lot of irons in the fire right now, but I did get the chance to spend some time on this yesterday. Here is what I discovered.
First I discovered there are several variants of the display board.
I seem to have: X-NUCLEO-GFX02Z1 XNGFX02Z1$AZ1 variant, which has a display with the ILI9341 driver.
The pinouts for the different variants is described in the UM2905 user manual for the display eval board, they are way off from the IOCs we have been passing pack and forth.
Excerpts from the docs
I was able to create a IOC that worked and has what I believe to be the correct pins for the LCD, memory chip, and joystick, it generates code that compiles. It is attached!
When I run the code with the debugger, it does Init the LCD, however the example code is empty.
The doc states it should load something from memory and display it on the screen, there are no lines of code to do such thing.
From mainThe app display code only has init:
I tried putting some of my own code in the "process" function and thus far all I can do is get the display to blink on and off. The wrapper functions in ldc_io.x are not the full set from the driver library and besides digging through code I have been unable to find documentation on either thing.
Do you know of a code repository that might have the full example in it. or at least some examples of how to use the library?
Regards,
Avery