Pe Micro, preserve memory bug.

cancel
Showing results for 
Search instead for 
Did you mean: 

Pe Micro, preserve memory bug.

239 Views
Contributor II

Hi!

 

Is this "preserve memory range PE Micro" bug solved yet?

 

Or is there any other working solution?

 

Just installed S32DS 2.2, and fully updated (also all PE Micro up to date) but no luck! (Same on S32DS-18)

 

Same problem on 2 computers Win7 64bit...

 

Tested with both OpenSDA and Multilink Universal.

 

I'm using the other SDK EEPROM example. (Referred in top post)

 

Everything seems to work, except when you use "preserve memory range", the pegdbserver always crashes, and can not load/flash the target successfully.

 

With OpenSDA:

Connection from "127.0.0.1" via 127.0.0.1. Connection from port "57803" to 6224
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "57804" to 7224
Searching for FreeRTOS Kernel Symbols...
rsp_qC - qSymbol: 707843757272656E74544342
pxCurrentTCB not found. FreeRTOS analysis not enabled.
Copyright 2018 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32DS_ARM_v2.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_4.5.3.202002032127\win32\pegdbserver_console -device=NXP_S32K1xx_S32K144F512M15 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=OPENSDA -sL
OpenSDA detected - Flash Version 1.19

CMD>RE

Initializing.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS_ARM_v2.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_4.5.3.202002032127\win32\gdi\P&E\supportFiles_ARM\NXP\S32K1xx\freescale_s32k144f512m15_pflash_dflash_eeprom.arp

Initializing.
Initialized.

;version 1.05, 12/03/2019, Copyright 2019 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [s32k144f512m15_x_pflash_dflash_eeprom_rev2]

;device freescale, s32k144f512m15, pflash_dflash_eeprom

;begin_cs device=$00000000, length=$14001000, ram=$20000000

Loading programming algorithm ...
Done.
CMD>PA 0204

Started.
Done.
Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-000019EF ...
Calculated CRC-16 does not match block. (File = $186D, Device = $9EBD)
Current content of flash does not match application to be programmed

CMD>EM // Get stuck here for ~50s.
Preserving data range $10000000-$1000FFFF before erase ...
Done.

Erasing.
Module has been erased.
Reloading programming algorithm ...
done.
Re-programming preserved data range $10000000-$1000FFFF ...
Done.
Error communicating to target processor - try a RESET.

CMD>PM

Programming.
Processing Object File Data ...


.
Programmed.
Error communicating to target processor - try a RESET.

CMD>VC
Error loading CRC-16 algorithm.

Error loading CRC-16 algorithm.
Error loading CRC-16 Algorithm.
Error verifying flash of device
Error occured during Flash programming.

PEmicro GDB Launch Failure : Error during flash programming. Terminating debug session.

pegdbserver crashes...

 

 

With Multilink Universal:

Connection from "127.0.0.1" via 127.0.0.1. Connection from port "57868" to 6224
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "57869" to 7224
Searching for FreeRTOS Kernel Symbols...
rsp_qC - qSymbol: 707843757272656E74544342
pxCurrentTCB not found. FreeRTOS analysis not enabled.
Copyright 2018 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32DS_ARM_v2.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_4.5.3.202002032127\win32\pegdbserver_console -device=NXP_S32K1xx_S32K144F512M15 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILIL
P&E Interface detected - Flash Version 10.42

CMD>RE

Initializing.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS_ARM_v2.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_4.5.3.202002032127\win32\gdi\P&E\supportFiles_ARM\NXP\S32K1xx\freescale_s32k144f512m15_pflash_dflash_eeprom.arp

Initializing.
Initialized.

;version 1.05, 12/03/2019, Copyright 2019 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [s32k144f512m15_x_pflash_dflash_eeprom_rev2]

;device freescale, s32k144f512m15, pflash_dflash_eeprom

;begin_cs device=$00000000, length=$14001000, ram=$20000000

Loading programming algorithm ...
Done.
CMD>PA 0204

Started.
Done.
Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-000019EF ...
Calculated CRC-16 does not match block. (File = $186D, Device = $9EBD)
Current content of flash does not match application to be programmed

CMD>EM // Get stuck here for ~25s.
Preserving data range $10000000-$1000FFFF before erase ...
Done.

Erasing.
Module has been erased.
Reloading programming algorithm ...
done.
Re-programming preserved data range $10000000-$1000FFFF ... // Get stuck here for ~5s.

Error! Last command failed.
Error Erasing flash of device
Error occured during Flash programming.

PEmicro GDB Launch Failure : Error during flash programming. Terminating debug session.

pegdbserver crashes...

Labels (1)
0 Kudos
1 Reply

28 Views
NXP Employee
NXP Employee

Hi, 

as far as I know - PE Micro won't fix it. From PE Micro's understanding this is not a bug. The memory is successfully preserved when DFlash is not partitioned as a backup for EEEPROM - which is technically correct - but useless.

In my opinion (as a regular user) - the memory should be also preserved if it is already partitioned. I understand that it's little bit tricky - Dflash is not directly accessible when partitioned as EEEPROM backup. The only way how to Read/Write data is through FlexRAM. But I think that it is still doable by Flashing algorithm - for example by skipping erase from 0x1000000 to 0x1000FFFF or reading data from FlexRam - Erase flash - re-partition it and write data back to FlexRAM.  

Jiri 

0 Kudos