MPC5602B: Timing information needed on setting EHV-bit in FLASH_MCR

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

MPC5602B: Timing information needed on setting EHV-bit in FLASH_MCR

1,192 Views
franzhuber
Contributor I

Hi all,

 

one urgent question about delay/stall of program-execution on first time setting the EHV-bit to initiate erase/write of flash.

 

Following setup of the hardware:

 

- External watchdog with fixed cycle-time of 200ms (can't be changed)

 

Now, on setting the EHV-bit it looks like the processor is going into a "stall" for longer than 200ms leading to a reset by the watchdog.

 

Has anybody else experienced this behaviour and maybe a workaround for this?

 

Kind regards

 

Franz

Labels (1)
0 Kudos
Reply
1 Reply

928 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Updating this old thread to provide the informaiton also to other customers:

Flahs on MPC5602B is composed of single bank. Read-While-Write is not supported. The code must be executed from RAM.

The response for read-while-write is programmable - there's also suport for stall-while-write. So, described problem is caused by code executed from flash while the response is set to stall-while-write.

Solution is to execute the code from RAM. The EHV bit is set immediately, there's no any delay.

0 Kudos
Reply