JFlash.exe will not enable target power

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

  • JFlash.exe will not enable target power

    Exactly as described here too..
    forum.segger.com/index.php?page=Thread&threadID=1289

    'Power on' in Commander works fine for me too..


    I am using JFlash V6.16g with both the JLink and JTrace PRO. AT91SAM7S256 micro
    Options->Project Settings->Production->Enable target power->checked

    This is reflected in the saved project file (section pasted below)

    [PRODUCTION]
    AutoPerformsErase = 1
    AutoPerformsProgram = 1
    AutoPerformsSecure = 0
    AutoPerformsStartApp = 0
    AutoPerformsUnsecure = 0
    AutoPerformsVerify = 1
    EnableTargetPower = 1
    EraseType = 1
    MonitorVTref = 0
    MonitorVTrefMax = 0x0000157C
    MonitorVTrefMin = 0x000003E8
    OverrideTimeouts = 0
    ProgramSN = 0
    SerialFile = ""
    SNAddr = 0x00000000
    SNInc = 0x00000001
    SNLen = 0x00000008
    SNListFile = ""
    SNValue = 0x00000001
    StartAppType = 0
    TargetPowerDelay = 0x00000014
    TimeoutErase = 0x00003A98
    TimeoutProgram = 0x00002710
    TimeoutVerify = 0x00002710
    VerifyType = 2
  • Hi,


    J-Trace PRO v1 does not support the target supply power feature.

    Reason:
    Normal USB 2.0 ports are limited to 500mA power draw.
    J-Trace PRO v1 requires more power than the J-Link EDU/BASE/PLUS and the J-Link ULTRA/PRO model families, since it features more demanding hardware in order to enable its high-speed trace features.
    We strongly recommend not to use the target supply power feature with J-Trace PRO v1, as it will lead to either shutdown of the J-Trace during high-demand or to over current on the USB-Port.

    While there is no release schedule for the next hardware version of the J-Trace PRO, it will most likely feature USB 3.0, which enables high speed tracing via USB and enough current for both supplying the J-Trace and the target supply power feature.


    Could you please verify that the issue also occurs with J-Link PRO?
    Could please provide us with the S/N of the J-Link PRO?


    Best regards,
    Niklas
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hi, Thanks for the reply.
    Its a black box with "J-Link-ARM" V5.3
    Its date code is 06-18 (YY-MM). I think it pre-dates the -KS versions.
    I have updated the serial number in my profile.

    Although it is not prompting me for a licence, can you confirm it is covered.
    I'm in the process of updating the production code away from JLink.exe scripts to JFlash.exe command line driven. Its is planned for production machine so I want to make sure its legit before I roll out.
    Thanks.
  • Hi Jon,


    Although it is not prompting me for a licence, can you confirm it is covered.

    OK - so now I've specified hex file, its asking for a licence


    Is this still open?
    Which application is asking for a license? J-Flash?

    Best regards,
    Niklas
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • You can mark as solved.
    In summary, I can confirm the J-Link Plus can be self powered where as the J-Trace Pro can't - Reasons stated above.
    My 'licence prompt' issue was solved when I swapped my JLink with a JLink Plus.
    Thanks for your help.

    I did however find that the default project *.flash file needs a few extra lines to setup clocks otherwise the JTrace Pro has problems talking to my AT91SAM7S256 device. I have included below in case you get caught out - as I did..

    This is how if fails:

    - Executing init sequence ...

    - Initialized successfully
    - Target interface speed: 8000 kHz (Auto)
    - ERROR: Memory access timed out @ 00200000 -> JTAG speed too high ?
    Failed to halt CPU for clock frequency detection!
    - ERROR: Failed to measure CPU clock frequency
    - ERROR: Failed to connect.
    Could not determine CPU clock frequency.
    - ERROR: Could not auto program target, not connected

    So.. to fix this for your 'JTrace Pro' you need to set the micro clocks manually within the JFlash project file as shown below.
    This does not seem to be needed with the 'JLink Plus'


    [CPU]
    NumInitSteps = 8
    InitStep0_Action = "Reset"
    InitStep0_Value0 = 0x00000008
    InitStep0_Value1 = 0x00000000
    InitStep0_Comment = ""
    InitStep1_Action = "Write 32bit"
    InitStep1_Value0 = 0xFFFFFD44
    InitStep1_Value1 = 0x00008000
    InitStep1_Comment = "Disable watchdog"
    InitStep2_Action = "Write 32bit"
    InitStep2_Value0 = 0xFFFFFF60
    InitStep2_Value1 = 0x00320300
    InitStep2_Comment = "Set flash wait states"
    InitStep3_Action = "Write 32bit"
    InitStep3_Value0 = 0xFFFFFC20
    InitStep3_Value1 = 0x00000601
    InitStep3_Comment = "Set PLL"
    InitStep4_Action = "Delay"
    InitStep4_Value0 = 0x00000000
    InitStep4_Value1 = 0x000000C8
    InitStep4_Comment = ""
    InitStep5_Action = "Write 32bit"
    InitStep5_Value0 = 0xFFFFFC2C
    InitStep5_Value1 = 0x00191C05
    InitStep5_Comment = "Set PLL and divider"
    InitStep6_Action = "Delay"
    InitStep6_Value0 = 0x00000000
    InitStep6_Value1 = 0x000000C8
    InitStep6_Comment = ""
    InitStep7_Action = "Write 32bit"
    InitStep7_Value0 = 0xFFFFFC30
    InitStep7_Value1 = 0x00000007
    InitStep7_Comment = "Select master clock and processor clock"
    NumExitSteps = 1
    ExitStep0_Action = "Comment"
    ExitStep0_Value0 = 0x00000000
    ExitStep0_Value1 = 0x00000000
    ExitStep0_Comment = " >>>> F7 <<<< TO PROGRAM ANOTHER !!!!"
    UseScriptFile = 0
    ScriptFile = ""
    UseRAM = 1
    RAMAddr = 0x00200000
    RAMSize = 0x00010000
    CheckCoreID = 1
    CoreID = 0x3F0F0F0F
    CoreIDMask = 0xFFFFFFFF
    UseAutoSpeed = 0x00000001
    ClockSpeed = 0x02DB4000
    EndianMode = 0
    ChipName = "Atmel AT91SAM7S256"