Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
BSP
移植nuc131, 8kb内存,32kb存储出现内存分配情况
发布于 2019-05-12 19:00:05 浏览:1507
订阅该版
* 本帖最后由 hzijone 于 2019-5-12 19:09 编辑 *  起始地址从0x20001E30, 从函数接口来说是内存起始地址,也即前7KB多内存已经被用完。 导致在 开辟2K内存失败, 因为总共只有8K内存。 想问如何减少RTTHREAD占用内存这么多的情况 这是rtconfig.h的配置文件 ```/* RT-Thread config file */ #ifndef __RTTHREAD_CFG_H__ #define __RTTHREAD_CFG_H__ /* RT_NAME_MAX*/ #define RT_NAME_MAX 8 /* RT_ALIGN_SIZE*/ #define RT_ALIGN_SIZE 4 /* PRIORITY_MAX */ #define RT_THREAD_PRIORITY_MAX 32 /* Tick per Second */ #define RT_TICK_PER_SECOND 100 /* SECTION: RT_DEBUG */ /* Thread Debug */ #define RT_DEBUG #define RT_THREAD_DEBUG #define RT_USING_OVERFLOW_CHECK /* Using Hook */ #define RT_USING_HOOK /* Using Software Timer */ /* #define RT_USING_TIMER_SOFT */ #define RT_TIMER_THREAD_PRIO 4 #define RT_TIMER_THREAD_STACK_SIZE 512 #define RT_TIMER_TICK_PER_SECOND 10 /* SECTION: IPC */ /* Using Semaphore*/ #define RT_USING_SEMAPHORE /* Using Mutex */ #define RT_USING_MUTEX /* Using Event */ #define RT_USING_EVENT /* Using MailBox */ #define RT_USING_MAILBOX /* Using Message Queue */ #define RT_USING_MESSAGEQUEUE /* SECTION: Memory Management */ /* Using Memory Pool Management*/ #define RT_USING_MEMPOOL /* Using Dynamic Heap Management */ #define RT_USING_HEAP /* Using Small MM */ #define RT_USING_SMALL_MEM //
#define RT_USING_COMPONENTS_INIT /* SECTION: Device System */ /* Using Device System */ #define RT_USING_DEVICE //
#define RT_USING_DEVICE_IPC //
#define RT_USING_SERIAL /* SECTION: Console options */ #define RT_USING_CONSOLE /* the buffer size of console*/ #define RT_CONSOLEBUF_SIZE 128 //
#define RT_CONSOLE_DEVICE_NAME "uart1" #define USEING_UART1 /* SECTION: finsh, a C-Express shell */ #define RT_USING_FINSH /* Using symbol table */ #define FINSH_USING_SYMTAB #define FINSH_USING_DESCRIPTION /* Using finsh msh model */ #define FINSH_USING_MSH #define FINSH_USING_MSH_ONLY //#define RT_USING_PIN //#define RT_USING_CAN //#define RT_CAN_USING_BUS_HOOK //#define RT_CAN_USING_HDR /* SECTION: device filesystem */ /* #define RT_USING_DFS */ //#define RT_USING_DFS_ELMFAT /* Reentrancy (thread safe) of the FatFs module. */ // #define RT_DFS_ELM_REENTRANT /* Number of volumes (logical drives) to be used. */ // #define RT_DFS_ELM_DRIVES 2 /* #define RT_DFS_ELM_USE_LFN 1 */ /* #define RT_DFS_ELM_CODE_PAGE 936 */ // #define RT_DFS_ELM_MAX_LFN 255 /* Maximum sector size to be handled. */ // #define RT_DFS_ELM_MAX_SECTOR_SIZE 512 /* the max number of mounted filesystem */ // #define DFS_FILESYSTEMS_MAX 2 /* the max number of opened files */ // #define DFS_FD_MAX 4 // /* SECTION: lwip, a lighwight TCP/IP protocol stack */ // #define RT_USING_LWIP // /* Enable ICMP protocol*/ // #define RT_LWIP_ICMP // /* Enable UDP protocol*/ // #define RT_LWIP_UDP // /* Enable TCP protocol*/ // #define RT_LWIP_TCP // /* Enable DNS */ // #define RT_LWIP_DNS // /* the number of simulatenously active TCP connections*/ // #define RT_LWIP_TCP_PCB_NUM 5 // /* Using DHCP */ // /* #define RT_LWIP_DHCP */ // /* ip address of target */ // #define RT_LWIP_IPADDR "192.168.1.37" // /* gateway address of target */ // #define RT_LWIP_GWADDR "192.168.1.1" // /* mask address of target */ // #define RT_LWIP_MSKADDR "255.255.255.0" // /* tcp thread options */ // #define RT_LWIP_TCPTHREAD_PRIORITY 12 // #define RT_LWIP_TCPTHREAD_MBOX_SIZE 10 // #define RT_LWIP_TCPTHREAD_STACKSIZE 1024 // /* ethernet if thread options */ // #define RT_LWIP_ETHTHREAD_PRIORITY 15 // #define RT_LWIP_ETHTHREAD_MBOX_SIZE 10 // #define RT_LWIP_ETHTHREAD_STACKSIZE 512 // /* TCP sender buffer space */ // #define RT_LWIP_TCP_SND_BUF 8192 // /* TCP receive window. */ // #define RT_LWIP_TCP_WND 8192 /* SECTION: RT-Thread/GUI */ /* #define RT_USING_RTGUI */ /* name length of RTGUI object */ // #define RTGUI_NAME_MAX 12 /* support 16 weight font */ // #define RTGUI_USING_FONT16 /* support Chinese font */ // #define RTGUI_USING_FONTHZ /* use DFS as file interface */ // #define RTGUI_USING_DFS_FILERW /* use font file as Chinese font */ // #define RTGUI_USING_HZ_FILE /* use Chinese bitmap font */ // #define RTGUI_USING_HZ_BMP /* use small size in RTGUI */ // #define RTGUI_USING_SMALL_SIZE /* use mouse cursor */ /* #define RTGUI_USING_MOUSE_CURSOR */ /* default font size in RTGUI */ // #define RTGUI_DEFAULT_FONT_SIZE 16 /* image support */ /* #define RTGUI_IMAGE_XPM */ /* #define RTGUI_IMAGE_BMP */ //
// #define RT_USING_CMSIS_OS //
// #define RT_USING_RTT_CMSIS //
// #define RT_USING_BSP_CMSIS /* nanopb support */ /* #define RT_USING_NANOPB */ // #define RT_USING_CPU_FFS //#define RT_USING_NEWLIB #define RT_USING_USER_MAIN // #define RT_USING_UART0 #define RT_USING_UART0 #endif ```
查看更多
1
个回答
默认排序
按发布时间排序
水清沙白
2019-05-13
这家伙很懒,什么也没写!
把 Finsh 组件也关了,8K 内存资源太紧张
撰写答案
登录
注册新账号
关注者
0
被浏览
1.5k
关于作者
hzijone
这家伙很懒,什么也没写!
提问
3
回答
2
被采纳
0
关注TA
发私信
相关问题
1
STM32 407 串口接收数据 系统卡死
2
RTT nrf24l01 设备驱动程序
3
stm32f10x串口只能发送数据,无法接收
4
第一次尝试移植rt-thread 到stm32F103系列问题
5
有人把stm32L07xx的bsp移到rtt上来了吗?求一个
6
rt-thread线程调度异常在stm32f103芯片上
7
RTT是否支持STM32F429
8
请问谁有 STM32F40x HAL + RT-THREAD 模板
9
rt-thread在stm32f411下的移植问题
10
针对STM32F7系列平台的MPU,Cache特性,需要注意哪些问题?
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
6
五分钟玩转RT-Thread新社区
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
STM32F429 搭配 CherryUSB 实现 AIR780E 上网(RNDIS + lwIP)
2
睿擎工业开发平台--I2C1驱动AMP2301读取温湿度
3
睿擎平台RK3506使用总结
4
使用deepseek协助开发,基于RK3506睿擎派开发板读取传感器数据
5
睿擎工业开发平台---文件系统测试使用
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
Bootloader
AT
Hardfault
CAN总线
ART-Pi
FinSH
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
FAL
RTC
rt-smart
I2C_IIC
UART
cubemx
BSP
ESP8266
ota在线升级
WIZnet_W5500
PWM
packages_软件包
flash
freemodbus
GD32
潘多拉开发板_Pandora
ADC
编译报错
keil_MDK
定时器
flashDB
ulog
socket
rt_mq_消息队列_msg_queue
msh
中断
Debug
SFUD
C++_cpp
MicroPython
本月问答贡献
踩姑娘的小蘑菇
6
个答案
3
次被采纳
加缪
9
个答案
1
次被采纳
RTT_逍遥
5
个答案
1
次被采纳
用户名由3_15位
5
个答案
1
次被采纳
Ryan_CW
4
个答案
1
次被采纳
本月文章贡献
纯白酱
2
篇文章
3
次点赞
530china
1
篇文章
7
次点赞
rv666
1
篇文章
7
次点赞
踩姑娘的小蘑菇
1
篇文章
3
次点赞
Lipiah
1
篇文章
2
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部