2014-07-07 05:14 AM
I want to use STemwin GUI library for one of my project. Interfaced successfully STM32F207 with SSD1963 LCD driver (480x272). But when used emwin library standalone application it gets hardfault handler after GUI_X_Init. Seen on disassembly there was some register data corrupted. Changed the SRAM driver as according to my target device & also changed the LCD display initialization routine as my LCD is not on FSMC, its' on simple GPIO data lines.
Please suggest if anyone used emwin without LCD on FSMC.2014-07-07 06:52 AM
2014-07-07 09:21 PM
Thanks George,
My LCD is working fine & displaying images icons but i want to use emwin so that i can easily make interactive GUI's. It may be a little bit confusing for me. As i am using the standalone application of stemwin & change the bsp drivers for LCD, LCD driver ssd1963 & for SRAM. But in GUI_Init, it gets stuck up after GUI_X_Init. May be the issue is related to memory allocation. Can you please tell me the step which i need to take care to run emwin with my LCD.2014-07-08 05:09 AM
I'd bet that the CRC peripheral is not enabled.
The StEmwin is a precompiled library from Segger's Emwin. It does only run on ST MCUs. It uses the CRC peripheral to do some ''magic'' to see if the code is actually running on a STM32 MCU.So make sure that the proper RCC init function is called to enable the CRC peripheral.Cheers2014-07-08 05:25 AM
Hi Rigo,
RCC enabled in code init. There is some other issue, it gets hard fault handler after GUI_X_Init. Thats for init routine:BSP_TSC_Init();
STM322xG_LCD_Init(); /* Initialize the SRAM */ SRAM_Init();/* Enable the CRC Module */
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_CRC, ENABLE); CRC RCC is enabled here in device init. Regards, Aman2014-07-08 07:08 AM
Ok, so look at where it's Hard Faulting!
Chances are you are passing in a memory address which is out of scope.