登录 免费注册 首页 | 行业黑名单 | 帮助
维库电子市场网
技术交流 | 电路欣赏 | 工控天地 | 数字广电 | 通信技术 | 电源技术 | 测控之家 | EMC技术 | ARM技术 | EDA技术 | PCB技术 | 嵌入式系统
驱动编程 | 集成电路 | 器件替换 | 模拟技术 | 新手园地 | 单 片 机 | DSP技术 | MCU技术 | IC 设计 | IC 产业 | CAN-bus/DeviceNe

zlg帮一下忙吧!

作者:casino 栏目:ARM技术
zlg帮一下忙吧!
我的tcp试验自己按书上说的就是不行,可是用光盘里的可以通,所以希望zlg的工程师能用lpc2200新模板(因为我对比以上的程序,除了模板生成的项目不同外,源程序一摸一样)帮我做个发给我看看行吗?不要书中所附光盘里的,要另外重新生成的。谢谢  email:casinosun@citiz.net

2楼: >>参与讨论
zlgARM
re:
把你用的startup。s文件粘出来吧。

3楼: >>参与讨论
casino
startup。s
;/****************************************COPYRIGHT (c)**************************************************
;**                               Guangzou ZLG-MCU Development Co.,LTD.
;**                                      graduate school
;**                                 http://www.zlgmcu.com
;**
;**--------------File Info-------------------------------------------------------------------------------
;** File NAME:             Startup.s
;** Last MODIFIED Date:  2004-09-17
;** Last Version:         1.0
;** Descriptions:         The start up codes for LPC2200, including the initializing codes for the entry point of exceptions and the stacks of user tasks.
;**                Every project should have a independent copy of this file for related modifications
;**------------------------------------------------------------------------------------------------------
;** Created by:             Chenmingji
;** Created date:           2004-02-02
;** Version:            1.0
;** Descriptions:         The original version
;**
;**------------------------------------------------------------------------------------------------------
;** MODIFIED by:         Chenmingji
;** MODIFIED date:        2004-09-17
;** Version:            1.01
;** Descriptions:         MODIFIED the bus setting to ADAPT for many common situations
;**
;**------------------------------------------------------------------------------------------------------
;** MODIFIED by:         Chenmingji
;** MODIFIED date:        2004-09-17
;** Version:            1.02
;** Descriptions:         Added codes to SUPPORT the enciphering of the chip
;**
;**------------------------------------------------------------------------------------------------------
;** MODIFIED by:         Chenmingji
;** MODIFIED date:        2004-09-17
;** Version:            1.04
;** Descriptions:         Renewed the template, added codes to SUPPORT more compilers
;**
;**------------------------------------------------------------------------------------------------------
;** MODIFIED by:         
;** MODIFIED date:
;** Version:    
;** Descriptions:
;**
;********************************************************************************************************/

;define the stack size
;定义堆栈的大小
FIQ_STACK_LEGTH         EQU         0
IRQ_STACK_LEGTH         EQU         9*8             ;every layer need 9 bytes stack , permit 8 layer .每层嵌套需要9个字堆栈,允许8层嵌套
ABT_STACK_LEGTH         EQU         0
UND_STACK_LEGTH         EQU         0

NoInt       EQU 0x80

USR32Mode   EQU 0x10
SVC32Mode   EQU 0x13
SYS32Mode   EQU 0x1f
IRQ32Mode   EQU 0x12
FIQ32Mode   EQU 0x11

PINSEL2     EQU 0xE002C014

BCFG0       EQU 0xFFE00000
BCFG1       EQU 0xFFE00004
BCFG2       EQU 0xFFE00008
BCFG3       EQU 0xFFE0000C

    IMPORT __use_no_semihosting_swi
    IMPORT __use_two_region_memory

;The imported LABELS        
;引入的外部标号在这声明
    IMPORT  FIQ_Exception                   ;FAST interrupt exceptions handler 快速中断异常处理程序
    IMPORT  __main                          ;The entry point to the main function C语言主程序入口
    IMPORT  TargetResetInit                 ;initialize the target board 目标板基本初始化
    IMPORT  SoftwareInterrupt

;The emported LABELS        
;给外部使用的标号在这声明
    EXPORT  bottom_of_heap
    EXPORT  bottom_of_Stacks
    EXPORT  top_of_heap
    EXPORT  StackUsr
    
    EXPORT  Reset
    EXPORT  __user_initial_stackheap

    CODE32

    AREA    vectors,CODE,READONLY
        ENTRY
;interrupt vectors
;中断向量表
Reset
        LDR     PC, ResetAddr
        LDR     PC, UndefinedAddr
        LDR     PC, SWI_Addr
        LDR     PC, PrefetchAddr
        LDR     PC, DataAbortAddr
        DCD     0xb9205f80
        LDR     PC, [PC, #-0xff0]
        LDR     PC, FIQ_Addr

ResetAddr           DCD     ResetInit
UndefinedAddr       DCD     Undefined
4楼: >>参与讨论
casino
startup贴出来了
 
5楼: >>参与讨论
zlgarm
re:
请仔细阅读“UDP通信实验”的实验步骤(第6步)。
BCFG3寄存器没有被配置。
        ...
        LDR     R0, =BCFG3
        LDR     R1, =0x10001460
        STR     R1, [R0]
        ...


参与讨论
昵称:
讨论内容:
 
 
相关帖子
zlg7290驱动LED
heap.s文件怎么用?
有没有213x的Keil软件的模板?
向周公求救,我的程序很大,又速度的要求,要在C中调用汇编,可
请问ZLG的技术人员
免费注册为维库电子开发网会员,参与电子工程师社区讨论,点此进入


Copyright © 1998-2006 www.dzsc.com 浙ICP证030469号