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.
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
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?
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.
Best regards,
Peter