when i don't use any optimization, the lcd works well. When i use O-3 optimization, the screen will flicker . then i enable the cache of L1 and L2, it stops, but the image will be divided into a few parts and shows a falut position.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
when i don't use any optimization, the lcd works well. When i use O-3 optimization, the screen will flicker . then i enable the cache of L1 and L2, it stops, but the image will be divided into a few parts and shows a falut position.
i use my own boad of TMS320C6748. off course i change the code of lcd raster setting
the lcd data points to ddr2 in a certain addr, i update the data every time.
here are the optimization setting.
here is my cmd file of memory
MEMORY
{
L2: o = 0x00800000 l = 0x00040000
// share: o = 0x80000000 l = 0x00020000
L1P: o = 0x00E00000 l = 0x00008000
L1D: o = 0x00F00000 l = 0x00008000
dsp_ddrii: o = 0xc2000000 l = 0x1000000
}
/* =========================================================================*
* Specify the Sections Allocation into Memory *
* =========================================================================*/
SECTIONS
{
.cinit > dsp_ddrii /* Initialization Tables */
.pinit > dsp_ddrii /* C++ Constructor Tables */
.const > dsp_ddrii /* Constant Data */
.switch > dsp_ddrii /* Jump Tables */
.text:_c_int00 > 0xc2000000
.text > dsp_ddrii /* Executable Code */
// .stack > IRAM
.bss > dsp_ddrii /* Global & Static Variables */
.far > dsp_ddrii /* Far Global & Static Variables */
.stack > dsp_ddrii /* Software System Stack */
.sysmem > dsp_ddrii /* Dynamic Memory Allocation Area */
.cio > dsp_ddrii /* C I/O Buffer */
.vecs > dsp_ddrii /* Interrupt Vectors */
}
i don't have lcdk board. actually, the code is almost the same as example. only if i use optimization , the problem will appear, other parts work well . I think it maybe the ddr setting.
if i use cacheenable L2 and cacheenableMAR, the lcd will work well in debug ,but not in nor flash.