FLASH_DRV_ProgramSection

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FLASH_DRV_ProgramSection

1,518件の閲覧回数
814420552
Contributor III

hello,

when i set FlexSAM to traditional SRAM and erase all flash memory, SRAM boot and when call the following code, why the address 0x6000 is always 0xFFFFFFFF?

whether is it wrong way to use the function FLASH_DRV_ProgramSection?

I expected 1024 data can be write to flash memory by call function FLASH_DRV_ProgramSection.

for(i= 0; i< 1024; i++)
{
*(uint8_t *)(0x14000000 + i) = sourceBuffer[i % 255];

}
ret = FLASH_DRV_ProgramSection(&flashSSDConfig, 0x6000, 1024);

wish your help

0 件の賞賛
返信
1 返信

1,471件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello Kui Wu,


If you look at the description of this command it explains the previous steps you need to do before calling this command:

 

pastedImage_2.png

 

Also, remember that the sector size is 2KB.

Best Regards,
Alexis Andalon

0 件の賞賛
返信