110 likes | 347 Views
脉象仪原理及其开发方法. 系统设计思想. CCS 开发方法. COFF 文件格式的理解 中断矢量文件的编写 CMD 文件的编写 主文件的编写( C 语言). .global _c_int0,_c_int1,_c_int2 .sect "vectors“ RSVECT B _c_int0 ;PM 0 Reset Vector 1 INT1 B _c_int1 ;PM 2 Int level 1 4 INT2 B _c_int2 ;PM 4 Int level 2 5
E N D
CCS开发方法 • COFF文件格式的理解 • 中断矢量文件的编写 • CMD文件的编写 • 主文件的编写(C语言)
.global _c_int0,_c_int1,_c_int2 .sect "vectors“ RSVECT B _c_int0 ;PM 0 Reset Vector 1 INT1 B _c_int1 ;PM 2 Int level 1 4 INT2 B _c_int2 ;PM 4 Int level 2 5 INT3 B PHANTOM ;PM 6 Int level 3 6 INT4 B PHANTOM ;PM 8 Int level 4 7 INT5 B PHANTOM ;PM A Int level 5 8 INT6 B PHANTOM ;PM C Int level 6 9 RESERVED B PHANTOM ;PM E (Analysis Int)10 SW_INT8 B PHANTOM ;PM 10 User S/W int SW_INT9 B PHANTOM ;PM 12 User S/W int SW_INT10 B PHANTOM ;PM 14 User S/W int SW_INT11 B PHANTOM ;PM 16 User S/W int SW_INT12 B PHANTOM ;PM 18 User S/W int SW_INT13 B PHANTOM ;PM 1A User S/W int SW_INT14 B PHANTOM ;PM 1C User S/W int SW_INT15 B PHANTOM ;PM 1E User S/W int SW_INT16 B PHANTOM ;PM 20 User S/W int TRAP B PHANTOM ;PM 22 Trap vector NMI B PHANTOM ;PM 24 Non maskable Int3 EMU_TRAP B PHANTOM ;PM 26 Emulator Trap 2 SW_INT20 B PHANTOM ;PM 28 User S/W int SW_INT21 B PHANTOM ;PM 2A User S/W int SW_INT22 B PHANTOM ;PM 2C User S/W int SW_INT23 B PHANTOM ;PM 2E User S/W int ===================================================================== I S R – PHANTOM Description: Dummy ISR, used to trap spurious interrupts. ===================================================================== PHANTOM: B PHANTOM .end
MEMORY { PAGE 0: VECS: origin = 0000h, length = 0040h FLASH: origin = 0044h, length = 7FBCh PAGE 1: B0B1: origin = 0200h, length = 200h SARAM: origin = 0800h, length = 800h } SECTIONS { vectors : { } > VECS PAGE 0 .cinit : { } > FLASH PAGE 0 .text : { } > FLASH PAGE 0 .const : { } > B0B1 PAGE 1 .data : { } > B0B1 PAGE 1 .bss : { } > SARAM PAGE 1 .stack : { } > SARAM PAGE 1 .sysmem : { } > SARAM PAGE 1 }