2011-03-31 08:33 AM
STM32 FSMC and LCD problem - processor hangs!
2011-05-17 05:30 AM
There are quite a few problems with prototypes, things missing from include files, and include files not included where they should be.
One particular problem is in SSD1963_touch.c, missing ''SSD1963_api.h'', and having two calls to LCD_Line() missing the final BackColor parameter. Cleaned up a bit, and projected in Keil uv42011-05-17 05:30 AM
Hi Clive.
Thank you. I knew the code wasn't clean - yet... :)
Though I might have found out why FSMC wasn't working. By switching to V3.1.2 of the StdPeriph library from ST, the ''FSMC hanging problem'' didn't occour.
Switching back to V3.4.0, the hanging problem comes back.
So there might be an issue with FSMC in V3.4.0 of the Standard Periphiral library!?
Best Regards
Thomas Jespersen
2011-05-17 05:30 AM
Should it work on a stock STM3210E? The one I have doesn't have a 7'' screen <G>
If you want to suggest a fix for SSD1963_touch.c, I'll build it in Keil uv4 to see if it is a compiler/optimization issue. I have closure on the other warnings/errors. If i don't use the include file, it will compile/link completely, but obviously call with only 4 parameters it might have issues. I suspect I can just pick a random background colour.2011-05-17 05:30 AM
Dear Clive.
No, the STM3210E-EVAL board doesn't have 7'' display originally, but I've made an adapter board which plugs into the male header connectors.
It isn't the SSD1963_Touch.c which is the problem, it's the StdPeriph library!
I just want to warn the ST guys about this issue, and maybe they have a public issue tracker, so I could submit the error.
Best regards
Thomas Jespersen
2011-05-17 05:30 AM
Thomas, have you calculated the address setup time, address hold time and data setup time FSMC parameters for the 7'' display according to the formulas in section 2.6.2 of AN2790?