Hi,
based in XPC567X, my custom board test BAM CAN App, not run,
loader code length sucess ok, not start App.
pleace you my code resume, see,
Project, CW-5.9, Target-RAM, CPU-5674/5676
LCF: MEMORY{
init: org = 0x40000000, len = 0x00001000
exception_handlers_p0: org = 0x40001000, len = 0x00001000
exception_handlers_p1: org = 0x40002000, len = 0x00001000 //not start
pseudo_rom: org = 0x40003000, len = 0x00005000
internal_ram: org = 0x40008000, len = 0x00008000
heap : org = 0x4002C000, len = 0x00002000
stack : org = 0x4002E000, len = 0x00002000
internal_ram_p1: org = 0x40031000, len = 0x0002B000
heap_p1 : org = 0x4005C000, len = 0x00002000
stack_p1 : org = 0x4005E000, len = 0x00002000
}SECTIONS
{GROUP : {
.init_vle (VLECODE) : {
*(.init)
*(.init_vle)
}
.init : {}
} > init
//----------------------------------
int main(void) {
volatile int i = 0, can_ena=1;
HW_init();
for (;;) {
Delay(500000);
SIU.GPDO[LED1_pin].R ^= 1;
SIU.GPDO[LED2_pin].R ^= 1;
TransmitMsg ();
}} //------------------------------------
void InitSysclk (void) { // sysclock = 180 , xtal 20mhz
FMPLL.ESYNCR2.R = 0x00000002;
FMPLL.ESYNCR1.R = 0x70020026;
while (FMPLL.SYNSR.B.LOCK != 1) {}; /* Wait for FMPLL to LOCK */
FMPLL.ESYNCR2.R = 0x00000001; /* Fsys =180Mhz */
SIU.SYSDIV.R = 0x00002010; /* select PLL for sys clock, bypass clock divider */
}
//-----------------------
void initCAN_A (void) { //--- AF19/AE19
uint8_t i;
CAN_A.MCR.R = 0x5000003F; /* Put in Freeze Mode & enable all 64 message buffers */
CAN_A.CR.R = 0x02810014; // xtal 20mhz
for (i=0; i<64; i++) { CAN_A.BUF[i].CS.B.CODE = 0; }
CAN_A.BUF[0].CS.B.CODE = 8; /* Message Buffer 0 set to TX INACTIVE */
SIU.PCR[83].R = 0x062f; /* MPC5674F: Configure pad as CNTXA, open drain, pull-up */
SIU.PCR[84].R = 0x0500; /* MPC5674F: Configure pad as CNRXA */
CAN_A.MCR.R = 0x0000003F; /* Negate FlexCAN A halt state for 64 MB, AEN=1 */
} //------------------------
convert ram.mot to bin,
send password number ok
send 0x40000000 + (VLE or not)+ Length ok
send 0x13+ data and receiver 03 ok....all file length.
thnkas,
Carlos.