On-chip Flash memory JN5168

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

On-chip Flash memory JN5168

2,309 次查看
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,129 次查看
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,129 次查看
gibish
Contributor II

Thanks Mario, it seems to work :smileyhappy: