cancel
Showing results for 
Search instead for 
Did you mean: 

How can i load image to STM3210E-EVAL board ?

bejanissim
Associate II
Posted on April 07, 2009 at 19:43

How can i load image to STM3210E-EVAL board ?

8 REPLIES 8
bejanissim
Associate II
Posted on May 17, 2011 at 13:09

Dear all,

I saw the EVAL Demonstration Software and was very impressed.

I was so amazed form the ability of displaying icons on the LCD.

I'm interested to load my own image file (i.e xxx.bmp) to my ST3210E-EVAL board in order to view it later on the TFT LCD which located on the board it self.

Can you please tell me what are the necessary steps for loading my one image to the ST3210E-EVAL board ?

Is it possible to get the source of STM32_FSMC-LCD_Demo_NORFlash.dfu file?

I read the documents about the DFU and was able to use the DFU demo along with the LCD demo application.

Thanks a lot,

Beja Nissim

[ This message was edited by: bejanissim on 08-04-2009 00:35 ]

mariemzidi
Associate II
Posted on May 17, 2011 at 13:09

Hi Bejanissim,

Please can u help me to find out how to install the DfuSeDemo in my PC because I need it to program the same Demo which you had worked on..

Can you send me the link please..

I'm waiting for your response

mariemzidi
Associate II
Posted on May 17, 2011 at 13:09

Hi Bejanissim,

I want to ask you about displaying the image on the LCD..

According to the Demo, I need to specify the Height and Width of the image which means the vertical and horizantal dimensions knowing its dimensions in pixels..

According to the DEMO, we have the function

LCD SetDisplayWindow(u16 Xpos,u8 Ypos,u8 Height,u16 Width) 

in which should precise the Width and Height of the image.

So I started by converting my Bitmap image to héxadécimal code and i used this function de display it on the screen but the problem is I have to determine these dimensions to display a clear image on the screen.

For example, I tried to display an image 17*17pixels(width and height)

and I was able to have a clear image after putting: 

 Height = 16 and Width = 32 in the LCD SetDisplayWindow function.

Do you know how to determine these dimensions????

Looking forward to hearing from you

Regards,

Nickname12668_O
Associate II
Posted on May 17, 2011 at 13:09

Hi Thomas,

Could you please post it on the forum in a zip file for everybody.

It could be usefull for all STM32 forum users.

Thank you in advance.

tkjmail2
Associate II
Posted on May 17, 2011 at 13:09

Hi.

I've made a software application which takes a BMP and convert it into a hexadecimal byte array (char)

Then I've made this function which shows the BMP;

void DispPic(u16 x0, u16 y0, const unsigned char *str); 

If you are interested I can send the code to you - OBS: the software is made in Visual Basic .NET!

Best Regards

Thomas Jespersen

tkjmail2
Associate II
Posted on May 17, 2011 at 13:09

Of course.

But as my other thread about a Hard Fault error explains, the code doesn't work probably. The code works on a STM32F103RET6, but on the STM32F103ZET6 it makes a Hard Fault error!

Here is the thread:

[DEAD LINK /public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/ARM CortexM3 STM32/Hard Fault error&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000626BE2B829C32145B9EB5739142DC17E&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%2520CortexM3%2520STM32/AllItems.aspx&currentviews=51]https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fARM%20CortexM3%20STM32%2fHard%20Fault%20error&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000626BE2B829C32145B9EB5739142DC17E&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FARM%2520CortexM3%2520STM32%2FAllItems%2Easpx&currentviews=51

But I will post the code when I have found and fixed the error!

Best Regards

Thomas Jespersen

afinko
Associate II
Posted on May 17, 2011 at 13:09

Hi,

I posted the method how to load .bmp images to STM3210E-EVAL board in this thread:

https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/DispForm.aspx?ID=11845

steven_grunza
Associate II
Posted on May 17, 2011 at 13:09

I have the STM310C-EVAL so your results may vary but I've been using ST's Flash Loader Demonstrator program to connect to the RS-232 port of the STM3210C-EVAL.  I set the BOOT SW1 to 0, the BOOT SW2 to1, then power on the board.  It's important to power on the board, just a reset won't work.  Then I can use the Flash Loader Demo application on a WinXP PC to program the Flash in the STM32F107.  Next I change the SW1 back to 1 and SW2 back to 0, then hit reset.  My code then runs (unless there are too many bugs in it...)