Author Topic: Need Hex file to test touch screen on STM32F429 Discovery board  (Read 961 times)

0 Members and 1 Guest are viewing this topic.

Offline rcbuck

  • Frequent Contributor
  • **
  • Posts: 337
  • Country: us
Need Hex file to test touch screen on STM32F429 Discovery board
« on: January 28, 2022, 08:57:18 pm »
I have a STM32F429I-DISC1, version MB1075E, Discovery board. This board is the latest version. The default application installed from the factory doesn't respond properly to screen touches. I downloaded the latest app from the ST site and that app also doesn't respond to screen touches.

I have downloaded the TouchGFX software so I can learn to use it to create a simple application for the board as a test. Something like one button on the screen that you touch to toggle one of the LEDs on the board.

I would like to confirm my touchscreen actually works before I proceed down the long graphics path. I want to run my screens in LTDC (R,G,B) mode on a custom board. I will use the Discovery board as a test bed before designing my board. If I create a program and it doesn't work, I won't know if it is a bad touch screen or if my code is wrong.

Does someone happen to have a hex file that I can load into the board to confirm the touch screen works? If the board is bad I will order a new one and proceed from there.

Edit: Added this link to show what step I have already taken:
https://community.st.com/s/question/0D73W000001NTvz/detail?s1oid=00Db0000000YtG6&t=1643412206102&s1nid=0DB0X000000DYbd&emkind=chatterCommentNotification&s1uid=0050X000007vsKk&emtm=1643407322266&fromEmail=1&s1ext=0
« Last Edit: January 28, 2022, 11:35:22 pm by rcbuck »
 

Offline rcbuck

  • Frequent Contributor
  • **
  • Posts: 337
  • Country: us
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #1 on: January 29, 2022, 02:19:17 am »
I built an application with one button on the LCD using the TouchGFX program. I have confirmed the touch screen works. When I touch the button on the screen it changes color to indicate it has been touched. Case closed.
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 264
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #2 on: January 29, 2022, 03:33:36 am »
I have the same kit and I'm having some issues with the LCD. Would you kindly share your code? It's been in storage for some time so I'm not sure if it's a hardware problem or a (human) programmer program :)
 

Offline wek

  • Regular Contributor
  • *
  • Posts: 100
  • Country: sk
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #3 on: January 29, 2022, 08:54:48 am »
I have the same kit and I'm having some issues with the LCD. Would you kindly share your code? It's been in storage for some time so I'm not sure if it's a hardware problem or a (human) programmer program :)
In the thread linked above I gave link to hex of a simple utility ("doodle") and there's some discussion on how it works. You can use it to test the basic LCD and touchscreen functionality, until rcbuck chimes in with his program.

JW
 

Offline rcbuck

  • Frequent Contributor
  • **
  • Posts: 337
  • Country: us
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #4 on: January 29, 2022, 03:29:49 pm »
dmendesf, attached is a file you can load to test the board. It has two toggle buttons. They change color when clicked. The text on the buttons also changes color. You will need to change the file name extension from .zip to .bin since the forum doesn't allow a bin file to be attached.

This is the video I watched to create the buttons:

If you are going to use the video to create code for you board you will need to install TouchGFX. You will also need the latest version of STM32CubeMx.

Today I will modify the code so that it toggles LEDs on the board. That explanation starts are around minute 14 in the video.
 
The following users thanked this post: dmendesf

Offline wek

  • Regular Contributor
  • *
  • Posts: 100
  • Country: sk
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #5 on: January 29, 2022, 06:21:55 pm »
Hi rcbuck,

On my rev B board it works exactly as expected: touch on one button toggles the other :-) (due to the mirroring we've discussed).

JW
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 264
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #6 on: January 29, 2022, 06:39:01 pm »
Many thanks. I'm away from my computer but will use it tomorrow to test my board.
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 264
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #7 on: January 30, 2022, 03:44:27 am »
Just tested it and I can confirm it works. My board is the older version (STM32F429I-DISCO).
 

Offline wek

  • Regular Contributor
  • *
  • Posts: 100
  • Country: sk
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #8 on: January 30, 2022, 10:03:57 am »
My board is the older version (STM32F429I-DISCO).
Which exactly?

There should be a small print, which says "MB1075B" in my case, on the front side; and also a sticker (which in my case says MB1075 B-01) on the back side of PCB. Can you please look theese up at your piece?

And, do you have the "mirroring" or not, i.e. if touching a button, does that particular button toggle color, or the other?

Thanks,

JW
 

Offline rcbuck

  • Frequent Contributor
  • **
  • Posts: 337
  • Country: us
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #9 on: January 30, 2022, 05:17:19 pm »
dmendesf, I am glad it worked for you. I am attaching another file. When you click the buttons on the screen they will toggle the LEDs on the board. Again, you will have to change the file extension from zip to bin.

I watched this video to get the buttons to work. There is no voice narration and the text is not in English but if you go slow you can figure out what he is doing.

« Last Edit: January 30, 2022, 05:47:47 pm by rcbuck »
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 264
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #10 on: January 30, 2022, 10:35:42 pm »
Mine is exactly the same version as you: MB1075B / MB1075 B-01
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 264
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #11 on: January 31, 2022, 01:26:20 am »
This one worked too, thank you. Both have the buttons flipped. I imagine that this is a problem with the XY orientation between LCD and touch contoller, right?
 

Offline rcbuck

  • Frequent Contributor
  • **
  • Posts: 337
  • Country: us
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #12 on: January 31, 2022, 02:33:20 am »
Not sure what you mean by flipped. I placed the buttons so they are in a horizontal orientation. Similar to what you would see on a TV screen.
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 264
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #13 on: January 31, 2022, 02:58:26 am »
I press one bytton and the other changes color. Is this the desired effect? It not maybe the X axis of the touch controller is inverted. But this is not a problem, just a remark.
 

Offline rcbuck

  • Frequent Contributor
  • **
  • Posts: 337
  • Country: us
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #14 on: January 31, 2022, 06:25:56 am »
No, that is not the desired effect. When you press each button it should change the color of that button. When you press the button labeled Green it should change from a green background to a red background. It should also toggle the green LED on the board between on and off with each button press. Pressing the button labeled Red should make the background color change from red to green and toggle the red LED.

I don't know why you are seeing the behavior you are seeing. Maybe a difference between my board level revision and yours? Your board level revision is B and mine is E.
 

Offline darkspr1te

  • Regular Contributor
  • *
  • Posts: 89
  • Country: zm
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #15 on: January 31, 2022, 11:23:12 am »
I press one bytton and the other changes color. Is this the desired effect? It not maybe the X axis of the touch controller is inverted. But this is not a problem, just a remark.
I see a few possibles here, there touch controller could be slightly different due to supply issues or source of manufacture so that could mean the x/y value could be inverted.
I also have seen two different lcd's on the same board number both from same supplier but a few month apart, this also could be cause of inverted lcd x/y.
I personally dont use the stm libs so cant really help you there but i there is a command you can send the lcd to rotate it (MADM command)
i would also print the touch co-ords on screen to assist with that.


darkspr1te
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf