K24 Cannot write to last flash sector

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

K24 Cannot write to last flash sector

544 Views
noperator
Contributor I

Hi,

I am using the IFsh PEx component to write to flash on a MK24FN1M0VLL12. It has worked fine for storing configuration data and reprogramming parts of the flash, but it's not able to write to the last flash sector (Address 0xFF000 - 0xFFFFF). I have tried various routines: IFsh1_SetLongFlash and IFsh1_SetBlockFlash. They do not return any error, and no flash protection is enabled. I am able to manually modify the memory with GDB and J-flash, so I'm certain that it's not protected.

What could be causing this?

Labels (1)
0 Kudos
2 Replies

483 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi Ivan,

K24 shouldn't have this kind of problem. You can use driver example in K24 SDK to check it.

May I ask what is IFsh?

Regards,

Jing

0 Kudos

483 Views
noperator
Contributor I

Looks like it was my mistake actually. Some bad code caused me to believe that the flash was not being written, and after examining the flash contents with Eclipse's memory viewer I saw that it was indeed not being written. Turns out that the memory viewers in Eclipse don't work well on flash memory and tend not to update. Using an external viewer I'm able to see the changes.

0 Kudos