J-link v8 + Coretex-M3 + ext Am29LV128ML don't work

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • J-link v8 + Coretex-M3 + ext Am29LV128ML don't work

    jlink v8, 4.08l driver. target board is stm32f103ze + ext nor (Am29LV128ML).

    project setting - core selected is Ctrotex-M3, init sequence has configured ok. when connect, check core and flash id is ok.

    question (1) : when Use target RAM is selected, all flash operate is failed. error info : Timeout while checking target RAM, core does not stop Failed to read back target memory.

    question (2) : Flash.csv file don't surport Am29LV128ML. why?

    The post was edited 1 time, last by zhanghg ().

  • Hello zhanghg,

    >>question (1) : when Use target RAM is selected, all flash operate is failed. error info : Timeout while checking target RAM, core does not stop Failed to read back target memory.
    Could you please post your Project settings?
    Especially the settings at the "Target Interface" and "CPU" tab?
    Did you ensure that the RAM addr selected at the "CPU" tab is correct (E.g. 0x20000000 for internal RAM)?


    Best regards
    Alex
  • my jflash file

    RAM address setting is ok.

    jflah file :



    AppVersion = 40812
    [GENERAL]
    ConnectMode = 0
    CurrentFile = "F:\STM3210E-EVAL demonstration software\images\STM3210E-EVAL_Demo_NORFlash_V1.1.1_02.hex"
    DataFileSAddr = 0x00000000
    GUIMode = 0
    HostName = ""
    TargetIF = 1
    USBPort = 0
    USBSerialNo = 0x00000000
    [JTAG]
    IRLen = 0
    MultipleTargets = 2
    NumDevices = 0
    Speed0 = 200
    Speed1 = 4800
    TAP_Number = 0
    UseAdaptive0 = 0
    UseAdaptive1 = 0
    UseMaxSpeed0 = 0
    UseMaxSpeed1 = 0
    [CPU]
    CheckCoreID = 1
    ChipName = "Analog ADuC7020x62"
    ClockSpeed = 0x00000000
    Core = 0x030000FF
    CoreID = 0x3BA00477
    DeviceFamily = 0x00000003
    EndianMode = 0
    HasInternalFlash = 0
    InitStep0_Action = "Reset"
    InitStep0_Comment = "Reset and halt target"
    InitStep0_Value0 = 0x00000000
    InitStep0_Value1 = 0x00000000
    InitStep10_Action = "Write 32bit"
    InitStep10_Comment = ""
    InitStep10_Value0 = 0x40021004
    InitStep10_Value1 = 0x00000000
    InitStep11_Action = "Write 32bit"
    InitStep11_Comment = ""
    InitStep11_Value0 = 0x40021004
    InitStep11_Value1 = 0x00000400
    InitStep12_Action = "Write 32bit"
    InitStep12_Comment = ""
    InitStep12_Value0 = 0x40021000
    InitStep12_Value1 = 0x01035083
    InitStep13_Action = "Delay"
    InitStep13_Comment = ""
    InitStep13_Value0 = 0x00000000
    InitStep13_Value1 = 0x00000001
    InitStep14_Action = "Write 32bit"
    InitStep14_Comment = ""
    InitStep14_Value0 = 0x40021004
    InitStep14_Value1 = 0x001D0400
    InitStep15_Action = "Write 32bit"
    InitStep15_Comment = ""
    InitStep15_Value0 = 0x40021004
    InitStep15_Value1 = 0x001D0402
    InitStep16_Action = "Delay"
    InitStep16_Comment = ""
    InitStep16_Value0 = 0x00000000
    InitStep16_Value1 = 0x00000002
    InitStep17_Action = "Write 32bit"
    InitStep17_Comment = "FSMC clock enable"
    InitStep17_Value0 = 0x40021014
    InitStep17_Value1 = 0x00000114
    InitStep18_Action = "Write 32bit"
    InitStep18_Comment = "GPIOD~G clock enable"
    InitStep18_Value0 = 0x40021018
    InitStep18_Value1 = 0x000001FD
    InitStep19_Action = "Write 32bit"
    InitStep19_Comment = "GPIOD config"
    InitStep19_Value0 = 0x40011400
    InitStep19_Value1 = 0x44BB44BB
    InitStep1_Action = "Write 32bit"
    InitStep1_Comment = ""
    InitStep1_Value0 = 0x40021004
    InitStep1_Value1 = 0x00005083
    InitStep20_Action = "Write 32bit"
    InitStep20_Comment = "GPIOD config"
    InitStep20_Value0 = 0x40011404
    InitStep20_Value1 = 0xBBBBBBBB
    InitStep21_Action = "Write 32bit"
    InitStep21_Comment = "GPIOE config"
    InitStep21_Value0 = 0x40011800
    InitStep21_Value1 = 0xBBBBB444
    InitStep22_Action = "Write 32bit"
    InitStep22_Comment = "GPIOE config"
    InitStep22_Value0 = 0x40011804
    InitStep22_Value1 = 0xBBBBBBBB
    InitStep23_Action = "Write 32bit"
    InitStep23_Comment = "GPIOF config"
    InitStep23_Value0 = 0x40011C00
    InitStep23_Value1 = 0x44BBBBBB
    InitStep24_Action = "Write 32bit"
    InitStep24_Comment = "GPIOF config"
    InitStep24_Value0 = 0x40011C04
    InitStep24_Value1 = 0xBBBB4444
    InitStep25_Action = "Write 32bit"
    InitStep25_Comment = "GPIOG config"
    InitStep25_Value0 = 0x40012000
    InitStep25_Value1 = 0x44BBBBBB
    InitStep26_Action = "Write 32bit"
    InitStep26_Comment = "GPIOG config"
    InitStep26_Value0 = 0x40012004
    InitStep26_Value1 = 0x444444B4
    InitStep27_Action = "Write 32bit"
    InitStep27_Comment = "FSMC config"
    InitStep27_Value0 = 0xA0000000
    InitStep27_Value1 = 0x000030DB
    InitStep28_Action = "Write 32bit"
    InitStep28_Comment = "FSMC config"
    InitStep28_Value0 = 0xA0000008
    InitStep28_Value1 = 0x00001059
    InitStep29_Action = "Write 32bit"
    InitStep29_Comment = "FSMC config"
    InitStep29_Value0 = 0xA000000C
    InitStep29_Value1 = 0x10000705
    InitStep2_Action = "Write 32bit"
    InitStep2_Comment = ""
    InitStep2_Value0 = 0x40021004
    InitStep2_Value1 = 0x00000000
    InitStep30_Action = "Write 32bit"
    InitStep30_Comment = "FSMC config"
    InitStep30_Value0 = 0xA0000104
    InitStep30_Value1 = 0x0FFFFFFF
    InitStep31_Action = "Halt"
    InitStep31_Comment = ""
    InitStep31_Value0 = 0x00000000
    InitStep31_Value1 = 0x00000000
    InitStep3_Action = "Write 32bit"
    InitStep3_Comment = ""
    InitStep3_Value0 = 0x40021000
    InitStep3_Value1 = 0x00005083
    InitStep4_Action = "Write 32bit"
    InitStep4_Comment = ""
    InitStep4_Value0 = 0x40021004
    InitStep4_Value1 = 0x00000000
    InitStep5_Action = "Write 32bit"
    InitStep5_Comment = ""
    InitStep5_Value0 = 0x40021008
    InitStep5_Value1 = 0x009F0000
    InitStep6_Action = "Write 32bit"
    InitStep6_Comment = ""
    InitStep6_Value0 = 0x40021000
    InitStep6_Value1 = 0x00015083
    InitStep7_Action = "Delay"
    InitStep7_Comment = ""
    InitStep7_Value0 = 0x00000000
    InitStep7_Value1 = 0x00000001
    InitStep8_Action = "Write 32bit"
    InitStep8_Comment = ""
    InitStep8_Value0 = 0x40022000
    InitStep8_Value1 = 0x00000030
    InitStep9_Action = "Write 32bit"
    InitStep9_Comment = ""
    InitStep9_Value0 = 0x40022000
    InitStep9_Value1 = 0x00000032
    NumInitSteps = 32
    RAMAddr = 0x20000000
    RAMSize = 0x00010000
    UseAutoSpeed = 0x00000001
    UseRAM = 0
  • [FLASH]
    aSectorSel[2048] = 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
    AutoDetect = 0
    BankSelMode = 1
    BaseAddr = 0x64000000
    CheckId = 3
    CustomRAMCode = "F:\stm32f10x_stdperiph_lib_V3.1.0\Project\Example_Src\GPIO_IOToggle\RVMDK\SST39x160x.FLX"
    DeviceName = "Am29LV128ML"
    EndBank = 255
    OrgNumBits = 16
    OrgNumChips = 1
    StartBank = 0
    UseCustomRAMCode = 0
    [PRODUCTION]
    AutoPerformsErase = 1
    AutoPerformsHardLock = 0
    AutoPerformsHardUnlock = 0
    AutoPerformsProgram = 1
    AutoPerformsSecure = 0
    AutoPerformsSoftLock = 0
    AutoPerformsSoftUnlock = 1
    AutoPerformsStartApp = 0
    AutoPerformsUnsecure = 0
    AutoPerformsVerify = 1
    Delay = 0x000001F4
    EraseType = 2
    ProgramSN = 0
    SNAddr = 0x00000000
    SNInc = 0x00000001
    Threshold = 0x00000BB8
    VerifyType = 1