change memory allocation
This commit is contained in:
parent
7e4ce4a1cd
commit
82a37290a3
@ -3,5 +3,5 @@
|
||||
# configure the following variables: GCC_PATH, OPENOCD
|
||||
|
||||
ARM_GCC_PATH = /usr/bin
|
||||
OPENOCD = /home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/openocd/0.12.0-4.1/.content/bin/openocd
|
||||
OPENOCD = /usr/bin/openocd
|
||||
|
@ -59,7 +59,7 @@ PCD_HandleTypeDef hpcd_USB_OTG_HS;
|
||||
SDRAM_HandleTypeDef hsdram1;
|
||||
|
||||
/* USER CODE BEGIN PV */
|
||||
uint16_t framebuffer[160*120];
|
||||
uint16_t framebuffer[480*272];
|
||||
/* USER CODE END PV */
|
||||
|
||||
/* Private function prototypes -----------------------------------------------*/
|
||||
@ -130,7 +130,7 @@ int main(void)
|
||||
uint8_t r = 0xff, g = 0x00, b = 0x00; // Solid red
|
||||
uint16_t col = ((r>>3)<<11) | ((g>>2)<<5) | (b>>3); // Convert colors to RGB565
|
||||
// Put colors into the framebuffer
|
||||
for(int i = 0; i < 160*120; i++)
|
||||
for(int i = 0; i < 480*272; i++)
|
||||
{
|
||||
framebuffer[i] = col;
|
||||
}
|
||||
|
@ -3306,53 +3306,53 @@ LOAD /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/crtn.o
|
||||
.igot.plt 0x20000010 0x0 /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/crtbegin.o
|
||||
0x20000010 . = ALIGN (0x4)
|
||||
|
||||
.bss 0x20000010 0x9ea0 load address 0x08007424
|
||||
0x20000010 _sbss = .
|
||||
0x20000010 __bss_start__ = _sbss
|
||||
.bss 0x24000000 0x404a0
|
||||
0x24000000 _sbss = .
|
||||
0x24000000 __bss_start__ = _sbss
|
||||
*(.bss)
|
||||
.bss 0x20000010 0x1c /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/crtbegin.o
|
||||
.bss 0x24000000 0x1c /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/crtbegin.o
|
||||
*(.bss*)
|
||||
.bss.framebuffer
|
||||
0x2000002c 0x9600 build/debug/main.o
|
||||
0x2000002c framebuffer
|
||||
.bss.hsdram1 0x2000962c 0x34 build/debug/main.o
|
||||
0x2000962c hsdram1
|
||||
0x2400001c 0x3fc00 build/debug/main.o
|
||||
0x2400001c framebuffer
|
||||
.bss.hsdram1 0x2403fc1c 0x34 build/debug/main.o
|
||||
0x2403fc1c hsdram1
|
||||
.bss.hpcd_USB_OTG_HS
|
||||
0x20009660 0x4e4 build/debug/main.o
|
||||
0x20009660 hpcd_USB_OTG_HS
|
||||
.bss.huart10 0x20009b44 0x94 build/debug/main.o
|
||||
0x20009b44 huart10
|
||||
.bss.huart5 0x20009bd8 0x94 build/debug/main.o
|
||||
0x20009bd8 huart5
|
||||
.bss.hsd2 0x20009c6c 0x7c build/debug/main.o
|
||||
0x20009c6c hsd2
|
||||
.bss.hltdc 0x20009ce8 0xa8 build/debug/main.o
|
||||
0x20009ce8 hltdc
|
||||
.bss.hi2c4 0x20009d90 0x54 build/debug/main.o
|
||||
0x20009d90 hi2c4
|
||||
.bss.hfdcan1 0x20009de4 0xa0 build/debug/main.o
|
||||
0x20009de4 hfdcan1
|
||||
.bss.hcrc 0x20009e84 0x24 build/debug/main.o
|
||||
0x20009e84 hcrc
|
||||
.bss.uwTick 0x20009ea8 0x4 build/debug/stm32h7xx_hal.o
|
||||
0x20009ea8 uwTick
|
||||
0x2403fc50 0x4e4 build/debug/main.o
|
||||
0x2403fc50 hpcd_USB_OTG_HS
|
||||
.bss.huart10 0x24040134 0x94 build/debug/main.o
|
||||
0x24040134 huart10
|
||||
.bss.huart5 0x240401c8 0x94 build/debug/main.o
|
||||
0x240401c8 huart5
|
||||
.bss.hsd2 0x2404025c 0x7c build/debug/main.o
|
||||
0x2404025c hsd2
|
||||
.bss.hltdc 0x240402d8 0xa8 build/debug/main.o
|
||||
0x240402d8 hltdc
|
||||
.bss.hi2c4 0x24040380 0x54 build/debug/main.o
|
||||
0x24040380 hi2c4
|
||||
.bss.hfdcan1 0x240403d4 0xa0 build/debug/main.o
|
||||
0x240403d4 hfdcan1
|
||||
.bss.hcrc 0x24040474 0x24 build/debug/main.o
|
||||
0x24040474 hcrc
|
||||
.bss.uwTick 0x24040498 0x4 build/debug/stm32h7xx_hal.o
|
||||
0x24040498 uwTick
|
||||
.bss.FMC_Initialized
|
||||
0x20009eac 0x4 build/debug/stm32h7xx_hal_msp.o
|
||||
0x2404049c 0x4 build/debug/stm32h7xx_hal_msp.o
|
||||
*(COMMON)
|
||||
0x20009eb0 . = ALIGN (0x4)
|
||||
0x20009eb0 _ebss = .
|
||||
0x20009eb0 __bss_end__ = _ebss
|
||||
0x240404a0 . = ALIGN (0x4)
|
||||
0x240404a0 _ebss = .
|
||||
0x240404a0 __bss_end__ = _ebss
|
||||
|
||||
._user_heap_stack
|
||||
0x20009eb0 0x600 load address 0x08007424
|
||||
0x20009eb0 . = ALIGN (0x8)
|
||||
0x20000010 0x600
|
||||
0x20000010 . = ALIGN (0x8)
|
||||
[!provide] PROVIDE (end = .)
|
||||
0x20009eb0 PROVIDE (_end = .)
|
||||
0x2000a0b0 . = (. + _Min_Heap_Size)
|
||||
*fill* 0x20009eb0 0x200
|
||||
0x2000a4b0 . = (. + _Min_Stack_Size)
|
||||
*fill* 0x2000a0b0 0x400
|
||||
0x2000a4b0 . = ALIGN (0x8)
|
||||
0x20000010 PROVIDE (_end = .)
|
||||
0x20000210 . = (. + _Min_Heap_Size)
|
||||
*fill* 0x20000010 0x200
|
||||
0x20000610 . = (. + _Min_Stack_Size)
|
||||
*fill* 0x20000210 0x400
|
||||
0x20000610 . = ALIGN (0x8)
|
||||
|
||||
/DISCARD/
|
||||
libc.a(*)
|
||||
@ -3473,39 +3473,39 @@ LOAD /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/libgcc.a
|
||||
.comment 0x00000046 0x24 /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/libgcc.a(_udivmoddi4.o)
|
||||
.comment 0x00000046 0x24 /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/crtend.o
|
||||
|
||||
.debug_info 0x00000000 0x2d6f1
|
||||
.debug_info 0x00000000 0x3a4f build/debug/main.o
|
||||
.debug_info 0x00003a4f 0x14ef build/debug/stm32h7xx_hal.o
|
||||
.debug_info 0x00004f3e 0x12fc build/debug/stm32h7xx_hal_cortex.o
|
||||
.debug_info 0x0000623a 0x600 build/debug/stm32h7xx_hal_crc.o
|
||||
.debug_info 0x0000683a 0x352 build/debug/stm32h7xx_hal_crc_ex.o
|
||||
.debug_info 0x00006b8c 0x3275 build/debug/stm32h7xx_hal_fdcan.o
|
||||
.debug_info 0x00009e01 0xb76 build/debug/stm32h7xx_hal_gpio.o
|
||||
.debug_info 0x0000a977 0x44f5 build/debug/stm32h7xx_hal_i2c.o
|
||||
.debug_info 0x0000ee6c 0xc81 build/debug/stm32h7xx_hal_i2c_ex.o
|
||||
.debug_info 0x0000faed 0x1504 build/debug/stm32h7xx_hal_ltdc.o
|
||||
.debug_info 0x00010ff1 0x3ebc build/debug/stm32h7xx_hal_msp.o
|
||||
.debug_info 0x00014ead 0x1c4f build/debug/stm32h7xx_hal_pcd.o
|
||||
.debug_info 0x00016afc 0xa1a build/debug/stm32h7xx_hal_pcd_ex.o
|
||||
.debug_info 0x00017516 0x107c build/debug/stm32h7xx_hal_pwr_ex.o
|
||||
.debug_info 0x00018592 0x1174 build/debug/stm32h7xx_hal_rcc.o
|
||||
.debug_info 0x00019706 0x1986 build/debug/stm32h7xx_hal_rcc_ex.o
|
||||
.debug_info 0x0001b08c 0x263b build/debug/stm32h7xx_hal_sd.o
|
||||
.debug_info 0x0001d6c7 0x132d build/debug/stm32h7xx_hal_sdram.o
|
||||
.debug_info 0x0001e9f4 0x657c build/debug/stm32h7xx_hal_uart.o
|
||||
.debug_info 0x00024f70 0x1226 build/debug/stm32h7xx_hal_uart_ex.o
|
||||
.debug_info 0x00026196 0x1327 build/debug/stm32h7xx_it.o
|
||||
.debug_info 0x000274bd 0xcbe build/debug/stm32h7xx_ll_fmc.o
|
||||
.debug_info 0x0002817b 0x1e7c build/debug/stm32h7xx_ll_sdmmc.o
|
||||
.debug_info 0x00029ff7 0x1f0d build/debug/stm32h7xx_ll_usb.o
|
||||
.debug_info 0x0002bf04 0xd5c build/debug/system_stm32h7xx.o
|
||||
.debug_info 0x0002cc60 0x30 build/debug/startup_stm32h7a3xx.o
|
||||
.debug_info 0x0002cc90 0xe0 /usr/lib/gcc/arm-none-eabi/14.1.0/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/libc_nano.a(libc_a-memset.o)
|
||||
.debug_info 0x0002cd70 0x10b /usr/lib/gcc/arm-none-eabi/14.1.0/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/libc_nano.a(libc_a-init.o)
|
||||
.debug_info 0x0002ce7b 0x121 /usr/lib/gcc/arm-none-eabi/14.1.0/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/libc_nano.a(libc_a-memcpy-stub.o)
|
||||
.debug_info 0x0002cf9c 0x24 /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/libgcc.a(_aeabi_uldivmod.o)
|
||||
.debug_info 0x0002cfc0 0x6f5 /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/libgcc.a(_udivmoddi4.o)
|
||||
.debug_info 0x0002d6b5 0x3c /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/libgcc.a(_dvmd_tls.o)
|
||||
.debug_info 0x00000000 0x2d6f3
|
||||
.debug_info 0x00000000 0x3a51 build/debug/main.o
|
||||
.debug_info 0x00003a51 0x14ef build/debug/stm32h7xx_hal.o
|
||||
.debug_info 0x00004f40 0x12fc build/debug/stm32h7xx_hal_cortex.o
|
||||
.debug_info 0x0000623c 0x600 build/debug/stm32h7xx_hal_crc.o
|
||||
.debug_info 0x0000683c 0x352 build/debug/stm32h7xx_hal_crc_ex.o
|
||||
.debug_info 0x00006b8e 0x3275 build/debug/stm32h7xx_hal_fdcan.o
|
||||
.debug_info 0x00009e03 0xb76 build/debug/stm32h7xx_hal_gpio.o
|
||||
.debug_info 0x0000a979 0x44f5 build/debug/stm32h7xx_hal_i2c.o
|
||||
.debug_info 0x0000ee6e 0xc81 build/debug/stm32h7xx_hal_i2c_ex.o
|
||||
.debug_info 0x0000faef 0x1504 build/debug/stm32h7xx_hal_ltdc.o
|
||||
.debug_info 0x00010ff3 0x3ebc build/debug/stm32h7xx_hal_msp.o
|
||||
.debug_info 0x00014eaf 0x1c4f build/debug/stm32h7xx_hal_pcd.o
|
||||
.debug_info 0x00016afe 0xa1a build/debug/stm32h7xx_hal_pcd_ex.o
|
||||
.debug_info 0x00017518 0x107c build/debug/stm32h7xx_hal_pwr_ex.o
|
||||
.debug_info 0x00018594 0x1174 build/debug/stm32h7xx_hal_rcc.o
|
||||
.debug_info 0x00019708 0x1986 build/debug/stm32h7xx_hal_rcc_ex.o
|
||||
.debug_info 0x0001b08e 0x263b build/debug/stm32h7xx_hal_sd.o
|
||||
.debug_info 0x0001d6c9 0x132d build/debug/stm32h7xx_hal_sdram.o
|
||||
.debug_info 0x0001e9f6 0x657c build/debug/stm32h7xx_hal_uart.o
|
||||
.debug_info 0x00024f72 0x1226 build/debug/stm32h7xx_hal_uart_ex.o
|
||||
.debug_info 0x00026198 0x1327 build/debug/stm32h7xx_it.o
|
||||
.debug_info 0x000274bf 0xcbe build/debug/stm32h7xx_ll_fmc.o
|
||||
.debug_info 0x0002817d 0x1e7c build/debug/stm32h7xx_ll_sdmmc.o
|
||||
.debug_info 0x00029ff9 0x1f0d build/debug/stm32h7xx_ll_usb.o
|
||||
.debug_info 0x0002bf06 0xd5c build/debug/system_stm32h7xx.o
|
||||
.debug_info 0x0002cc62 0x30 build/debug/startup_stm32h7a3xx.o
|
||||
.debug_info 0x0002cc92 0xe0 /usr/lib/gcc/arm-none-eabi/14.1.0/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/libc_nano.a(libc_a-memset.o)
|
||||
.debug_info 0x0002cd72 0x10b /usr/lib/gcc/arm-none-eabi/14.1.0/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/libc_nano.a(libc_a-init.o)
|
||||
.debug_info 0x0002ce7d 0x121 /usr/lib/gcc/arm-none-eabi/14.1.0/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard/libc_nano.a(libc_a-memcpy-stub.o)
|
||||
.debug_info 0x0002cf9e 0x24 /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/libgcc.a(_aeabi_uldivmod.o)
|
||||
.debug_info 0x0002cfc2 0x6f5 /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/libgcc.a(_udivmoddi4.o)
|
||||
.debug_info 0x0002d6b7 0x3c /usr/lib/gcc/arm-none-eabi/14.1.0/thumb/v7e-m+dp/hard/libgcc.a(_dvmd_tls.o)
|
||||
|
||||
.debug_abbrev 0x00000000 0x43f0
|
||||
.debug_abbrev 0x00000000 0x35a build/debug/main.o
|
||||
|
@ -162,7 +162,7 @@ SECTIONS
|
||||
. = ALIGN(4);
|
||||
_ebss = .; /* define a global symbol at bss end */
|
||||
__bss_end__ = _ebss;
|
||||
} >DTCMRAM
|
||||
} >RAM
|
||||
|
||||
/* User_heap_stack section, used to check that there is enough RAM left */
|
||||
._user_heap_stack :
|
||||
|
Loading…
x
Reference in New Issue
Block a user