This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1224: Flash Erase by Sector

Part Number: TMS570LS1224

Hi,

I am using SafetyMCU_Bootloader code with small modifications to test boot loading capability on Hercules launch pad(TMS570LS1224) using CAN. Using PCAN adapter and custom PC side application to transfer the data.

When i set start of the application address as 0x00020000, execution get stuck in while loop of function "Fapi_BlockErase" which is looking for FSM status

This happens when it is trying to erase to next sector 0x00040000 as my test application code larger than 0x00020000. When I use previous sector address as a starting point this problem will not come.

Below is my flash sector table 

const SECTORS flash_sector[NUMBEROFSECTORS]=
{
(void *)0x00000000, 0x04000, 0, 0, 0xfff87000,
(void *)0x00004000, 0x04000, 0, 1, 0xfff87000,
(void *)0x00008000, 0x04000, 0, 2, 0xfff87000,
(void *)0x0000C000, 0x04000, 0, 3, 0xfff87000,
(void *)0x00010000, 0x04000, 0, 4, 0xfff87000,
(void *)0x00014000, 0x04000, 0, 5, 0xfff87000,
(void *)0x00018000, 0x08000, 0, 6, 0xfff87000,
(void *)0x00020000, 0x20000, 0, 7, 0xfff87000,
(void *)0x00040000, 0x20000, 0, 8, 0xfff87000,
(void *)0x00060000, 0x20000, 0, 9, 0xfff87000,
(void *)0x00080000, 0x20000, 0, 10, 0xfff87000,
(void *)0x000A0000, 0x20000, 0, 11, 0xfff87000,
(void *)0x000C0000, 0x20000, 0, 12, 0xfff87000,
(void *)0x000E0000, 0x20000, 0, 13, 0xfff87000,
(void *)0x00100000, 0x20000, 0, 14, 0xfff87000,
(void *)0x00120000, 0x20000, 0, 15, 0xfff87000
};