完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
能关的都关了试试,不使用压缩,不使用finsh,不使用qled,syswatch
|
|
|
|
不使用 qboot ,实现很啰嗦。
|
|
|
|
关闭压缩,finsh,qled,syswatch后,
最终的rtconfig.h文件 #ifndef RT_CONFIG_H__ #define RT_CONFIG_H__ /* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */ /* RT-Thread Kernel */ #define RT_NAME_MAX 8 #define RT_ALIGN_SIZE 4 #define RT_THREAD_PRIORITY_32 #define RT_THREAD_PRIORITY_MAX 32 #define RT_TICK_PER_SECOND 1000 #define IDLE_THREAD_STACK_SIZE 256 #define RT_CONSOLEBUF_SIZE 256 /* Inter-Thread communication */ #define RT_USING_SEMAPHORE #define RT_USING_MUTEX #define RT_USING_MAILBOX /* end of Inter-Thread communication */ /* Memory Management */ #define RT_USING_MEMPOOL #define RT_USING_SMALL_MEM #define RT_USING_HEAP /* end of Memory Management */ /* Kernel Device Object */ #define RT_USING_DEVICE /* end of Kernel Device Object */ #define RT_VER_NUM 0x40002 /* end of RT-Thread Kernel */ #define ARCH_ARM #define RT_USING_CPU_FFS #define ARCH_ARM_CORTEX_M #define ARCH_ARM_CORTEX_M4 /* RT-Thread Components */ #define RT_USING_COMPONENTS_INIT #define RT_USING_USER_MAIN #define RT_MAIN_THREAD_STACK_SIZE 2048 #define RT_MAIN_THREAD_PRIORITY 10 /* C++ features */ /* end of C++ features */ /* Command shell */ /* end of Command shell */ /* Device virtual file system */ /* end of Device virtual file system */ /* Device Drivers */ #define RT_USING_DEVICE_IPC #define RT_PIPE_BUFSZ 512 #define RT_USING_PIN #define RT_USING_SPI #define RT_USING_SFUD #define RT_SFUD_USING_SFDP #define RT_SFUD_USING_FLASH_INFO_TABLE #define RT_SFUD_SPI_MAX_HZ 50000000 /* Using USB */ /* end of Using USB */ /* end of Device Drivers */ /* POSIX layer and C standard library */ /* end of POSIX layer and C standard library */ /* Network */ /* Socket abstraction layer */ /* end of Socket abstraction layer */ /* Network interface device */ /* end of Network interface device */ /* light weight TCP/IP stack */ /* end of light weight TCP/IP stack */ /* AT commands */ /* end of AT commands */ /* end of Network */ /* VBUS(Virtual Software BUS) */ /* end of VBUS(Virtual Software BUS) */ /* Utilities */ /* end of Utilities */ /* end of RT-Thread Components */ /* RT-Thread online packages */ /* IoT - internet of things */ /* Wi-Fi */ /* Marvell WiFi */ /* end of Marvell WiFi */ /* Wiced WiFi */ /* end of Wiced WiFi */ /* end of Wi-Fi */ /* IoT Cloud */ /* end of IoT Cloud */ /* end of IoT - internet of things */ /* security packages */ /* end of security packages */ /* language packages */ /* end of language packages */ /* multimedia packages */ /* end of multimedia packages */ /* tools packages */ /* end of tools packages */ /* system packages */ /* acceleration: Assembly language or algorithmic acceleration packages */ /* end of acceleration: Assembly language or algorithmic acceleration packages */ /* Micrium: Micrium software products porting for RT-Thread */ /* end of Micrium: Micrium software products porting for RT-Thread */ #define PKG_USING_FAL #define FAL_DEBUG_CONFIG #define FAL_DEBUG 1 #define FAL_PART_HAS_TABLE_CFG #define FAL_USING_SFUD_PORT #define FAL_USING_NOR_FLASH_DEV_NAME "w25q128" #define PKG_USING_FAL_V00500 #define PKG_FAL_VER_NUM 0x00500 #define PKG_USING_QBOOT #define QBOOT_USING_PRODUCT_CODE #define QBOOT_PRODUCT_CODE "00010203040506070809" #define QBOOT_APP_PART_NAME "app" #define QBOOT_DOWNLOAD_PART_NAME "download" #define QBOOT_FACTORY_PART_NAME "factory" #define QBOOT_USING_PRODUCT_INFO #define QBOOT_PRODUCT_NAME "Qboot test device" #define QBOOT_PRODUCT_VER "v1.00 2020.07.27" #define QBOOT_PRODUCT_MCU "stm32F407" #define QBOOT_USING_FACTORY_KEY #define QBOOT_FACTORY_KEY_PIN 64 #define QBOOT_FACTORY_KEY_LEVEL 0 #define QBOOT_FACTORY_KEY_CHK_TMO 5 #define QBOOT_THREAD_STACK_SIZE 4096 #define QBOOT_THREAD_PRIO 5 #define PKG_USING_QBOOT_LATEST_VERSION /* end of system packages */ /* peripheral libraries and drivers */ /* end of peripheral libraries and drivers */ /* AI packages */ /* end of AI packages */ /* miscellaneous packages */ /* samples: kernel and components samples */ /* end of samples: kernel and components samples */ #define PKG_USING_CRCLIB #define CRCLIB_USING_CRC8 #define CRC8_USING_CONST_TABLE #define CRC8_POLY_8C #define CRC8_POLY 140 #define CRCLIB_USING_CRC16 #define CRC16_USING_CONST_TABLE #define CRC16_POLY_A001 #define CRC16_POLY 40961 #define CRCLIB_USING_CRC32 #define CRC32_USING_CONST_TABLE #define CRC32_POLY_EDB88320 #define CRC32_POLY 3988292384 #define PKG_USING_CRCLIB_V100 /* entertainment: terminal games and other interesting software packages */ /* end of entertainment: terminal games and other interesting software packages */ /* end of miscellaneous packages */ /* end of RT-Thread online packages */ /* samples: kernel and components samples */ /* end of samples: kernel and components samples */ #define RT_STUDIO_BUILT_IN #endif 使用-Os编译选项 最终编译大小是 arm-none-eabi-objcopy -O ihex "rtthread.elf" "rtthread.hex" arm-none-eabi-size --format=berkeley "rtthread.elf" text data bss dec hex filename 29304 384 7048 36736 8f80 rtthread.elf Used Size(B) Used Size(KB) Flash: 29688 B 28.99 KB RAM: 7432 B 7.26 KB 09:19:42 Build Finished. 0 errors, 27 warnings. (took 5s.236ms) |
|
|
|
STM32L431使用QBoot,仅使用片内flash, 精简后的bootloadr大小为20.16KB,RAM占用12.41KB
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
754 浏览 0 评论
3703 浏览 0 评论
如何使用python调起UDE STK5.2进行下载自动化下载呢?
2459 浏览 0 评论
开启全新AI时代 智能嵌入式系统快速发展——“第六届国产嵌入式操作系统技术与产业发展论坛”圆满结束
2892 浏览 0 评论
获奖公布!2024 RT-Thread全球巡回线下培训火热来袭!报名提问有奖!
31079 浏览 11 评论
72771 浏览 21 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-19 14:24 , Processed in 0.559045 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号