000: 62 62 62 62 62 62 62 62 04 04 04 04 04 04 04 04
010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
020: A4 A4 A4 A4 A4 A4 A4 A4 60 60 60 60 60 60 60 60
030: 6C 6C 6C 6C 6C 6C 6C 6C 00 00 00 00 00 00 00 00
RCWLR: 0x62040000
RCWHR: 0xA4606C00
Origin:
// WINDOW 0 - NOR FLASH
lis r5, 0xfe00
ori r5, r5, 0x0000
lis r4, 0xe0000020@ha
stw r5, 0xe0000020@l(r4)
lis r5, 0x8000
ori r5, r5, 0x0018
lis r4, 0xe0000024@ha
stw r5, 0xe0000024@l(r4)
Dest:
// WINDOW 0 - NOR FLASH
lis r5, 0x8000
ori r5, r5, 0x0018
lis r4, 0xe0000024@ha
stw r5, 0xe0000024@l(r4)
lis r5, 0xfe00
ori r5, r5, 0x0000
lis r4, 0xe0000020@ha
stw r5, 0xe0000020@l(r4)
With this changes the program runs OK.// CS0 - NOR FLASH
/*
lis r5, 0x0000 //fe00
ori r5, r5, 0x1001
lis r4, 0xe0005000@ha
stw r5, 0xe0005000@l(r4)
lis r5, 0xfe00
ori r5, r5, 0x6ff7
lis r4, 0xe0005004@ha
stw r5, 0xe0005004@l(r4)
*/