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.

Buffer address in SARAM for LCD with BIOS

The example csl_lcdc_262kColorModeExample.c uses a buffer address in SARAM by defining

#pragma DATA_SECTION(gLcdBuf, ".buffer2")

Uint16 gLcdBuf[LCD_MAX_BUFFER_SIZE];

.buffer2 is defined in cmd file:

memory{    SARAM_1 (RW) : origin = 0020000h length = 017E80h /* on-chip SARAM 1 */ }

sections{   .buffer2   : > SARAM_1 }

 

and the the function LCD_configDMA in csl_lcdc.c requires a base address between  (0x08000)and (0x27FFF) in SARAM.

// SARAM starting address

#define  CSL_LCD_SARAM_START_ADDR        (0x08000)

// SARAM ending address

#define CSL_LCD_SARAM_END_ADDR          (0x27FFF)

What changes should be made to run this example in the presence of BIOS? How can a buffer address be defined in SARAM with BIOS?

 

Sukru