2009-04-07 10:43 AM
How can i load image to STM3210E-EVAL board ?
2011-05-17 04:09 AM
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 ]2011-05-17 04:09 AM
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 response2011-05-17 04:09 AM
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,2011-05-17 04:09 AM
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.2011-05-17 04:09 AM
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
2011-05-17 04:09 AM
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¤tviews=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¤tviews=51 But I will post the code when I have found and fixed the error! Best Regards Thomas Jespersen2011-05-17 04:09 AM
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
2011-05-17 04:09 AM
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...)