[JN5189] Size of a flash memory page

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

[JN5189] Size of a flash memory page

Jump to solution
340 Views
Johnny9
Contributor II

hello

It seems that the flash page size for the JN5189 is 512 bytes, as defined in the SDK's app_flash.h file with '#define APP_FLASH_PAGE_SIZE 512'.

Is it possible to modify this part to change the unit for writing to flash to 256 bytes?

I tested by changing only APP_FLASH_PAGE_SIZE and it seems to read but not write.

Do I need further modifications?

Is changing the page size not supported originally?

Could you guide me on the best approach to take?

 

Thank you.

Jonny9.

0 Kudos
1 Solution
223 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hi,

 

Thank you for the confirmation.

 

The Page size is something related to the internal flash of the MCU and not should be changed.

 

Regards,

Ricardo

View solution in original post

5 Replies
317 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. Could you please clarify what SDK version are you using?

 

Best Regards,

Ricardo

0 Kudos
297 Views
Johnny9
Contributor II

Hello,

 

I am using version 2.6.10.

 

Best Regards,

Jonny9

0 Kudos
254 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hi,

 

Could you please confirm #define you are using? I could not find it on SDK.

 

Regards,

Ricardo

0 Kudos
241 Views
Johnny9
Contributor II

Hi,

 

I made a mistake.

The name I used for #define was FLASH_PAGE_SIZE, not APP_FLASH_PAGE_SIZE.

For your reference, the base code is 'jn5189dk6_zigbee_ed_rx_on_bm'.

That part is located in 'fsl_flash.h'.

I apologize for any confusion this may have caused.

 

Best Regards,

Jonny9

0 Kudos
224 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hi,

 

Thank you for the confirmation.

 

The Page size is something related to the internal flash of the MCU and not should be changed.

 

Regards,

Ricardo