当前位置:首页 > 技术心得 > 正文内容

Keil error C272: '__asm' requires src-control to be active 解决办法

xjtudll10年前 (2016-12-20)技术心得25400

问题:

在C代码里加入了__asm语句,例如“__asm POP 7”,编译出现Error

error C272: '__asm' requires src-control to be active

afcd4150-3745-414d-86b7-133deb3338f0

解决办法:

右键选中该文件----option for file" XXXXX .C   "------将 Generate Assembler SRC File 与 Assemble SRC File 的勾选由灰色变为黑色,使这两项有效。 重新编译即可。

bb489cde-e584-4997-a10f-67997df35985

扫描二维码推送至手机访问。

版权声明:本文由鸟的天空发布,如需转载请注明出处。

本文链接:http://xjtudll.cn/Exp/431/

标签: keil
分享给朋友:

“Keil error C272: '__asm' requires src-control to be active 解决办法” 的相关文章

常用电平标准

常用电平标准

现在常用的电平标准有TTL、CMOS、LVTTL、LVCMOS、ECL、PECL、LVPECL、RS232、RS485等,还有一些速度比较高的LVDS、GTL、PGTL、CML、HSTL、SSTL等。下面简单介绍一下各自的供电电源、电平标准以及使用注意事项。1、TTL电平TTL:Transistor...

Warning: xx pins must meet Altera requirements for 3.3-, 3.0-, and 2.5-V interfaces. For more information, refer to AN 447: Interfacing Cyclone IV E Devices with 3.3/3.0/2.5-V LVTTL/LVCMOS I/O Systems

Warning: xx pins must meet Altera requirements for 3.3-, 3.0-, and 2.5-V interfaces. For more information, refer to AN 447: Interfacing Cyclone IV E Devices with 3.3/3.0/2.5-V LVTTL/LVCMOS I/O Systems

问题描述: Cyclone IV EP4CE6E22C8N Quartus II编译 每次编译完,都有个warning: Warning: xx pins must meet Altera requirements for 3.3-, 3.0-, and 2.5-V interfaces. For...

IAR STM8嵌入汇编

IAR STM8嵌入汇编

IAR嵌入汇编:使用asm或者__asm,推荐使用__asm。 void delay_n_nop(uint8 N) { // 用C语言的话 会跟编译器的优化有关 /*     uint8 i;     for (i=N; i>0; i...

Protel99SE自动编号

Protel99SE自动编号

说到Protel99SE的自动编号,大家想到的肯定是Tools->Annotate,如图所示。 但是这种方法有个很大的缺点,虽然可以设置自动编号的方向,但是编号却不尽如人意。例如,我想让某一部分元件的编号是连续的,但是用此方法所得的编号很难保证连续。这样的话给绘制PCB的工作带来了很大麻...

因iPhone X上架杯具

最近上架了两款app,均被拒绝。 以下是原文:  0. 10.0 Before You Submit: Program License Agreement PLA 2.3 Your app or its metadata contains references to a pre-...

php环境如何测试是否配置成功

<?php phpinfo(); ?> 编写一个PHP文件(注意:是PHP文件,不是txt文件),里面内容如上。 浏览器里访问这个文件。如果能看到配置信息,表明PHP环境配置成功。...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。