TI中文支持网
TI专业的中文技术问题搜集分享网站

f28027在CCS5.2上加密解密的问题

TI的FA工作人员你好,请问下28027在CCS5.2上加密成功,然后重新上电用XDS100-V02链接不上,试了6块板都是一样的效果,请问是什么原因?跟CMD文件的配置有没有关联?

/*###########################################################################
//
// FILE: F28016.cmd
//
// TITLE: Linker Command File For F28016 Device
//
//#########################################################################*/

MEMORY
{
PAGE 0: /* Program Memory */
/*RAML01 : origin = 0x008800, length = 0x000800 /* Part of on-chip RAM block L0, 2k*16*/
OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP, 1k*16*/
FLASH : origin = 0x3F4000, length = 0x003F80 /* on-chip FLASH, 16k*16*/
CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASH. Program with all 0x0000 when CSM is in use. */
/*BEGIN : origin = 0x000000, length = 0x000002 */
BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASH. Used for "boot to Flash" bootloader mode. */
CSM_PWL : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASH. CSM password locations in FLASH */

ROM : origin = 0x3FF000, length = 0x000FC0 /* Boot ROM, 4k*16*/
RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */
VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */
PRAML0 : origin = 0x008800, length = 0x000800
PAGE 1 : /* Data Memory */

/*BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */
RAMM0 : origin = 0x000000, length = 0x000400 /* on-chip RAM block M1 */
RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */

//DRAML0 : origin = 0x008900, length = 0x000700
// PAGE 1: /* Data Memory */

DEV_EMU : origin = 0x000880, length = 0x000180 /* device emulation registers */
FLASH_REGS : origin = 0x000A80, length = 0x000060 /* FLASH registers */
CSM : origin = 0x000AE0, length = 0x000010 /* code security module registers */

ADC_RESULT : origin = 0x000B00, length = 0x000020 /* ADC Results register */

CPU_TIMER0 : origin = 0x000C00, length = 0x000008 /* CPU Timer0 registers */
CPU_TIMER1 : origin = 0x000C08, length = 0x000008 /* CPU Timer0 registers (CPU Timer1 & Timer2 reserved TI use)*/
CPU_TIMER2 : origin = 0x000C10, length = 0x000008 /* CPU Timer0 registers (CPU Timer1 & Timer2 reserved TI use)*/

PIE_CTRL : origin = 0x000CE0, length = 0x000020 /* PIE control registers */
PIE_VECT : origin = 0x000D00, length = 0x000100 /* PIE Vector Table */

COMP1 : origin = 0x006400, length = 0x000020 /* Comparator 1 registers */
COMP2 : origin = 0x006420, length = 0x000020 /* Comparator 2 registers */

EPWM1 : origin = 0x006800, length = 0x000040 /* Enhanced PWM 1 registers */
EPWM2 : origin = 0x006840, length = 0x000040 /* Enhanced PWM 2 registers */
EPWM3 : origin = 0x006880, length = 0x000040 /* Enhanced PWM 3 registers */
EPWM4 : origin = 0x0068C0, length = 0x000040 /* Enhanced PWM 4 registers */

ECAP1 : origin = 0x006A00, length = 0x000020 /* Enhanced Capture 1 registers */

GPIOCTRL : origin = 0x006F80, length = 0x000040 /* GPIO control registers */
GPIODAT : origin = 0x006FC0, length = 0x000020 /* GPIO data registers */
GPIOINT : origin = 0x006FE0, length = 0x000020 /* GPIO interrupt/LPM registers */

SYSTEM : origin = 0x007010, length = 0x000020 /* System control registers */

SPIA : origin = 0x007040, length = 0x000010 /* SPI-A registers */

SCIA : origin = 0x007050, length = 0x000010 /* SCI-A registers */

NMIINTRUPT : origin = 0x007060, length = 0x000010 /* NMI Watchdog Interrupt Registers */
XINTRUPT : origin = 0x007070, length = 0x000010 /* external interrupt registers */

ADC : origin = 0x007100, length = 0x000080 /* ADC registers */

I2CA : origin = 0x007900, length = 0x000040 /* I2C-A registers */
CSM_PWL : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations. */

PARTID : origin = 0x3D7FFF, length = 0x000001 /* Part ID register location */
}

/* Allocate sections to memory blocks.*/

SECTIONS
{
.cinit : > FLASH PAGE = 0
.pinit : > FLASH PAGE = 0
.text : > FLASH PAGE = 0
codestart : > BEGIN PAGE = 0
InitFlash : LOAD = FLASH,
RUN = PRAML0,
LOAD_START(_InitFlashLoadStart),
LOAD_END(_InitFlashLoadEnd),
RUN_START(_InitFlashRunStart),
PAGE = 0

Flash2Ram : LOAD = FLASH,
RUN = PRAML0,
LOAD_START(_Flash2RamLoadStart),
LOAD_END(_Flash2RamLoadEnd),
RUN_START(_Flash2RamRunStart),
PAGE = 0

csmpasswds : > CSM_PWL PAGE = 0
csm_rsvd : > CSM_RSVD PAGE = 0
CsmPwlFile : > CSM_PWL PAGE = 0

/* Initalized sections go in Flash */
/* For SDFlash to program these, they must be allocated to page 0 */
.econst : > FLASH PAGE = 0
.const : > FLASH PAGE = 0
.switch : > FLASH PAGE = 0

/* Allocate IQ math areas: */
IQmath : > FLASH PAGE = 0 /* Math Code */
IQmathTables : > ROM PAGE = 0, TYPE = NOLOAD /* Math Tables In ROM */

.reset : > RESET, PAGE = 0, TYPE = DSECT
vectors : > VECTORS PAGE = 0, TYPE = DSECT

/* Allocate uninitalized data sections: */
.stack : > RAMM0, PAGE = 1

.ebss : > RAMM1, PAGE = 1

//.econst : > DRAML0, PAGE = 1

.esysmem : > RAMM1, PAGE = 1
//.WaveRecord : > RAML00 PAGE = 1

PieVectTableFile : > PIE_VECT, PAGE = 1

/*** Peripheral Frame 0 Register Structures ***/
DevEmuRegsFile : > DEV_EMU, PAGE = 1
FlashRegsFile : > FLASH_REGS, PAGE = 1
CsmRegsFile : > CSM, PAGE = 1
AdcResultFile : > ADC_RESULT, PAGE = 1
CpuTimer0RegsFile : > CPU_TIMER0, PAGE = 1
CpuTimer1RegsFile : > CPU_TIMER1, PAGE = 1
CpuTimer2RegsFile : > CPU_TIMER2, PAGE = 1
PieCtrlRegsFile : > PIE_CTRL, PAGE = 1

/*** Peripheral Frame 1 Register Structures ***/
SysCtrlRegsFile : > SYSTEM, PAGE = 1
SpiaRegsFile : > SPIA, PAGE = 1
SciaRegsFile : > SCIA, PAGE = 1
XIntruptRegsFile : > XINTRUPT, PAGE = 1
AdcRegsFile : > ADC, PAGE = 1
//SpibRegsFile : > SPIB, PAGE = 1
//ScibRegsFile : > SCIB, PAGE = 1
//SpicRegsFile : > SPIC, PAGE = 1
//SpidRegsFile : > SPID, PAGE = 1
//I2caRegsFile : > EEPROMA, PAGE = 1

EPwm1RegsFile : > EPWM1 PAGE = 1
EPwm2RegsFile : > EPWM2 PAGE = 1
EPwm3RegsFile : > EPWM3 PAGE = 1
EPwm4RegsFile : > EPWM4 PAGE = 1
//EPwm5RegsFile : > EPWM5 PAGE = 1
//EPwm6RegsFile : > EPWM6 PAGE = 1

ECap1RegsFile : > ECAP1 PAGE = 1
//ECap2RegsFile : > ECAP2 PAGE = 1
//ECap3RegsFile : > ECAP3 PAGE = 1
//ECap4RegsFile : > ECAP4 PAGE = 1

//EQep1RegsFile : > EQEP1 PAGE = 1
//EQep2RegsFile : > EQEP2 PAGE = 1

GpioCtrlRegsFile : > GPIOCTRL PAGE = 1
GpioDataRegsFile : > GPIODAT PAGE = 1
GpioIntRegsFile : > GPIOINT PAGE = 1

}

Hank Zhao:

你好,你连接的时候有没有在debug configuration中将解密的密码写上。

TI的FA工作人员你好,请问下28027在CCS5.2上加密成功,然后重新上电用XDS100-V02链接不上,试了6块板都是一样的效果,请问是什么原因?跟CMD文件的配置有没有关联?

/*###########################################################################
//
// FILE: F28016.cmd
//
// TITLE: Linker Command File For F28016 Device
//
//#########################################################################*/

MEMORY
{
PAGE 0: /* Program Memory */
/*RAML01 : origin = 0x008800, length = 0x000800 /* Part of on-chip RAM block L0, 2k*16*/
OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP, 1k*16*/
FLASH : origin = 0x3F4000, length = 0x003F80 /* on-chip FLASH, 16k*16*/
CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASH. Program with all 0x0000 when CSM is in use. */
/*BEGIN : origin = 0x000000, length = 0x000002 */
BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASH. Used for "boot to Flash" bootloader mode. */
CSM_PWL : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASH. CSM password locations in FLASH */

ROM : origin = 0x3FF000, length = 0x000FC0 /* Boot ROM, 4k*16*/
RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */
VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */
PRAML0 : origin = 0x008800, length = 0x000800
PAGE 1 : /* Data Memory */

/*BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */
RAMM0 : origin = 0x000000, length = 0x000400 /* on-chip RAM block M1 */
RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */

//DRAML0 : origin = 0x008900, length = 0x000700
// PAGE 1: /* Data Memory */

DEV_EMU : origin = 0x000880, length = 0x000180 /* device emulation registers */
FLASH_REGS : origin = 0x000A80, length = 0x000060 /* FLASH registers */
CSM : origin = 0x000AE0, length = 0x000010 /* code security module registers */

ADC_RESULT : origin = 0x000B00, length = 0x000020 /* ADC Results register */

CPU_TIMER0 : origin = 0x000C00, length = 0x000008 /* CPU Timer0 registers */
CPU_TIMER1 : origin = 0x000C08, length = 0x000008 /* CPU Timer0 registers (CPU Timer1 & Timer2 reserved TI use)*/
CPU_TIMER2 : origin = 0x000C10, length = 0x000008 /* CPU Timer0 registers (CPU Timer1 & Timer2 reserved TI use)*/

PIE_CTRL : origin = 0x000CE0, length = 0x000020 /* PIE control registers */
PIE_VECT : origin = 0x000D00, length = 0x000100 /* PIE Vector Table */

COMP1 : origin = 0x006400, length = 0x000020 /* Comparator 1 registers */
COMP2 : origin = 0x006420, length = 0x000020 /* Comparator 2 registers */

EPWM1 : origin = 0x006800, length = 0x000040 /* Enhanced PWM 1 registers */
EPWM2 : origin = 0x006840, length = 0x000040 /* Enhanced PWM 2 registers */
EPWM3 : origin = 0x006880, length = 0x000040 /* Enhanced PWM 3 registers */
EPWM4 : origin = 0x0068C0, length = 0x000040 /* Enhanced PWM 4 registers */

ECAP1 : origin = 0x006A00, length = 0x000020 /* Enhanced Capture 1 registers */

GPIOCTRL : origin = 0x006F80, length = 0x000040 /* GPIO control registers */
GPIODAT : origin = 0x006FC0, length = 0x000020 /* GPIO data registers */
GPIOINT : origin = 0x006FE0, length = 0x000020 /* GPIO interrupt/LPM registers */

SYSTEM : origin = 0x007010, length = 0x000020 /* System control registers */

SPIA : origin = 0x007040, length = 0x000010 /* SPI-A registers */

SCIA : origin = 0x007050, length = 0x000010 /* SCI-A registers */

NMIINTRUPT : origin = 0x007060, length = 0x000010 /* NMI Watchdog Interrupt Registers */
XINTRUPT : origin = 0x007070, length = 0x000010 /* external interrupt registers */

ADC : origin = 0x007100, length = 0x000080 /* ADC registers */

I2CA : origin = 0x007900, length = 0x000040 /* I2C-A registers */
CSM_PWL : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations. */

PARTID : origin = 0x3D7FFF, length = 0x000001 /* Part ID register location */
}

/* Allocate sections to memory blocks.*/

SECTIONS
{
.cinit : > FLASH PAGE = 0
.pinit : > FLASH PAGE = 0
.text : > FLASH PAGE = 0
codestart : > BEGIN PAGE = 0
InitFlash : LOAD = FLASH,
RUN = PRAML0,
LOAD_START(_InitFlashLoadStart),
LOAD_END(_InitFlashLoadEnd),
RUN_START(_InitFlashRunStart),
PAGE = 0

Flash2Ram : LOAD = FLASH,
RUN = PRAML0,
LOAD_START(_Flash2RamLoadStart),
LOAD_END(_Flash2RamLoadEnd),
RUN_START(_Flash2RamRunStart),
PAGE = 0

csmpasswds : > CSM_PWL PAGE = 0
csm_rsvd : > CSM_RSVD PAGE = 0
CsmPwlFile : > CSM_PWL PAGE = 0

/* Initalized sections go in Flash */
/* For SDFlash to program these, they must be allocated to page 0 */
.econst : > FLASH PAGE = 0
.const : > FLASH PAGE = 0
.switch : > FLASH PAGE = 0

/* Allocate IQ math areas: */
IQmath : > FLASH PAGE = 0 /* Math Code */
IQmathTables : > ROM PAGE = 0, TYPE = NOLOAD /* Math Tables In ROM */

.reset : > RESET, PAGE = 0, TYPE = DSECT
vectors : > VECTORS PAGE = 0, TYPE = DSECT

/* Allocate uninitalized data sections: */
.stack : > RAMM0, PAGE = 1

.ebss : > RAMM1, PAGE = 1

//.econst : > DRAML0, PAGE = 1

.esysmem : > RAMM1, PAGE = 1
//.WaveRecord : > RAML00 PAGE = 1

PieVectTableFile : > PIE_VECT, PAGE = 1

/*** Peripheral Frame 0 Register Structures ***/
DevEmuRegsFile : > DEV_EMU, PAGE = 1
FlashRegsFile : > FLASH_REGS, PAGE = 1
CsmRegsFile : > CSM, PAGE = 1
AdcResultFile : > ADC_RESULT, PAGE = 1
CpuTimer0RegsFile : > CPU_TIMER0, PAGE = 1
CpuTimer1RegsFile : > CPU_TIMER1, PAGE = 1
CpuTimer2RegsFile : > CPU_TIMER2, PAGE = 1
PieCtrlRegsFile : > PIE_CTRL, PAGE = 1

/*** Peripheral Frame 1 Register Structures ***/
SysCtrlRegsFile : > SYSTEM, PAGE = 1
SpiaRegsFile : > SPIA, PAGE = 1
SciaRegsFile : > SCIA, PAGE = 1
XIntruptRegsFile : > XINTRUPT, PAGE = 1
AdcRegsFile : > ADC, PAGE = 1
//SpibRegsFile : > SPIB, PAGE = 1
//ScibRegsFile : > SCIB, PAGE = 1
//SpicRegsFile : > SPIC, PAGE = 1
//SpidRegsFile : > SPID, PAGE = 1
//I2caRegsFile : > EEPROMA, PAGE = 1

EPwm1RegsFile : > EPWM1 PAGE = 1
EPwm2RegsFile : > EPWM2 PAGE = 1
EPwm3RegsFile : > EPWM3 PAGE = 1
EPwm4RegsFile : > EPWM4 PAGE = 1
//EPwm5RegsFile : > EPWM5 PAGE = 1
//EPwm6RegsFile : > EPWM6 PAGE = 1

ECap1RegsFile : > ECAP1 PAGE = 1
//ECap2RegsFile : > ECAP2 PAGE = 1
//ECap3RegsFile : > ECAP3 PAGE = 1
//ECap4RegsFile : > ECAP4 PAGE = 1

//EQep1RegsFile : > EQEP1 PAGE = 1
//EQep2RegsFile : > EQEP2 PAGE = 1

GpioCtrlRegsFile : > GPIOCTRL PAGE = 1
GpioDataRegsFile : > GPIODAT PAGE = 1
GpioIntRegsFile : > GPIOINT PAGE = 1

}

user3882023:

回复 Hank Zhao:

密码区里加了正确的密码,后来找到原因了,是因为仿真器的那几根线没有接下来电阻,下载的时候正常,解码的时候链接错误。接了下拉电阻就可以正常的加密解密。

TI的FA工作人员你好,请问下28027在CCS5.2上加密成功,然后重新上电用XDS100-V02链接不上,试了6块板都是一样的效果,请问是什么原因?跟CMD文件的配置有没有关联?

/*###########################################################################
//
// FILE: F28016.cmd
//
// TITLE: Linker Command File For F28016 Device
//
//#########################################################################*/

MEMORY
{
PAGE 0: /* Program Memory */
/*RAML01 : origin = 0x008800, length = 0x000800 /* Part of on-chip RAM block L0, 2k*16*/
OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP, 1k*16*/
FLASH : origin = 0x3F4000, length = 0x003F80 /* on-chip FLASH, 16k*16*/
CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASH. Program with all 0x0000 when CSM is in use. */
/*BEGIN : origin = 0x000000, length = 0x000002 */
BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASH. Used for "boot to Flash" bootloader mode. */
CSM_PWL : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASH. CSM password locations in FLASH */

ROM : origin = 0x3FF000, length = 0x000FC0 /* Boot ROM, 4k*16*/
RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */
VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */
PRAML0 : origin = 0x008800, length = 0x000800
PAGE 1 : /* Data Memory */

/*BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */
RAMM0 : origin = 0x000000, length = 0x000400 /* on-chip RAM block M1 */
RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */

//DRAML0 : origin = 0x008900, length = 0x000700
// PAGE 1: /* Data Memory */

DEV_EMU : origin = 0x000880, length = 0x000180 /* device emulation registers */
FLASH_REGS : origin = 0x000A80, length = 0x000060 /* FLASH registers */
CSM : origin = 0x000AE0, length = 0x000010 /* code security module registers */

ADC_RESULT : origin = 0x000B00, length = 0x000020 /* ADC Results register */

CPU_TIMER0 : origin = 0x000C00, length = 0x000008 /* CPU Timer0 registers */
CPU_TIMER1 : origin = 0x000C08, length = 0x000008 /* CPU Timer0 registers (CPU Timer1 & Timer2 reserved TI use)*/
CPU_TIMER2 : origin = 0x000C10, length = 0x000008 /* CPU Timer0 registers (CPU Timer1 & Timer2 reserved TI use)*/

PIE_CTRL : origin = 0x000CE0, length = 0x000020 /* PIE control registers */
PIE_VECT : origin = 0x000D00, length = 0x000100 /* PIE Vector Table */

COMP1 : origin = 0x006400, length = 0x000020 /* Comparator 1 registers */
COMP2 : origin = 0x006420, length = 0x000020 /* Comparator 2 registers */

EPWM1 : origin = 0x006800, length = 0x000040 /* Enhanced PWM 1 registers */
EPWM2 : origin = 0x006840, length = 0x000040 /* Enhanced PWM 2 registers */
EPWM3 : origin = 0x006880, length = 0x000040 /* Enhanced PWM 3 registers */
EPWM4 : origin = 0x0068C0, length = 0x000040 /* Enhanced PWM 4 registers */

ECAP1 : origin = 0x006A00, length = 0x000020 /* Enhanced Capture 1 registers */

GPIOCTRL : origin = 0x006F80, length = 0x000040 /* GPIO control registers */
GPIODAT : origin = 0x006FC0, length = 0x000020 /* GPIO data registers */
GPIOINT : origin = 0x006FE0, length = 0x000020 /* GPIO interrupt/LPM registers */

SYSTEM : origin = 0x007010, length = 0x000020 /* System control registers */

SPIA : origin = 0x007040, length = 0x000010 /* SPI-A registers */

SCIA : origin = 0x007050, length = 0x000010 /* SCI-A registers */

NMIINTRUPT : origin = 0x007060, length = 0x000010 /* NMI Watchdog Interrupt Registers */
XINTRUPT : origin = 0x007070, length = 0x000010 /* external interrupt registers */

ADC : origin = 0x007100, length = 0x000080 /* ADC registers */

I2CA : origin = 0x007900, length = 0x000040 /* I2C-A registers */
CSM_PWL : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations. */

PARTID : origin = 0x3D7FFF, length = 0x000001 /* Part ID register location */
}

/* Allocate sections to memory blocks.*/

SECTIONS
{
.cinit : > FLASH PAGE = 0
.pinit : > FLASH PAGE = 0
.text : > FLASH PAGE = 0
codestart : > BEGIN PAGE = 0
InitFlash : LOAD = FLASH,
RUN = PRAML0,
LOAD_START(_InitFlashLoadStart),
LOAD_END(_InitFlashLoadEnd),
RUN_START(_InitFlashRunStart),
PAGE = 0

Flash2Ram : LOAD = FLASH,
RUN = PRAML0,
LOAD_START(_Flash2RamLoadStart),
LOAD_END(_Flash2RamLoadEnd),
RUN_START(_Flash2RamRunStart),
PAGE = 0

csmpasswds : > CSM_PWL PAGE = 0
csm_rsvd : > CSM_RSVD PAGE = 0
CsmPwlFile : > CSM_PWL PAGE = 0

/* Initalized sections go in Flash */
/* For SDFlash to program these, they must be allocated to page 0 */
.econst : > FLASH PAGE = 0
.const : > FLASH PAGE = 0
.switch : > FLASH PAGE = 0

/* Allocate IQ math areas: */
IQmath : > FLASH PAGE = 0 /* Math Code */
IQmathTables : > ROM PAGE = 0, TYPE = NOLOAD /* Math Tables In ROM */

.reset : > RESET, PAGE = 0, TYPE = DSECT
vectors : > VECTORS PAGE = 0, TYPE = DSECT

/* Allocate uninitalized data sections: */
.stack : > RAMM0, PAGE = 1

.ebss : > RAMM1, PAGE = 1

//.econst : > DRAML0, PAGE = 1

.esysmem : > RAMM1, PAGE = 1
//.WaveRecord : > RAML00 PAGE = 1

PieVectTableFile : > PIE_VECT, PAGE = 1

/*** Peripheral Frame 0 Register Structures ***/
DevEmuRegsFile : > DEV_EMU, PAGE = 1
FlashRegsFile : > FLASH_REGS, PAGE = 1
CsmRegsFile : > CSM, PAGE = 1
AdcResultFile : > ADC_RESULT, PAGE = 1
CpuTimer0RegsFile : > CPU_TIMER0, PAGE = 1
CpuTimer1RegsFile : > CPU_TIMER1, PAGE = 1
CpuTimer2RegsFile : > CPU_TIMER2, PAGE = 1
PieCtrlRegsFile : > PIE_CTRL, PAGE = 1

/*** Peripheral Frame 1 Register Structures ***/
SysCtrlRegsFile : > SYSTEM, PAGE = 1
SpiaRegsFile : > SPIA, PAGE = 1
SciaRegsFile : > SCIA, PAGE = 1
XIntruptRegsFile : > XINTRUPT, PAGE = 1
AdcRegsFile : > ADC, PAGE = 1
//SpibRegsFile : > SPIB, PAGE = 1
//ScibRegsFile : > SCIB, PAGE = 1
//SpicRegsFile : > SPIC, PAGE = 1
//SpidRegsFile : > SPID, PAGE = 1
//I2caRegsFile : > EEPROMA, PAGE = 1

EPwm1RegsFile : > EPWM1 PAGE = 1
EPwm2RegsFile : > EPWM2 PAGE = 1
EPwm3RegsFile : > EPWM3 PAGE = 1
EPwm4RegsFile : > EPWM4 PAGE = 1
//EPwm5RegsFile : > EPWM5 PAGE = 1
//EPwm6RegsFile : > EPWM6 PAGE = 1

ECap1RegsFile : > ECAP1 PAGE = 1
//ECap2RegsFile : > ECAP2 PAGE = 1
//ECap3RegsFile : > ECAP3 PAGE = 1
//ECap4RegsFile : > ECAP4 PAGE = 1

//EQep1RegsFile : > EQEP1 PAGE = 1
//EQep2RegsFile : > EQEP2 PAGE = 1

GpioCtrlRegsFile : > GPIOCTRL PAGE = 1
GpioDataRegsFile : > GPIODAT PAGE = 1
GpioIntRegsFile : > GPIOINT PAGE = 1

}

haobin cao:

回复 user3882023:

mingxin chen

你好,我现在也遇到你以前的问题,请问你是哪几个引脚需要接下拉电阻的呢?万分感谢

TI的FA工作人员你好,请问下28027在CCS5.2上加密成功,然后重新上电用XDS100-V02链接不上,试了6块板都是一样的效果,请问是什么原因?跟CMD文件的配置有没有关联?

/*###########################################################################
//
// FILE: F28016.cmd
//
// TITLE: Linker Command File For F28016 Device
//
//#########################################################################*/

MEMORY
{
PAGE 0: /* Program Memory */
/*RAML01 : origin = 0x008800, length = 0x000800 /* Part of on-chip RAM block L0, 2k*16*/
OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP, 1k*16*/
FLASH : origin = 0x3F4000, length = 0x003F80 /* on-chip FLASH, 16k*16*/
CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASH. Program with all 0x0000 when CSM is in use. */
/*BEGIN : origin = 0x000000, length = 0x000002 */
BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASH. Used for "boot to Flash" bootloader mode. */
CSM_PWL : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASH. CSM password locations in FLASH */

ROM : origin = 0x3FF000, length = 0x000FC0 /* Boot ROM, 4k*16*/
RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */
VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */
PRAML0 : origin = 0x008800, length = 0x000800
PAGE 1 : /* Data Memory */

/*BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */
RAMM0 : origin = 0x000000, length = 0x000400 /* on-chip RAM block M1 */
RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */

//DRAML0 : origin = 0x008900, length = 0x000700
// PAGE 1: /* Data Memory */

DEV_EMU : origin = 0x000880, length = 0x000180 /* device emulation registers */
FLASH_REGS : origin = 0x000A80, length = 0x000060 /* FLASH registers */
CSM : origin = 0x000AE0, length = 0x000010 /* code security module registers */

ADC_RESULT : origin = 0x000B00, length = 0x000020 /* ADC Results register */

CPU_TIMER0 : origin = 0x000C00, length = 0x000008 /* CPU Timer0 registers */
CPU_TIMER1 : origin = 0x000C08, length = 0x000008 /* CPU Timer0 registers (CPU Timer1 & Timer2 reserved TI use)*/
CPU_TIMER2 : origin = 0x000C10, length = 0x000008 /* CPU Timer0 registers (CPU Timer1 & Timer2 reserved TI use)*/

PIE_CTRL : origin = 0x000CE0, length = 0x000020 /* PIE control registers */
PIE_VECT : origin = 0x000D00, length = 0x000100 /* PIE Vector Table */

COMP1 : origin = 0x006400, length = 0x000020 /* Comparator 1 registers */
COMP2 : origin = 0x006420, length = 0x000020 /* Comparator 2 registers */

EPWM1 : origin = 0x006800, length = 0x000040 /* Enhanced PWM 1 registers */
EPWM2 : origin = 0x006840, length = 0x000040 /* Enhanced PWM 2 registers */
EPWM3 : origin = 0x006880, length = 0x000040 /* Enhanced PWM 3 registers */
EPWM4 : origin = 0x0068C0, length = 0x000040 /* Enhanced PWM 4 registers */

ECAP1 : origin = 0x006A00, length = 0x000020 /* Enhanced Capture 1 registers */

GPIOCTRL : origin = 0x006F80, length = 0x000040 /* GPIO control registers */
GPIODAT : origin = 0x006FC0, length = 0x000020 /* GPIO data registers */
GPIOINT : origin = 0x006FE0, length = 0x000020 /* GPIO interrupt/LPM registers */

SYSTEM : origin = 0x007010, length = 0x000020 /* System control registers */

SPIA : origin = 0x007040, length = 0x000010 /* SPI-A registers */

SCIA : origin = 0x007050, length = 0x000010 /* SCI-A registers */

NMIINTRUPT : origin = 0x007060, length = 0x000010 /* NMI Watchdog Interrupt Registers */
XINTRUPT : origin = 0x007070, length = 0x000010 /* external interrupt registers */

ADC : origin = 0x007100, length = 0x000080 /* ADC registers */

I2CA : origin = 0x007900, length = 0x000040 /* I2C-A registers */
CSM_PWL : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations. */

PARTID : origin = 0x3D7FFF, length = 0x000001 /* Part ID register location */
}

/* Allocate sections to memory blocks.*/

SECTIONS
{
.cinit : > FLASH PAGE = 0
.pinit : > FLASH PAGE = 0
.text : > FLASH PAGE = 0
codestart : > BEGIN PAGE = 0
InitFlash : LOAD = FLASH,
RUN = PRAML0,
LOAD_START(_InitFlashLoadStart),
LOAD_END(_InitFlashLoadEnd),
RUN_START(_InitFlashRunStart),
PAGE = 0

Flash2Ram : LOAD = FLASH,
RUN = PRAML0,
LOAD_START(_Flash2RamLoadStart),
LOAD_END(_Flash2RamLoadEnd),
RUN_START(_Flash2RamRunStart),
PAGE = 0

csmpasswds : > CSM_PWL PAGE = 0
csm_rsvd : > CSM_RSVD PAGE = 0
CsmPwlFile : > CSM_PWL PAGE = 0

/* Initalized sections go in Flash */
/* For SDFlash to program these, they must be allocated to page 0 */
.econst : > FLASH PAGE = 0
.const : > FLASH PAGE = 0
.switch : > FLASH PAGE = 0

/* Allocate IQ math areas: */
IQmath : > FLASH PAGE = 0 /* Math Code */
IQmathTables : > ROM PAGE = 0, TYPE = NOLOAD /* Math Tables In ROM */

.reset : > RESET, PAGE = 0, TYPE = DSECT
vectors : > VECTORS PAGE = 0, TYPE = DSECT

/* Allocate uninitalized data sections: */
.stack : > RAMM0, PAGE = 1

.ebss : > RAMM1, PAGE = 1

//.econst : > DRAML0, PAGE = 1

.esysmem : > RAMM1, PAGE = 1
//.WaveRecord : > RAML00 PAGE = 1

PieVectTableFile : > PIE_VECT, PAGE = 1

/*** Peripheral Frame 0 Register Structures ***/
DevEmuRegsFile : > DEV_EMU, PAGE = 1
FlashRegsFile : > FLASH_REGS, PAGE = 1
CsmRegsFile : > CSM, PAGE = 1
AdcResultFile : > ADC_RESULT, PAGE = 1
CpuTimer0RegsFile : > CPU_TIMER0, PAGE = 1
CpuTimer1RegsFile : > CPU_TIMER1, PAGE = 1
CpuTimer2RegsFile : > CPU_TIMER2, PAGE = 1
PieCtrlRegsFile : > PIE_CTRL, PAGE = 1

/*** Peripheral Frame 1 Register Structures ***/
SysCtrlRegsFile : > SYSTEM, PAGE = 1
SpiaRegsFile : > SPIA, PAGE = 1
SciaRegsFile : > SCIA, PAGE = 1
XIntruptRegsFile : > XINTRUPT, PAGE = 1
AdcRegsFile : > ADC, PAGE = 1
//SpibRegsFile : > SPIB, PAGE = 1
//ScibRegsFile : > SCIB, PAGE = 1
//SpicRegsFile : > SPIC, PAGE = 1
//SpidRegsFile : > SPID, PAGE = 1
//I2caRegsFile : > EEPROMA, PAGE = 1

EPwm1RegsFile : > EPWM1 PAGE = 1
EPwm2RegsFile : > EPWM2 PAGE = 1
EPwm3RegsFile : > EPWM3 PAGE = 1
EPwm4RegsFile : > EPWM4 PAGE = 1
//EPwm5RegsFile : > EPWM5 PAGE = 1
//EPwm6RegsFile : > EPWM6 PAGE = 1

ECap1RegsFile : > ECAP1 PAGE = 1
//ECap2RegsFile : > ECAP2 PAGE = 1
//ECap3RegsFile : > ECAP3 PAGE = 1
//ECap4RegsFile : > ECAP4 PAGE = 1

//EQep1RegsFile : > EQEP1 PAGE = 1
//EQep2RegsFile : > EQEP2 PAGE = 1

GpioCtrlRegsFile : > GPIOCTRL PAGE = 1
GpioDataRegsFile : > GPIODAT PAGE = 1
GpioIntRegsFile : > GPIOINT PAGE = 1

}

Young Hu:

回复 haobin cao:

将GPIO34拉低试试!

赞(0)
未经允许不得转载:TI中文支持网 » f28027在CCS5.2上加密解密的问题
分享到: 更多 (0)