File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments