When I use S32DS IDE to program the S19 file (hardware is P&E), it shows it is useing this file:
here is part of the file content(full content in appendix),what this file actual doing here?
;version 1.13, 03/30/2017, Copyright P&E Microcomputer Systems, www.pemicro.com [560x_512k_cflash]
;device NXP, MPC5604C, 1x32x128k, desc=CFlash
;begin_cs device=$00000000, length=$00080000, ram=$40000000
;end_cs
WRITE_LONG=0000C520/FFF38010/ ;Clear soft lock bit
WRITE_LONG=0000D928/FFF38010/ ;Clear soft lock bit
WRITE_LONG=FF00000A/FFF38000/ ;Disable SWT Watchdog
NO_TIMING_TEST
DOUBLE_BUFFERING
REQUIRES_PROG_VERSION=6.10/
NO_INDIVIDUAL_WRITES
NO_BASE_ADDRESS=00000000/
ADDR_RANGE=00000000/0007FFFF/00/FFFFFFF0/FFFFC000/ ; $00000000-$0007FFFF CFLASH
BLOCKING_MASK=00000007/ ;min 8 byte write
WRITE_LONG=00008000/C3F88000/ ;Reset any prior flash read errors
WRITE_LONG=A1A11111/C3F88004/ ;Send lo/mid key
WRITE_LONG=00100000/C3F88004/ ;Enable blocks for prog/erase no shadow
WRITE_LONG=C3C33333/C3F8800C/ ;Send secondarylo/mid key
WRITE_LONG=00100000/C3F8800C/ ;Enable blocks for prog/erase
;end_cs
;Low Blocks(0..5) 1-32k,2-16k,2-32k,1-128k
USER=LB Low Block Erase 1Block > /00000000/00000005/
;Mid Blocks(0..1) 2-128k
USER=MB Mid Block Erase 1Block > /00000000/00000001/
Hi,
this is an internal file of S32DS which is not supposed to be modified by user.
It just clears the watchdog, it unlocks flash blocks, so they can be programmed/erased (except shadow flash) and then there's s-record which contains pre-compiled flash driver used for programming.
Regards,
Lukas