Hi,
using KSDK 1.1.0 flash demo project i tried to write some data on flash but i am getting error response. i dnt know
why. can you give any solution.
in "frdmk64fn1m0vll12" EEPROM is not there..?
here is my code..
TRIED METHOD-1:
uint8_t sudha_data[]="hi";
destination = flashSSDConfig.PFlashBase + PFLASH_IFR;
ret = FlashProgram(&flashSSDConfig, destination, sizeof(sudha_data), sudha_data, g_FlashLaunchCommand);
TRIED METHOD-2:
ret =FlashProgramOnce(&flashSSDConfig,0x1,sudha_data,g_FlashLaunchCommand);
if (FTFx_OK != ret)
{
ErrorTrap(ret);
}
else
{
printf("\n\rsudha ERROR");
}
thanks and regards,
sudhakar p
Hello,
In order to isolate the issue, if you run the flash example code (C:\Freescale\KSDK_1.1.0\demos\flash_demo) without modifications,can you reproduce the issue?or this issue is when you add the write code
Regards
Soledad
hi Soledad,
i am waiting for your reply..
is possible or not.? minimum 2kb data i want to write into internal flash and i want to read.
give some idea. i saw example code also but that one was not working. i mean i am doing some mistake i dnt know exact.
i tried both function
WRITE OPERATION:
1) ret = FlashProgram(&flashSSDConfig, destination, size, program_buffer, g_FlashLaunchCommand);
2)ret = FlashProgramOnce(&flashSSDConfig,0x2,buff_data, g_FlashLaunchCommand);
READ OPERATION:
ret = FlashReadResource(&flashSSDConfig,destination,sudha_data,0x0, g_FlashLaunchCommand);
may be i am doing mistake in "destination address". so can you edit code like 2kb data WRITE and READ from flash..
Thanks and regards,
sudhakar p
Hi soledad,
this issue was after adding flash "WRITE" API function. i want to write 4KB data into flash and again i want to READ that data. can you give solution for this..? could you tell which function i want to use..? can you give simple example code for this...
thanks and regards,
sudhakar p