Hello,
I'm trying to do a bootloader with the micro MPC5744P with GCC . But I have problems when I'm doing the flash erase. I have the program in this flash sections:
/*16 KB low flash memory block 2 (boot location 0) from 0x00F98000 to 0x00F9BFFF*/
/*16 KB low flash memory block 3 (boot location 1) from 0x00F9C000 to 0x00F9FFFF*/
/*64 KB low flash memory block 4 (boot location 2) from 0x00FA0000 to 0x00FAFFFF*/
flash_rchw : org = 0x00F98000, len = 4
cpu0_reset_vec : org = 0x00F98004, len = 4
m_text : org = 0x00F98008, len = 96K - 4 - 4
When i do de flash erase I configure the C55 driver values like this:
block_mpc574xP.h
#define UNLOCK_LOW_BLOCKS 0x0000000E
#define UNLOCK_MID_BLOCKS 0x00000000
#define UNLOCK_HIGH_BLOCKS 0x00000001
#define UNLOCK_FIRST256_BLOCKS 0x00
#define SKIP_IDX_NUM 0x4 /*for bootloader project*/
block_mpc574xp.c
const UINT32 SKIP_BLOCK_IDX[SKIP_IDX_NUM] =
{
0x1, /* BAF block */
0x2, /* bootloader block, Flash low 1 block: address 0x00F98000 to 0x00F9BFFF */
0x3, /* bootloader block, Flash low 2 block: address 0x00F9C000 to 0x00F9CFFF */
0x6 /* bootloader block, Flash high 0 block: address 0x00FA0000 to 0x00FAFFFF */
};
But when I'm doing the flash delete, is always accessing to EER exception_handler.
Thanks