MPC8313e-RDB Can´t boot from flash. CW 8.8 (5.9)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC8313e-RDB Can´t boot from flash. CW 8.8 (5.9)

2,005 Views
medina
Contributor III
   Hello,
       I have an MPC8313e-RDB board, USB-TAP along with CW 8.8. and have created a project following this steps:

New->EPPC New Proyect Wizard->Freescale PowerPC EABI Linker-> PowerPC 8313 - 8313RDB->Languages (C)->Codewarrior USB TAP

    I have connected the board to the pc, set SW3 to use USB-TAP, and ran debug version printing to console:

Welcome to CodeWarrior!
system call exception handler


    After having selected target ROM version and pressing MAKE button on CW. I use flash programer to set reset configuration word and the program:

Reset configuration word

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


Target Configuration: Processor 8313 - USB tap - target initialization (\Freescale\CodeWarrior PA V8.8\PowerPC_EABI_Support\Initialization_Files\PQ2\837xRDB_init.cfg) - RAM buffer 0x0 0x6000 - enable logging - Verify target memory writes

Flash configuration: address base 0xFF800000

Erase: All sectors->Erase (wait to "Erase Command Succeeded")->Blank check (wait to "Blank Check Completed Successfully")

Program: ROM.bin (offset 0xFFF00000), RCW.bin (offset 0xFF800000). Verify


       Then I run ROM Version Target on debug and I see PC:0xFFF00100. The program run successful.

Finally, I change the SCR jumper to boot from NOR flash. When the system restart, it access to flash in two block (RCW and program) but the console don't run.

Any advice or suggestion on what is wrong ?

Any will be welcome.

Thank's in advance.

Regards.



Labels (1)
0 Kudos
Reply
1 Reply

383 Views
medina
Contributor III
I have news.

I had done some changes:

RCW: RCWLR a4040000 - RCWHR a4606c00

Software: 8313RDB_init.c

          Swap config register:
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)



          Comment 2 configuration register (If necesary)
    // 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)
*/
With this changes the program runs OK.
It is a bug of codewarrior?

The commented registers have to be changed but the micro can´t do it.


0 Kudos
Reply