STM32F469 TOUCH SCREEN discovery kit

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

STM32F469 TOUCH SCREEN discovery kit

Post by achillis1 »

Hello,

I have the STM32F469 TOUCH SCREEN discovery kit ( Thanks for the gift! :) Matrix TSL ! ) I am trying to make my first flowcode and when I search for the Glcd component; I do not find the exact match! Shall I use the STM32F469NI? Is it included in any update?
If I upload the code am I going to erase the preloaded examples?

>EDIT
When I compile to chip I receive the following error:
Registered to: achillis1
Licence key: REENCR
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files\Flowcode 7\compilers\pic\bin\xc8.exe --chip=SIM "STM32F4TOUCH.c" --MSGDISABLE=359,1273,1388
You do not have a valid license to perform this action


Thank you,
Best Regards
Andreas Achilleos

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by LeighM »

Hi
Yes, use the STM32F469NI gLCD
Have you got the ARM and Display packs?

User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by achillis1 »

Hello,

Yes, I have the packs...I think!
I have managed to get pass the error, it seems that I did not choose the right target chip.
I selected the STMF469 as chip, then added > display > STM32F469NI. Then I added code to display a circle. On the simulation it works but when I compile to chip , my display just stays black! Any clue on that? I compile without erros, the LEDs on the display light up when data are exchanged via usb cable, then the screen is just black.

Thank you

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by LeighM »

For the target you will need to select 32F469Discovery
It has its own build script to ensure all the correct graphics libraries get included.

User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by achillis1 »

Hello Leigh,

Thanks for the reply, YES I have chosen the 32F469Discovery, sorry I wasn't clear about that!
Is there a raw code or a simple procedure to use with the display to test the proper functionality of the microcontroller?

Thank you

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by LeighM »


User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by achillis1 »

Hello,
The above example did not work for me , I get errors.
I try and create a simple code > just turn on the screen and set a background color but does not work. So when I compile to chip, is there a file directory that the code is stored in the form of ArmMbed or the screen's "native" language in order for me to view the code?
I even tried to copy-paste the bin file of the code into the module's internal storage but the code did not work. If I create a code in the Mbed online compiler then it works!

Thank you

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by LeighM »

Hello,
The above example did not work for me , I get errors.
Are you up to date with your Flowcode installation?
What errors did you get?

User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by achillis1 »

Hello Leigh,

For now I cannot reproduce the error but even so I do not think it will be the fast "way out" ; so if I may , can I suggest something else?
Can you please send me a code , either in C language or bin file ( THAT YOU KNOW IT WORKS WITH THE STM32F469NI )to upload to my module to indeed see if Flowcode can program the module? Why this? Because when I use the online compile Mbed the module works fine, with flowcode I can get only black screen!

Thank you

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by LeighM »

F469 Disco counter display.zip
(18 KiB) Downloaded 362 times

User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by achillis1 »

Hello Leigh

Many thanks for the bin file. It works!
THOUGH when I click any button the images on the screen frantically speed to the right and left of the screen! Also the count button does not seems to count something!
Is it possible please to send me as well the original fcf file?

Thank you

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by LeighM »

Hi,
Have a look at this post, there are some additions for avoiding the flicker ...
http://www.matrixtsl.com/mmforums/viewt ... 72&t=18796

User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by achillis1 »

Hello Leigh

Thanks again for the help.
I downloaded the code. Now I cannot compile to chip , I get an error BUT if I paste the bin file to the module it works! I am attaching the txt log. It says that the board is not connected but it is!

Thank you
Attachments
Flowcode_stm32f469i_touchscreen_test 4.msg.txt
(15.54 KiB) Downloaded 226 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by LeighM »

Does your PC detect the Disco as a virtual drive, like this? ...
F469.jpg
F469.jpg (13.77 KiB) Viewed 12635 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by LeighM »

Looks like you might have an old FCD file on your system, could you drop this FCD into your FCD\ARM directory ...
32F469Discovery.fcdx
(33.84 KiB) Downloaded 198 times
edit: latest Flowcode 7 updates can be found in the zip here ...
http://www.matrixtsl.com/mmforums/viewt ... 63&t=18760

User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

Re: STM32F469 TOUCH SCREEN discovery kit

Post by achillis1 »

Hello Leigh!

You have helped me a lot today! Saved me a lot of trouble!
By the way I am always having trouble simulating to the screen modele on the 2D dashboard. When I draw shapes or anything else I have to re adjust a lot the view and try hard to find where the shape is. The focus of the screen is never in the center! Any ideas?

Thank you

Post Reply