Saturday, April 21, 2012

Writing Read Configuration Register in Flash of Armadillo-440

    Outport(2, 0xA0012384, 0x60)
                           ~~~~~~(Read Configuration Register content << 1)
    Wait(1)
    Outport(2, 0xA0012384, 0x03)
                           ~~~~~~(Read Configuration Register content << 1)
    Wait(1)
    Outport(2, 0xA0000000, 0xff) // Flash to read mode
    Wait(1)

Flash is Numonyx PC28F256P30BF. To check the flash register contents from debugger, memory map the flash to some other area and write the commands in that. Since, Flash is configured as Read-only in some debuggers, they may not allow direct write. Or, write using the debugger scripts which do not know that the address are is Flash. Make sure that the Cache is configured as Write-Through.

No comments:

Post a Comment