[SOLVED] Jflash - Error connecting to ATSAML11E15A after programming

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

  • [SOLVED] Jflash - Error connecting to ATSAML11E15A after programming

    Hello.

    I am having a problem reconnecting to ATSAML11E15A after programming using JFlash. We are using JFlash in a factory tool to program 2 different micros. I am using JFlash V6.54 and a JLink Plus Compact. I have been able to successfully connect to and program the L11 but I get an error after disconnecting and re-connecting. I can no longer communicate with the chip. I have to erase the chip using ATMEL-ICE and then I am able to connect again. A have no issues when programming with the ATMEL-ICE but we can't use it in our factory tool architecture to program both micros.

    - Connecting via USB to J-Link device 0
    - J-Link firmware: J-Link V10 compiled Oct 22 2019 16:28:15
    - Device "ATSAML11E15A" selected.
    - Target interface speed: 4000 kHz (Fixed)
    - VTarget = 3.340V
    - InitTarget()
    - Cold-Plugging detected
    - Cold-Plugging detected
    - InitTarget()
    - Cold-Plugging detected
    - Cold-Plugging detected
    - ERROR: InitTarget(): PCode returned with error code -1
    - ERROR: Failed to connect.
    Could not establish a connection to target.
    Programming and verifying target (27268 bytes, 3 ranges) ...
    - Connecting ...
    - ERROR: Failed to connect.
    Could not establish a connection to target.
    - ERROR: Could not program and verify target, not connected


    Thanks,
    Darlene
  • Hello Darlene,
    Thank you for your inquiry.
    Such an issue is not known to us.

    Is this reproducible on an evalboard?
    If so, on which?
    Could you provide us with a .hex file to reproduce this issue?

    Best regards,
    Fabian
    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.
  • dacrites wrote:

    The error does not occur on the eval board
    So there's a clue - look at what's different between the eval board and your board.


    dacrites wrote:

    no issues when programming with the ATMEL-ICE
    similarly.

    Also check the configuration of your Atmel-ICE vs the configuration of the JLink.

    One frequent cause of such problems is that your code is doing something to disable the debug link; eg, going to sleep, or putting pins into some alternate mode ...