Part Number: TMS320F2800137
Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
To force this launchpad into SPI boot mode , I added this piece of code in my GEL file ,
hotmenu EMU_BOOT_SPI()
{
*(unsigned long *)0xD00 = 0x5AFFFFFF;
*(unsigned long *)0xD02 = 0x5AFFFFff;
*(unsigned long *)0xD04 = 0xFFFFFF06;
*(unsigned long *)0xD06 = 0xFFFFFFFF;
}
For permanent writing in dcsm
in c file :
#pragma RETAIN(otp_z1_data_1)
#pragma DATA_SECTION(otp_z1_data_1,"dcsm_zsel_z1");
const long otp_z1_data_1 = 0x5AFFFFFF;
#pragma RETAIN(otp_z1_data_2)
#pragma DATA_SECTION(otp_z1_data_2,"dcsm_zsel_z1_2");
const long otp_z1_data_2 = 0xFFFFFF06;
in linker file
MEMORY
{
PAGE 0:
DCSM_ZSEL_Z1_P0: origin = 0x07800C, length = 0x000002
DCSM_ZSEL_Z1_P1: origin = 0x07801C, length = 0x000002
}
SECTIONS
{
dcsm_zsel_z1_1 : > DCSM_ZSEL_Z1_P0, PAGE = 0
dcsm_zsel_z1_2 : > DCSM_ZSEL_Z1_P1, PAGE = 0 }
is this correct?
