Also the binary needs to be 10mb and have the 4mb gap in the middle included. Or you need to load PFLASH0 and PFLASH1 separately.
Could you give me some precision about this?
I'm in the same position as you were, but from on a TC1793. I do not understand why the file needs to be 10mb large with a gap or how did you figure it out.
Specs/datasheet list the following memory locations:
– 4 Mbyte Program Flash Memory (PFLASH) with ECC
– 192 Kbyte Data Flash Memory (DFLASH) usable for EEPROM emulation
– 2 x 8 Kbyte Key Flash
– 128 Kbyte Data Scratch-Pad RAM (DSPR)
– 16 Kbyte Instruction Cache (ICACHE)
– 32 Kbyte Instruction Scratch-Pad RAM (PSPR)
– 16 Kbyte Data Cache (DACHE)
– 128 Kbyte Memory (SRAM)
– 16 Kbyte BootROM (BROM)
I have dumped a 4194304 bytes long file (exactly 4MB) for the PFLASH. I'm not sure if there is a better user manual, but I've found the following:
https://www.infineon.com/dgdl/Infineon-TC1793-DS-v01_02-en.pdf?fileId=db3a304333227b5e013368d702f5176b for my case. Are you saying this 4MB file needs to be split at a specific location, such as I can insert it into Ghidra in two times with the following placement:
0x0 - PFLASH0
.
.
0x???? - 4MB GAP (@PFLASH0 + PFLASH0_SIZE)
.
.
0x???? - PFLASH1 (@PFLASH0 + PFLASH0_SIZE + 4MB)
.
.
.
0xA00000 - END (@PFLASH0 + PFLASH0_SIZE + 4MB + PFLASH1_SIZE)
If yes, what is the split location, or put the size of PFLASH 0 and PFLASH 1 differently? Is the above layout correct?
Any help to set up this project so I can start trying to make sense out of it would be greatly appreciated.