野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8464|回复: 1

为什么keil中打印启动文件中的_Vectors、_Vectors_End、_initial_sp得到的结果不正确

[复制链接]
发表于 2018-4-27 16:16:37 | 显示全部楼层 |阅读模式
如题为什么keil中打印启动文件中的_Vectors、_Vectors_End、_initial_sp得到的结果不正确,我在工程中是这么写的:
extern unsigned int __Vectors;
extern unsigned int __Vectors_End;
extern unsigned int __initial_sp;
printf("stack_peak is %x\n",__initial_sp);
printf("__Vectors is %x\n",__Vectors);
printf("__Vectors_End is %x\n",__Vectors_End);
回复

使用道具 举报

 楼主| 发表于 2018-4-27 16:17:10 | 显示全部楼层
用的芯片是stm32f103
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-7 12:03 , Processed in 0.025832 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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