1883457_en-US

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

1883457_en-US

1883457_en-US

Writing to Flash memory kills MCU

Hello! I am trying to save a variable, which a user input, to the flash memory. I am using MC56F82... and the IFsh1 library. I disable the events and then erase the block and then write to the flash, but my MCU keeps dying, i have to restart it and flash it again to get it working. Any ideas on how to do it correctly?

Re: Writing to Flash memory kills MCU

Thank you for the help!

Re: Writing to Flash memory kills MCU

Hi,

I attach the code here.

BR

XiangJun Rong


Re: Writing to Flash memory kills MCU

Hi,

This is the flash example code based on CodeWarrior for DSP56800E ver8.x.

Pls refer to it.

Regarding your question, the flash erasing/programming code must be located in flash and copied to p RAM, you have to run the erasing/programming code in  RAM to manipulate the flash.

Hope it can help you

BR

XiangJun Rong

Re: Writing to Flash memory kills MCU

up

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 05:00 PM
Updated by: