S32DS debug can't erasing flash

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

S32DS debug can't erasing flash

1,859 Views
suomichen
Contributor I

                 

Hello,

     I have a question regarding the S32DS debugger for the MPC5742.

     I used 0x00800000-0x00803fff for dflash.but when i download a new elf file to the chip,i find the flash area did't erased.

    the following is the debugger i configured.

    pastedImage_1.png

   I don't change the advanced options 

         pastedImage_2.png

 

Best regards,

Suomi

Tags (2)
0 Kudos
6 Replies

1,340 Views
jiri_kral
NXP Employee
NXP Employee

Hi Suomi, 

can you please share your elf file or srec file? I'll test it on my board.

Jiri 

0 Kudos

1,340 Views
suomichen
Contributor I

Hi Jiri 

 

Thanks a lot for your reply. the elf file has been uploaded.

0 Kudos

1,340 Views
jiri_kral
NXP Employee
NXP Employee

Thanks for report. I can reproduce it and you are right. It looks like that cflash algorithm doesn't touch dflash area and left data as it is. I'm not sure if it is kind of "feature". I'll do more investigation. 

I use workaround - you can use alternative algorithm located in [YOUR_S32DS_Install]\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\gdi\P&E

pastedImage_1.png

Flashing itself fails because of missing data. But dflash is erased. After that you can remove Alternative Algorithm. I'll let you know if I find better way how to erase dflash area. It looks like that in S32DS is not such option. 

Jiri 

0 Kudos

1,340 Views
新股老菜
Contributor II

hi 

I can't find the option in S32 v1.1 and S32 v2.0

pastedImage_1.png

0 Kudos

1,340 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

S32DS has no version 2.0 for Power PC. Your S32DS version is probably for ARM architecture. 

Jiri

0 Kudos

1,340 Views
suomichen
Contributor I

Thanks a lot for your quickly reply. I tried your method ,it works.Thanks a lot.

Suomi

0 Kudos