Using Target RAM on imx31 with J-Flash.

  • Using Target RAM on imx31 with J-Flash.

    Bosses IMX31 lek_jflash.txtHi,

    I have been trying to use J-Flash ARM 4.35b with our custom hardware.
    It seems to work but when I enable Use target RAM I get the error message

    - ERROR: Timeout while checking target RAM, core does not stop
    - ERROR: Failed to read back target memory

    Changing the size of target RAM downto 2kB gives the error message

    - RAM tested O.K.
    - ERROR: PC of target system has unexpected value after preparing target. (PC = 0x1FFFC00C, CPSR = 0x000000FF, LR = 0x1FFFC159)!
    ---------------------------------------------------------------------- Registers -------------------------------------------------------------------------------------
    PC = 1FFFC00C
    CPSR = 000000FF (System mode, THUMB, FIQ dis., IRQ dis.)

    Current: R0 = 00003CD0, R1 = 00050078, R2 = 00003CD0, R3 = 00003CD0
    R4 = 1FFFC000, R5 = 00003CCC, R6 = 00000098, R7 = 21E836A3
    USR: R8 = FFFFFFFF, R9 = FFFFFFFF, R10 = FFFFFFFF, R11 = 00000001, R12 = E591201C
    R13 = 1FFFC310, R14 = 1FFFC159
    FIQ: R8 = E7075441, R9 = 84489073, R10 = EE195E64, R11 = 74084020, R12 = 8810A423
    R13 = D34AD468, R14 = 880CCC60, SPSR = 00000010
    SVC: R13 = E5912008, R14 = 87F007A0, SPSR = 00000010
    ABT: R13 = 48F03D88, R14 = 1FFFFFEC, SPSR = 00000197
    IRQ: R13 = 904582E1, R14 = 24104EC1, SPSR = 00000010
    UND: R13 = 99440A82, R14 = A0000138, SPSR = 00000010
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    - ERROR: Failed to read back target memory

    Project file attached.

    We have a large external Flash memory so to be able to program the Flash memory target RAM must be used.

    BR
    Bo