S12z Flash Enter an abort

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

S12z Flash Enter an abort

394 Views
mikijt
Contributor I

Hi 

i have got the flash problem while debuging the internel flash with PE, project is in the attachment(CW10.7 the chip is 9s12zvc).

i made some effort:

1.move all flash related func into ram ,as well as interrupt isr.

pastedImage_1.png

pastedImage_2.png

2.moved the interrupt vector into ram:

pastedImage_3.png

pastedImage_4.png

the project stop at 0x150022

pastedImage_5.png

is there something wrong ablout the project?

Labels (1)
Tags (1)
0 Kudos
1 Reply

331 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

Thank you for your code.

At first, the flash memory should be erased. I have tested it in the main function and it works for me, see example below

byte err;

err = IFsh1_EraseSector(0xff1000);
err = IFsh1_SetByteFlash(0xff1000, 0xAA);

I hope it helps.

Best Regards,

Diana

0 Kudos