Hi David,
i tried your code but i am not getting whatever data i wrote. i included that for your reference,
destination = flashSSDConfig.PFlashBase + (flashSSDConfig.PFlashSize - 6*FTFx_PSECTOR_SIZE);
for (i = 0; i < BUFFER_SIZE_BYTE; i++)
{
program_buffer[i] = 'A';
}
size = BUFFER_SIZE_BYTE;
ret = FlashProgram(&flashSSDConfig, destination, size, \
program_buffer, g_FlashLaunchCommand);
if (FTFx_OK != ret)
{
ErrorTrap(ret);
}
printf("\n\r\tSuccessfully Programmed and Verified Location 0x%x -> 0x%x", (unsigned int)destination, (unsigned int)(destination + size));
/////////////////////////////////////////////////////////////////////////////////////
/* Read on P-Flash */
*((uint32_t *)&dst) = 0xFA000;;
FlashValueAtFA00 = ((uint32_t *)dst);
FlashValueAtFA04 = ((uint32_t *)dst+4);
printf("\n\rDATA 1=%d",FlashValueAtFA00);
printf("\n\rDATA 2=%d",FlashValueAtFA04);
This printf function i am getting
DATA 1=1024000
DATA 2=1024016
but i wrote "A" character at this address. can you please tell what mistake i did..?
thanks and regards,
sudhakar p