On-chip Flash memory JN5168

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

On-chip Flash memory JN5168

2,376件の閲覧回数
gibish
Contributor II

Hello!

 

I want to record my data on on-chip Flash memory JN5168.

Initialize memory

bAHI_FlashInit(E_FL_CHIP_INTERNAL, NULL);

When I try to erase two last sectors bAHI_FlashEraseSector(6) and bAHI_FlashEraseSector(7), I get TRUE.

But when I try to record data bAHI_FullFlashProgram(addrTemp, 2, &stepData); – I always get FALSE.

As addrTemp I tried addresses in range 0x0–0xFFFFFFFF with step 0x8000.

 

Is it the possibility to record user data on on-chip Flash memory JN5168?

 

Thank in advance.

2 返答(返信)

2,196件の閲覧回数
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Igor,

Please look at the parameter.

Parameters

  • u32Addr Address offset from start of Flash memory of first byte to be programmed (must be on a 16-byte boundary)
  • u16Len Number of bytes to be programmed (must be a multiple of 16 up to 0x8000)
  • *pu8Data Pointer to start of data block to be written to Flash memory

bAHI_FullFlashProgram(addrTemp, 2, &stepData)

Regards,

Mario

2,196件の閲覧回数
gibish
Contributor II

Thanks Mario, it seems to work :smileyhappy: