Part Number:LAUNCHXL-F2800137Other Parts Discussed in Thread:C2000WARE
修改cmd文件,如下所示,会跳转不到APP地址,
MEMORY {BEGIN: origin = 0x00080000, length = 0x00000002BOOT_RSVD: origin = 0x00000002, length = 0x00000126RAMM0: origin = 0x00000128, length = 0x000002D8RAMM1: origin = 0x00000400, length = 0x000003F8// RAMM1_RSVD: origin = 0x000007F8, length = 0x00000008 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */RAMLS0: origin = 0x00008000, length = 0x00002000RAMLS1: origin = 0x0000A000, length = 0x00001FF8// RAMLS1_RSVD: origin = 0x0000BFF8, length = 0x00000008 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */RESET: origin = 0x003FFFC0, length = 0x00000002/* Flash sectors *///FLASH_FLAG : origin = 0x081C00, length = 0X4 /* on-chip Flash */FLASHIDFLAG : origin = 0x081C04, length = 0x4 /* on-chip Flash *///USER_FLASH : origin = 0x081C08, length = 0X3F8 /* on-chip Flash */FLASH_APP : origin = 0x082002, length = 0xDFFE//, fill=0xFFFF /* on-chip Flash */ //FLASH_BANK0_SEC_0_7: origin = 0x080002, length = 0x1FFE /* on-chip Flash */ //FLASH_BANK0_SEC_8_15: origin = 0x082000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_16_23: origin = 0x084000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_24_31: origin = 0x086000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_32_39: origin = 0x088000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_40_47: origin = 0x08A000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_48_55: origin = 0x08C000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_56_63: origin = 0x08E000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_64_71: origin = 0x090000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_72_79: origin = 0x092000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_80_87: origin = 0x094000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_88_95: origin = 0x096000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_96_103 : origin = 0x098000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_104_111 : origin = 0x09A000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_112_119 : origin = 0x09C000, length = 0x2000 /* on-chip Flash */ //FLASH_BANK0_SEC_120_127 : origin = 0x09E000, length = 0x1FF0 /* on-chip Flash */// FLASH_BANK0_SEC_127_RSVD : origin = 0x0A0FF0, length = 0x0010 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */ } SECTIONS {codestart: > BEGINcodeclearram: > FLASH_APP.text: > FLASH_APP, ALIGN(8).cinit: > FLASH_APP, ALIGN(8).switch: > FLASH_APP, ALIGN(8).reset: > RESET, TYPE = DSECT /* not used, */.stack: > RAMM1 #if defined(__TI_EABI__).bss: > RAMLS0.bss:output: > RAMLS0.init_array: >> FLASH_APP, ALIGN(8).const: >> FLASH_APP, ALIGN(8).data: > RAMLS0.sysmem: > RAMLS0.bss:cio: > RAMLS0 #else.pinit: >> FLASH_APP, ALIGN(8).ebss: > RAMLS0.econst: >> FLASH_APP, ALIGN(8).esysmem: > RAMLS0.cio: > RAMLS0 #endif #if defined(__TI_EABI__).TI.ramfunc: LOAD = FLASH_APP,RUN = RAMLS0,LOAD_START(RamfuncsLoadStart),LOAD_SIZE(RamfuncsLoadSize),LOAD_END(RamfuncsLoadEnd),RUN_START(RamfuncsRunStart),RUN_SIZE(RamfuncsRunSize),RUN_END(RamfuncsRunEnd),ALIGN(8) #else.TI.ramfunc: LOAD = FLASH_APP,RUN = RAMLS0,LOAD_START(_RamfuncsLoadStart),LOAD_SIZE(_RamfuncsLoadSize),LOAD_END(_RamfuncsLoadEnd),RUN_START(_RamfuncsRunStart),RUN_SIZE(_RamfuncsRunSize),RUN_END(_RamfuncsRunEnd),ALIGN(8) #endifIDFLAG: > FLASHIDFLAGDataBufferSection : > RAMLS1, ALIGN(2)/* Allocate IQ math areas: */IQmath: > FLASH_APP, ALIGN(8)IQmathTables: > FLASH_APP, ALIGN(8) }
通过这个跳转,
会进入这个中断里面
Ben Qin:
你好,bootloader的例程你可以下载C2000ware,然后到下面的位置查看:
C:\ti\c2000\C2000Ware_5_01_00_00\libraries\boot_rom\f280013x
,
user6003431:
你好,该目录找不到工程文件,只有未组织好的源文件和Lib文件。能提供工程Demo吗?
,
Ben Qin:
代码在这里:
C2000Ware_5_01_00_00\libraries\boot_rom\f280013x\revb\rom_sources\F280013x_ROM\bootROM\source
是的,这里没有工程的,只有C代码文件以及相关的库文件和cmd文件。需要您自己来新建工程。
还有新问题的话请重新发帖来提问,谢谢
,
user6003431:
很奇怪,不能发表新问题,每次发新问题都是进入个人资料完善,所有的项目都填写了,并且提交了,提示成功。
但就是不能发新问题。
,
Ben Qin:
应该是网站的问题,可能后台没刷新数据,建议可以过几个小时再试试。