Trouble w Processor Expert FLASH_LDD Component

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

Trouble w Processor Expert FLASH_LDD Component

2,178 Views
lmg
Contributor III

Using KDS v 3.2.0

Processor is KE02Z32VLD2.

Debugging with P&E Multilink

 

I let PE set the clock frequency to 1MHz. 

I've set up four user memory areas in upper memory:

176381_176381.pngpastedImage_1.png

 

My intent is to store operational data in these areas for safe-keeping upon power-down.

I thought I would start with erasing one block of this memory. Following the example in the "Help on this component" I have the following:

 

176382_176382.pngpastedImage_2.png

 

You can see the breakpoints above. I reach the first one just fine. But when I continue from there, I end up here:

 

176383_176383.pngpastedImage_3.png

 

 . . . as if I stumbled on a Reset or something.

 

I have tried "Safe launch and wait" - with and without "Interruptable wait loop" checked. And I have tried without "Safe launch and wait".

 

Flash protection is set to "No protection"

 

There ARE timer interrupts running while I'm attempting this. Adding __DI(); before calling the FLASH_LDD methods did not seem to help.

 

Any ideas?

 

Thanks.

~LMG

Labels (1)
0 Kudos
Reply
5 Replies

1,930 Views
lmg
Contributor III

Alice,

Thanks for your help.

Just so I'm clear . . you cannot read from FLASH memory while it is being erased or programmed. Correct?

How about the EEPROM? Does that have the same restrictions?

Thanks.

~LMG

0 Kudos
Reply

1,930 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Linden,

- Please share your project , then I  can test on my side.

- Please take screenshots about your these words:

pastedImage_1.png

BR

Alice

0 Kudos
Reply

1,929 Views
lmg
Contributor III

Thanks for the quick reply Alice.

Here is the screen shot:

pastedImage_1.png

I will send the zipped project as a private message.

Thanks.

~LMG

0 Kudos
Reply

1,929 Views
lmg
Contributor III

I've been looking around some more and I've found . . . 

   This discussion:

         Why does KM14 reset when erasing flash? 

   And this seems to work:

pastedImage_1.png

I thought I understood that I could still read FLASH while a different block is being erased, but I guess not(?).

Any suggestions for improvement would be appreciated.

~LMG

0 Kudos
Reply

1,929 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Linden,

Please use this procedure only for confidential cases and for cases which cannot be publicly shared on Community.

https://community.nxp.com/docs/DOC-329745  

BR

Alice

0 Kudos
Reply