SDS32 and PEMicro Programming one flash section erases other programs

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

SDS32 and PEMicro Programming one flash section erases other programs

1,001 Views
rjoycequincy
Contributor I

MPC5748G on custom board, therefore OpenSA cannot be used. Using PEMicro Multilink.

I have boot/init code at 0xFA0000  and the main application is at 0x01000400. as defined in respective linker files for each project.

First I program the init/boot code (Using S32DS2.1 and PEMicro Multilink)   and verify that it will run after POR.

Boot/Init code looks for valid code at 0x01000400 and jumps to it if its valid... 

Then I program the Application code to 0x01000400. It will run from debugger, but when check the memory at 0xFA0000   it is blank. 

Tried each programming step with Debugger and with 'Flash from file... '  

Clearly I am missing a fundamental step to only erase the sectors defined by my linker file etc. 

0 Kudos
Reply
3 Replies

919 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Yes, that it the case for S32DS PE programming. PE will always erase whole flash. So you need to set parameters, in order to prevent flash blocks from erase.

Please have a look at this thread.

https://community.nxp.com/t5/MPC5xxx/flashing-the-DEVKIT-MPC5748G/td-p/1661904

Best regards,

Peter

0 Kudos
Reply

909 Views
rjoycequincy
Contributor I

I am very confused. 

[Edit: the 'flashing the DevKit' link shows a dialog that I cannot find in SDS32-PEMicro]

I only have PEMicro, because the target board is a custom design MPC5748G. 

Can this be done in PEMicro connected to S32DS ? 

Or do I have to create a project  and/or command line sequence that combines the elf files? 

0 Kudos
Reply

888 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I only have PEMicro, because the target board is a custom design MPC5748G.

The tutorial is exactly for PE Micro as other more expensive debuggers offer reprogramming feature.

As the screenshot express. Simply specify the range of memory you wan to prevent in advanced options.

petervlna_0-1690269298630.png

Best regards,

Peter

0 Kudos
Reply