2023-03-11 07:44 AM
Facts: I can program/debug very simple things so the problem is not there.
It is my first attempt to work with STM32cubeIDE and i find it somewhat challenging.
I have a STLinkV2 programmer/debugger that works fine.
The dev kit i bought is: https://www.waveshare.com/open429i-c-standard.htm
More info here: https://www.waveshare.com/wiki/Open429I-C
Schematic of the board here: https://www.waveshare.com/w/upload/8/8c/Open429I-C-Schematic.pdf
The LCD i bought is: https://www.waveshare.com/4.3inch-capacitive-touch-lcd.htm
Resources: https://www.waveshare.com/wiki/4.3inch_Capacitive_Touch_LCD
Sample code (for STM32cubeIDE): https://www.waveshare.com/wiki/File:4.3inch_Capacitive_Touch_LCD_code.7z
Datasheet: https://www.waveshare.com/w/upload/5/55/SH430HI50-43050L-C.pdf
Manual: https://www.waveshare.com/w/upload/0/00/4.3inch_Capacitive_Touch_LCD_user_manual_en.pdf
I tried to import the sample code but it imports only the ioc file. Replacing .c & .h files helped but there are still error during compilation.
I am not sure if i need to install some of the packages in Menu: Help->Embedded Software Packages Manager or in the ioc GUI under Middleware & Software Packes.
I installed X-CUBE-DISPLAY and X-CUBE-TOUCHGFX but without any success.
Can any one help me make the lcd work?
If i start from scratch (create a new STM32cube project) and therefore have to setup peripherals myself i end up where i can program & debug, toggle the dev kit leds which means that there is nothing wrong with the board. Later after searching a bit i saw that i have to setup FMC which i do not know exactly how to do it and finally use BSP to init LCD, draw lines, shapes etc.
So i need some guidance there. If anyone is willing to dedicate a few hours to provide code that works in STM32cubeIDE 1.12 i would be glad to pay up to $50.
Regards
Manos
Solved! Go to Solution.
2023-03-12 12:59 AM
Steps to get it compiled (I use cubeIDE 1.11.0 but I think this works also with latest):
Then it should compile OK , but it may need some adjustments to get working on the device :grinning_face_with_sweat:
2023-03-11 08:11 AM
hello, lets try... (i must go now, back in 1 h ) in short:
2023-03-11 08:35 AM
Support here can be sketchy, it really depends on how convergent your hardware is with that which others are using.
Not sure what kind of presence WaveShare has here, but they make some nice boards
2023-03-11 08:37 AM
Hi thanks for your msg.
I tried that and it did not work
I imported the .ioc file which worked but only until the time to compile.
The imported .ioc file was recognized and all param were imported.
When selecting Menu: Project->Generate code it also worked but that would only generate the init code.
I have attached a video with the import process.
It works fine and compiles fine.
https://drive.google.com/file/d/1LklaI5loDt0ETys0LVwLzVHIqG7vK2uR/view?usp=sharing
Then i obviously have to manually copy code from the sample code to the project code.
Please correct me if i am wrong:
I have to create folders that do not exist in the project and in there drag and drop files/folders.
I have to set include paths
And then try to compile again
Regards
Manos
2023-03-11 09:14 AM
AScha.3, i saw the images that you sent.
Not much changed.
I am at the point where i have imported the ioc file with the option that you suggested unchecked.
I am not sure how to continue...
Manos
2023-03-11 09:15 AM
> have to manually copy code
no. read my post - you have to import...from file system . only this way the ide "knows" which files are in this project.
to see whow it should be :
2023-03-11 11:30 AM
Your steps is complete fail.
Unzip project into folder without spaces in path. Search .project file and double click it. Thats all. When zip is realy for IDE, but your is for KEIL...
But normal way to start custom project is learn how every part work.
2023-03-11 01:17 PM
sorry.
do it better.
i tried my best.
2023-03-11 11:40 PM
Hi everyone,
Can anyone try to build the sample code in this page?
https://www.waveshare.com/wiki/File:4.3inch_Capacitive_Touch_LCD_code.7z
If anyone can build it then i will certainly do.
I tried to import it but it is my understanding that i cannot import it in a single step.
If i understand well, i have to do the following:
These are the basic steps that i understand.
There are more than a few things that i do not understand when it comes to (un)checking options in every window that i open throughout the entire process.
I remind you that i am running STM32cubeIDE 1.12.
Thanks
Manos
2023-03-12 12:37 AM