Skip to content

Commit 173ff63

Browse files
committed
mimxrt/boards/MIMXRT1170_EVK: Use sdram for display.
Signed-off-by: Andrew Leech <[email protected]>
1 parent d564c37 commit 173ff63

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

ports/mimxrt/boards/MIMXRT1170_EVK/display_support.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
#endif
7878

7979
#define DEMO_BUFFER_WIDTH DEMO_PANEL_WIDTH
80-
#define DEMO_BUFFER_HEIGHT (DEMO_PANEL_HEIGHT / 10)
80+
// #define DEMO_BUFFER_HEIGHT (DEMO_PANEL_HEIGHT / 10)
81+
#define DEMO_BUFFER_HEIGHT (DEMO_PANEL_HEIGHT)
8182

8283
/* Where the frame buffer is shown in the screen. */
8384
#define DEMO_BUFFER_START_X 0U

ports/mimxrt/boards/MIMXRT1170_EVK/lvgl_support.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ static void DEMO_WaitBufferSwitchOff(void);
121121
/*******************************************************************************
122122
* Variables
123123
******************************************************************************/
124-
SDK_ALIGN(static uint8_t __attribute__((section(".heap"))) s_frameBuffer[2][DEMO_FB_SIZE], DEMO_FB_ALIGN);
124+
SDK_ALIGN(static uint8_t __attribute__((section(".sdram"))) s_frameBuffer[2][DEMO_FB_SIZE], DEMO_FB_ALIGN);
125125
#if DEMO_USE_ROTATE
126-
SDK_ALIGN(static uint8_t __attribute__((section(".heap"))) s_lvglBuffer[1][DEMO_FB_SIZE], DEMO_FB_ALIGN);
126+
SDK_ALIGN(static uint8_t __attribute__((section(".sdram"))) s_lvglBuffer[1][DEMO_FB_SIZE], DEMO_FB_ALIGN);
127127
#endif
128128

129129
#if defined(SDK_OS_FREE_RTOS)

ports/mimxrt/boards/MIMXRT1176.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ __stack_size__ = 0x8000;
4949
_estack = __StackTop;
5050
_sstack = __StackLimit;
5151

52-
#if MICROPY_HW_SDRAM_AVAIL
52+
#if 0 /* MICROPY_HW_SDRAM_AVAIL */
5353
_gc_heap_start = ORIGIN(m_sdram);
5454
_gc_heap_end = ORIGIN(m_sdram) + LENGTH(m_sdram);
5555
#else

ports/mimxrt/boards/common.ld

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,31 +250,36 @@ SECTIONS
250250
.heap :
251251
{
252252
. = ALIGN(8);
253-
*(.heap);
254253
__end__ = .;
255254
PROVIDE(end = .);
256255
__HeapBase = .;
257256
. += HEAP_SIZE;
258257
__HeapLimit = .;
259258
__heap_limit = .; /* Add for _sbrk */
260-
} > m_ocrm
259+
} > m_dtcm
261260

262261
.stack :
263262
{
264263
. = ALIGN(8);
265264
. += STACK_SIZE;
266-
} > m_ocrm
265+
} > m_dtcm
266+
267+
.sdram :
268+
{
269+
. = ALIGN(8);
270+
*(.sdram);
271+
} > m_sdram
267272

268273
_flashimagelen = __FLASH_DATA_END - flash_start;
269274

270275
/* Initializes stack on the end of block */
271-
__StackTop = ORIGIN(m_ocrm) + LENGTH(m_ocrm);
276+
__StackTop = ORIGIN(m_dtcm) + LENGTH(m_dtcm);
272277
__StackLimit = __StackTop - STACK_SIZE;
273278
_vStackTop = __StackTop;
274279
PROVIDE(__stack = __StackTop);
275280

276281
.ARM.attributes 0 : { *(.ARM.attributes) }
277282

278-
ASSERT(__StackLimit >= __HeapLimit, "region m_ocrm overflowed with stack and heap")
283+
ASSERT(__StackLimit >= __HeapLimit, "region m_dtcm overflowed with stack and heap")
279284
}
280285

0 commit comments

Comments
 (0)