Monday, December 13, 2010

QorIQ P2020 Development System (P2020DS) : Problems and solutions

  1. "JTAG Clock Speed Change Error. Please Check your JTAG clock speed", error message. P2020DS board is connected to the CodeWarrior USB TAP debugger and when trying to connect the CodeWarrior, the above error message is shown. 
  • Solution: Update the CodeWarrior to the latest version(V8.8.3) and try the sample CodeWarrior project located in the installation folder. For example,
    "C:\Program Files\Freescale\CodeWarrior PA V8.8\PowerPC_EABI_Tools\CodeWarriorTRK\Transport\processor\ppc\serial\P2020DS_serial\P2020DS_serial.mcp" 
  1. Debugger shows irrelevant or inconsistent code at reset vector of the boot flash. In P2020DS, the boot ROM is 128 MB NAND Flash. When the board is reset through the debugger, the PC(Program Counter) points to the instruction at reset vector(address 0xfffffffc) of the boot page. But, the code at the reset vector seems to be irrelevant junk data. Also, the code seems to be changing each time the reset is given. Even though the board boots normally at power-on-reset, the boot code is not visible through the debugger.
  • Solution: Reset the Boot Page Translation Register (BPTR) of P2020 to zero through the initialization script of the debugger. For example, add the following in Codewarrior USB TAP initialization script.  
    # Disable Boot Page Translation Register
    writemem.l 0xe0000020 0x00000000
    For LauterBach debugger, add the following:
    ;Disable Boot Page Translation Register
    Data.Set ANC:iobase()+0x00020 %LONG %BE 0x00000000  
  1. Unable to program or write the boot sector of the NAND flash. Though the other sectors of the flash is programmed, the last boot sector of the flash could not be programmed.
  • Solution: Reset the Boot Page Translation Register (BPTR) of P2020 to zero through the initialization script of the debugger, as shown in the above problem