社区
汇编语言
帖子详情
L6218E:Undefined symbol Main (referred from *.0)错误
gongdezhi1990
2012-11-29 07:31:07
初用ads 这个错误 怎么解决
...全文
1289
4
打赏
收藏
L6218E:Undefined symbol Main (referred from *.0)错误
初用ads 这个错误 怎么解决
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
大熊猫侯佩
2012-12-03
打赏
举报
回复
对main原型有要求?
gongdezhi1990
2012-12-01
打赏
举报
回复
本人将 void Main() 改为int Main()之后没有出现问题了 不理解 希望下面有人继续跟进
gongdezhi1990
2012-11-29
打赏
举报
回复
key_led_beep.c //I/O设置 #define rGPBCON (*(volatile unsigned *)0x56000010) #define rGPBDAT (*(volatile unsigned *)0x56000014) #define rGPBUP (*(volatile unsigned *)0x56000018) #define rGPGCON (*(volatile unsigned *)0x56000060) #define rGPGDAT (*(volatile unsigned *)0x56000064) #define rGPGUP (*(volatile unsigned *)0x56000068) //设置点亮led #define LED1_ON ~(1<<5) #define LED2_ON ~(1<<6) #define LED3_ON ~(1<<7) #define LED4_ON ~(1<<8) #define LEDS_ON (LED1_ON & LED2_ON & LED3_ON & LED4_ON) //shut out beep #define BEEP_OFF ~(1<<0) //set led light #define LED1_OFF (1<<5) #define LED2_OFF (1<<6) #define LED3_OFF (1<<7) #define LED4_OFF (1<<8) #define LEDS_OFF (LED1_OFF & LED2_OFF &LED3_OFF & LED4_OFF) //start beep #define BEEP_ON (1<<0) #define KEY1_ON (1<<0) #define KEY2_ON (1<<3) #define KEY3_ON (1<<5) #define KEY4_ON (1<<6) #define KEY5_ON (1<<7) #define KEY6_ON (1<<11) void delay(int times); //将按键的状态设置为输入状态 即"00" void key_init(void) { rGPBCON &= ~((3<<0) | (3<<6) | (3<<10) | (3<<12) | (3<<14) | (3<<22)); } //将led的状态设置为输出状态 即“01” void led_init(void) { rGPBCON &= ~((3<<10) | (3<<12) | (3<<14) | (3<<16)); rGPBCON |= (1<<10 | (1<<12) | (1<<14) | (1<<16)); } //将beep的状态设置为输出状态 即“01” void beep_init(void) { rGPBCON &= ~(3<<0); rGPBCON |= (1<<0); } void delay(int times) { int i; for(;times>0;times--) for(i=0;i<10000;i++); } void Main(void) { led_init(); key_init(); beep_init(); rGPBDAT |= LEDS_OFF; while(1) { rGPBDAT &= BEEP_OFF; if(!(rGPGDAT & KEY1_ON)) { rGPBDAT |=(LEDS_OFF |BEEP_ON); rGPBDAT &=LED1_ON; delay(1); } if(!(rGPGDAT & KEY2_ON)) { rGPBDAT |=(LEDS_OFF |BEEP_ON); rGPBDAT &=LED2_ON; delay(1); } if(!(rGPGDAT & KEY3_ON)) { rGPBDAT |=(LEDS_OFF |BEEP_ON); rGPBDAT &=LED3_ON; delay(1); } if(!(rGPGDAT & KEY4_ON)) { rGPBDAT |=(LEDS_OFF |BEEP_ON); rGPBDAT &=LED4_ON; delay(1); } if(!(rGPGDAT & KEY5_ON)) { rGPBDAT |=(LEDS_OFF |BEEP_ON); rGPBDAT &=LEDS_ON; delay(1); } if(!(rGPGDAT & KEY6_ON)) { rGPBDAT |=(LEDS_OFF |BEEP_ON); delay(1); } } }
gongdezhi1990
2012-11-29
打赏
举报
回复
key_led_beep.s IMPORT Main AREA Init,CODE,READONLY ENTRY CODE32 START LDR R0,=0x53000000 MOV R1,#0x0 STR R1,[R0] LDR SP,=1024*4 BL Main MAIN_LOOP B MAIN_LOOP END
Error:
L6218E
:
Undefined
symbol
delay-init (
ref
e
rred
from
main
.o
这是我们需要添加的含有delay_init函数的源文件
STM32新手常见的一个
错误
解决
本文介绍了新入手STM32时常遇到的一个
错误
...\OutProj\test.axf: Error:
L6218E
:
Undefined
symbol
SystemInit (
ref
e
rred
from startup_stm32f10x_md.o).的解决方法。
STM32调试问题解决办法
在stm32调试过程中会遇到各种问题困扰我们,但是此文档给出了实际中最易于解决问题的办法,非常方便。
acpi控制笔记本风扇转速
笔记本的风扇控制 ---------------------------------------- 09 November 2006. Summary of changes for version 20061109: 1) ACPI CA Core Subsystem: Optimized the Load ASL operator in the case where the source operand is an operation region. Simply map the operation region memory, instead of performing a bytewise read. (Region must be of type SystemMemory, see below.) Fixed the Load ASL operator for the case where the source operand is a region field. A buffer object is also allowed as the source operand. BZ 480 Fixed a problem where the Load ASL operator allowed the source operand to be an operation region of any type. It is now restricted to regions of type SystemMemory, as per the ACPI specification. BZ 481 Additional cleanup and optimizations for the new Table Manager code. AcpiEnable will now fail if all of the required ACPI tables are not loaded (FADT, FACS, DSDT). BZ 477 Added #pragma pack(8/4) to acobject.h to ensure that the structures in this header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been manually optimized to be aligned and will not work if it is byte-packed. Example Code and Data Size: These are the sizes for the OS- independent acpica.lib produced by the Microsoft Visual C++ 6.0 32- bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total Debug Version: 155.4K Code, 63.1K Data, 218.5K Total Current Release: Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 2) iASL Compiler/Disassembler and Tools: Fixed a problem where the presence of the _OSI predefined control method within complex expressions could cause an internal compiler error. AcpiExec: Implemented full region support for multiple address spaces. SpaceId is now part of the REGION object. BZ 429 ---------------------------------------- 11 Oc
XXX.axf: Error:
L6218E
:
Undefined
symbol
xxx (
ref
e
rred
from xxxx.o).
MKD 报错: linking... LCD.axf: Error:
L6218E
:
Undefined
symbol
EnZK (
ref
e
rred
from ht128x64.o). LCD.axf: Error:
L6218E
:
Undefined
symbol
GetFlashCnBuf (
ref
e
rred
from ht128x64.o). 解析:
Undefined
sy
汇编语言
21,458
社区成员
41,603
社区内容
发帖
与我相关
我的任务
汇编语言
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
复制链接
扫一扫
分享
社区描述
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章