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.

TMS570LC4357 Flash Read Abort Error

Other Parts Discussed in Thread: TMS570LC4357

I want to make boot loader project. So, I try to test Flash Read/Write.

1. Use IC : TMS570LC4357

2. Test Code

uint32_t pre_calculated_crc= 0;
uint32_t firmware_size = 0;

volatile unsigned int oReturnCheck = 0;
volatile uint32_t test_size_data = 0x23143;
volatile uint32_t test_crc_data = 0xA58390;


oReturnCheck = 0;
oReturnCheck = Fapi_BlockErase( 1, 0x00300000, 4);
oReturnCheck = Fapi_BlockErase( 1, 0x00300100, 4);

// Return an error if an access violation occurred.
oReturnCheck = Fapi_BlockProgram( 1, 0x00300000, (unsigned long)&test_size_data, 4);
oReturnCheck = Fapi_BlockProgram( 1, 0x00300100, (unsigned long)&test_crc_data, 4);

if(oReturnCheck)
{
// Indicate that the flash programming failed.
}


Fapi_BlockRead(1, 0x00300000, &firmware_size, 4);
Fapi_BlockRead(1, 0x00300100, &firmware_size, 4);;

3. The Boot Loader map

VECTORS (X) : origin=0x00000000 length=0x00000020
FLASH0 (RX) : origin=0x00000020 length=0x001FFFE0

4. I check the Flash write act very well. But, in the Function(Fapi_BlockRead), Abort is occurred.

I want to know how I can to read flash memory.

Regards,

Minwoo