Saving value to the flash memory on user input on MC56F8...

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

Saving value to the flash memory on user input on MC56F8...

111 Views
sm0khey
Contributor II

Hello! I want to save a value which is from user input to the flash memory. Since i am new to Embedded programming, can someone explain to me the steps and what code/library to use

0 Kudos
3 Replies

79 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Can you tell us the part number you are using?

generally, we  provide the api function to erase/program flash, the api function is saved in flash and copied to program RAM and execute in program RAM.

In detail, if you use Processor Expert(PE), the PE generates the api function to erase/program flash. If the silicon does not support PE, we have example code to erase/program flash in application code.

Hope it can help you

BR

XiangJun Rong

 

0 Kudos

76 Views
sm0khey
Contributor II

Hello! It's MC56F8257, i've tried the API IFlsh, but the processor just stops working

0 Kudos

60 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls try to use the attached code and have a test.

Hope it can help you

BR

XiangJun Rong

0 Kudos