2013-09-20 11:30 PM
I'm using stm32f4discovery-BB board andTFT LCD (SSD2119 LCD driver) from Embest technology, I've ported all themodules on the Discovery with the help of the STemWin example on stm324xG-Evalboard as far as I understood. But now the display goes on blinking continuouslywhenever I run my program. Can someone suggest me what could be the problems Ineed to look back again???
Also I couldn't make out why in the givenexample FSMC Bank 1 NOR/SRAM2 in initialised in SRAM_Init() while in actualparrarel interface for the LCD occurs in FSMC Bank 1 NOR/SRAM3...Please someonegive some clue. I'm trying out all sorts of modifications but unable figure outthe root of the problem. Something I must be missing.
2013-09-21 03:44 AM
[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/support%20for%20stemwin%20on%20stm32f4%20discovery&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/AllItems.aspx¤tviews=55]Duplicative thread
You presumably have code from EmBest that demonstrates that the screen functions properly? Does that work? If it works you need to study how the FSMC pins and bus are initialized, and subsequently how the display controller is initialized. Use tools like WinMerge to understand differences in library code for other supported ST EVAL boards and the BB-LCD, and be through in your analysis.2013-09-21 07:02 AM
Yes codes from Embest for the LCD and Touch controller works. And I ported the STemWin example according to that given code,have checked all the FSMC pins. What seems to me that the call of the function ''GUI_Init()'' in the main gets stuck in an infinite loop. And never comes out of it. Is it because of some memory related peoblem? Because when my LCD blinks there is a strip or a colour line comes up on the screen. Very strange!!
2013-09-21 07:39 AM
The infinite loop in GUI_Init() is because you don't have the clock to the CRC unit enabled.
Add /* Enable CRC clock */ RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_CRC, ENABLE); Prior to calling the function. [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STemWin%20GUI_Init%28%29%20crashed&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=235]STemWin infinite loop thread2013-09-21 10:28 AM
2013-09-23 04:18 AM
2013-09-23 04:43 AM
Thanks
2013-09-23 09:33 AM
Thanks Mr. toth janos. But would you mind to share your working emWin demo program for this discovery board. This is my mail id- sen.tapu@gmail.com . It would be a great great help if you share your code. Actually I've made all these porting stuffs. But my program gets stuck at Gui_Init() and never comes out. The evaluation board demo and also the manual says that this function should call GUI_X_Config() and then LCD_X_Config() should be called. But I find that that GUI_X_Config() is never called by GUI_Init().I've used STemWin520d_CM4_Keil.lib in my project. I'm working on making an NIR instrument and have to plot the graphs with this discovery kit on the LCD. I'm stuck at this point. Thanking in advance...Expecting a reply.
2013-09-23 11:07 PM
2013-10-01 06:35 AM