Hi Alexander,
I've managed to erase the flash after setting S3 to 1011 as you've suggested. Thank you!
Step 4 still doesn't work for me. It complains that 0xFE000000 is not within flash boundaries, which is true as flash starts from 0xFF800000.
I've read somewhere in u-boot sources that 0xFE000000 is the start of NOR flash on this board. Now I'm confused as CW used 0xFF800000 as a base address. Please, help.
Here is the log:
Programming file C:\Users\IEUser\Temp\u-boot.bin
Using Algorithm: amd16x1.elf
======================================================================
=== Target Configuration Settings
=== Connection: CodeWarrior USB TAP
=== Target Processor: 8315
=== Target Init File: C:\Program Files\Freescale\CodeWarrior PA V8.8\PowerPC_EABI_Support\Initialization_Files\PQ2\8315RDB_init.cfg
======================================================================
Connecting......Connected
======================================================================
=== Execute: Program
=== Timestamp: Mon Jun 5 07:14:11 2017
=== Flash Device: S29GL064M(R5,R6,R7)
=== Flash Organization: 4Mx16x1
=== Flash Mem Start Addr: 0xFF800000
=== Flash Mem End Addr: 0xFFFFFFFF
======================================================================
Informing other connection clients that the target is being 'clobbered'.
Loading Flash Device Driver at: 0x00002000
Flash Driver Buffer is at: 0x00003D70
Flash Driver Buffer Size is: 0x0005E290
Done
Initialization Command Succeeded
0x00010000 bytes of Target Memory at 0xFE000000 is not within flash boundaries.
Timestamp: Mon Jun 5 07:14:18 2017