On-chip Flash memory JN5168

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

On-chip Flash memory JN5168

801 Views
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 Replies

621 Views
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

621 Views
gibish
Contributor II

Thanks Mario, it seems to work :smileyhappy: