pb-555 initialization issue

vai <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
Hi,
   I programmed a start code(shown below) and compiled it using GNU
crosschain from "Macraigor".
/******************************************************************/
    .text
    .globl __start
    . = 0x100
__start:
    li    r0, 0x3002
    mtmsr     r0
    mtspr 27     r0

    lis    r0,0xfff08000@ha
    ori    r0, r0, 0xfff08000@l
    mtspr    638, r0

    li      r0, 0x0
    mtspr  560, r0

    /* ComCon0 = 65 */
    li    r9, 65
    lis  r10, 0x00305008@ha
    stw r9, 0x00305008@l(r10)

    /* ComCon1 = 0x000c
    li    r9, 0x000c
    lis  r10, 0x0030500a@ha
    stw r9, 0x0030500a@l(r10)

    /* Then output a character
     * ComData = 0x50
     */
    li    r3, 0x50
    lis  r10, 0x0030500e@ha
    stw r3, 0x0030500e@l(r10)
/************************************************************************/

    Then I burn it into internal flash of MPC555, re-plug the power,
there is no character output, and I'm sure I configure the jumper
properly.
    So, can anyone help me?

environment:
axiom pb-555
CW8.1 for mpc5xx
P&E BDM cable

Best regards,
vai


-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.