初级会员

- 积分
- 127
- 金钱
- 127
- 注册时间
- 2017-6-29
- 在线时间
- 16 小时
|
1金钱
添加原子哥写的malloc文件到工程下,初始化之后出现空间不足,是怎么回事,刚接触内存分配的问题,诸多不懂,望遇到类似问题的朋友指教,
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching malloc.o(.bss).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching startup_stm32f105xc.o(HEAP).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching malloc.o(.bss).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching startup_stm32f105xc.o(STACK).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching usb_host.o(.bss).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching usbh_conf.o(.bss).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching uart.o(.bss).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching malloc.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching usbh_msc.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching ff.o(.bss).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching ff_gen_drv.o(.bss).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching ff.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching uart.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching fatfs.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching stm32f1xx_hal.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching delay.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching system_stm32f1xx.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching stdout.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching mvars.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching mvars.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching stm32f1xx_it.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6406E: No space in execution regions with .ANY selector matching usb_host.o(.data).
usbhost Configuration\usbhost Configuration.axf: Error: L6407E: Sections of aggregate size 0x1d588 bytes could not fit into .ANY selector(s).
|
最佳答案
查看完整内容[请看2#楼]
例程的malloc中会定义一个很大的数组,这个数组定义在内部ram中,malloc内存申请就是从这个数组中申请的,错误提示是RAM不够了,说明这个数组太大了,把这个数组改小,直到能编译下去。
|