野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9821|回复: 2

DMA-存储器到外设USART1的问题

[复制链接]
发表于 2019-4-24 23:28:09 | 显示全部楼层 |阅读模式
各位大牛,请教一下,在做DMA-存储器到外设USART1数据传输的时候,在第22节例程工程里将dma——usart.h文件里的原代码 #define  SENDBUFF_SIZE     5000 修改成  #define  SENDBUFF_SIZE     65500(这个变量是DMA串口通道要发送的数量)后,   dma——usart.c文件中的大数组 uint8_t  SendBuff[SENDBUFF_SIZE];(这是一个全局数组吧)未改变,其它代码和配置都未修改,编译后出现以下错误:Error: L6406E: No space in execution regions with .ANY selector matching startup_stm32f10x_hd.o(STACK).
Error: L6406E: No space in execution regions with .ANY selector matching system_stm32f10x.o(.data).
Error: L6406E: No space in execution regions with .ANY selector matching stm32f10x_rcc.o(.data).
Error: L6407E: Sections of aggregate size 0x428 bytes could not fit into .ANY selector(s).
请问怎么解决!



回复

使用道具 举报

发表于 2019-4-25 08:38:46 | 显示全部楼层
空间太大,不够了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-4-25 08:53:08 | 显示全部楼层
左丘冰 发表于 2019-4-25 08:38
空间太大,不够了

是栈空间不够吗
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-10 12:07 , Processed in 0.054225 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表