ADUCRF101: Trouble with J-Link : Found SWD-DP with ID 0x2BA01477 ; Fatal error: Session aborted!

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

  • ADUCRF101: Trouble with J-Link : Found SWD-DP with ID 0x2BA01477 ; Fatal error: Session aborted!

    Hello Segger-Support,

    I have trouble with J-Link used from "IAR Embedded Workbench IDE". If i download my
    program, so i get "J_link Dialog" with "Failed to get CPU status after 4
    retries. Retry?" after this i can only abort the current session .
    I use ADUCRF101 (IAR KickStart Kit) evaluation board.

    -- Here is the Debug Log from IAR Workbench IDE :

    Mon Jun 25, 2012 17:17:35: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\AnalogDevices\FlashADUCM3xx.mac
    Mon Jun 25, 2012 17:17:36: JLINK command: ProjectFile = D:\YASSIN\programmes\CD ADUCRF101\Beta_ADuCRF101v0.4\Code\Examples\Radio\settings\Radio_Transmit.jlink, return = 0
    Mon Jun 25, 2012 17:17:36: Device "ADUCRF101" selected (128 KB flash, 16 KB RAM).
    Mon Jun 25, 2012 17:17:36: JLINK command: device = ADUCRF101, return = 0
    Mon Jun 25, 2012 17:17:36: DLL version: V4.42b, compiled Feb 14 2012 15:26:46
    Mon Jun 25, 2012 17:17:36: Firmware: J-Link ARM Lite V8 compiled Feb 8 2012 14:32:07
    Mon Jun 25, 2012 17:17:36: Selecting SWD as current target interface.
    Mon Jun 25, 2012 17:17:36: JTAG speed is initially set to: 32 kHz
    Mon Jun 25, 2012 17:17:36: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 17:17:37: Hardware reset with strategy 7 was performed
    Mon Jun 25, 2012 17:17:37: Initial reset was performed
    Mon Jun 25, 2012 17:17:37: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 17:17:37: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 17:17:39: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 17:17:40: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 17:17:43: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 17:17:44: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 17:17:46: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 17:17:46: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 17:17:51: Fatal error: Session aborted!
    Mon Jun 25, 2012 17:17:51: Failed to load flash loader: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\AnalogDevices\FlashADUCM3xx128K_8K.out
    Mon Jun 25, 2012 17:17:51: Failed to load flash loader: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\AnalogDevices\FlashADUCM3xx128K_8K.flash

    -- and here is the message frm the J-Link control panel log :


    J-Link V4.42b DLL Log
    DLL Compiled: Feb 14 2012 15:26:46
    Logging started @ 2012-06-25 17:17
    TB1F8 000:383 JLINK_Reset() -- Type: 7
    TB1F8 000:958 JLINK_Halt()


    Could you help me resolve this problem ?
    and thanks in advance for your Support.
  • Hi,

    Can you reproduce this problem reliably?
    Could you please give V4.50i of the J-Link DLL a try?
    The version can be found here: segger.com/jlink-software.html

    Without having anything that is reproducible it is nearly impossible to find the root cause for the problem.
    It may be related to the reset that is issued at the beginning of the debug session.


    - Alex
    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 Alex,

    in fact, i have two minikits and the code that i'm using in well functioning in one and not in the other (which show the error below). i retried using the new version that you mentioned but the problem persists. and here is the new Debug log :


    Mon Jun 25, 2012 18:09:11: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\AnalogDevices\FlashADUCM3xx.mac
    Mon Jun 25, 2012 18:09:11: JLINK command: ProjectFile = D:\YASSIN\programmes\CD ADUCRF101\Beta_ADuCRF101v0.4\Code\Examples\Radio\settings\Radio_Transmit.jlink, return = 0
    Mon Jun 25, 2012 18:09:11: Device "ADUCRF101" selected (128 KB flash, 16 KB RAM).
    Mon Jun 25, 2012 18:09:11: JLINK command: device = ADUCRF101, return = 0
    Mon Jun 25, 2012 18:09:11: DLL version: V4.50i, compiled Jun 22 2012 13:07:53
    Mon Jun 25, 2012 18:09:11: Firmware: J-Link ARM Lite V8 compiled Jun 19 2012 14:36:11
    Mon Jun 25, 2012 18:09:11: Selecting SWD as current target interface.
    Mon Jun 25, 2012 18:09:11: JTAG speed is initially set to: 32 kHz
    Mon Jun 25, 2012 18:09:11: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 18:09:12: Hardware reset with strategy 7 was performed
    Mon Jun 25, 2012 18:09:12: Initial reset was performed
    Mon Jun 25, 2012 18:09:12: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 18:09:16: Found SWD-DP with ID 0x2BA01477
    Mon Jun 25, 2012 18:09:30: Fatal error: Session aborted!
    Mon Jun 25, 2012 18:09:30: Failed to load flash loader: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\AnalogDevices\FlashADUCM3xx128K_8K.out
    Mon Jun 25, 2012 18:09:30: Failed to load flash loader: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\AnalogDevices\FlashADUCM3xx128K_8K.flash

    -- and here is the J-Link log :


    J-Link V4.50i DLL Log
    DLL Compiled: Jun 22 2012 13:07:53
    Logging started @ 2012-06-25 18:09
    TAB04 117:338 JLINK_Reset() -- Type: 7
    TAB04 118:579 JLINK_Halt()

    thx for your help.

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

  • hi,

    here attached some screenshot of errors.
    thx.
    Images
    • IAR debug log.PNG

      106.08 kB, 1,208×710, viewed 2,037 times
    • JLink debug log.PNG

      45.04 kB, 555×371, viewed 1,874 times
    • error 1.PNG

      141.02 kB, 1,079×713, viewed 1,859 times
  • Hi,

    Since the problem occurs only on one of the boards there must be a difference regarding the
    application that is running on them or the problem is not always reliably reproducible.
    Can you provide a sample project that allows reproduction of the problem?


    Best regards
    Alex
    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,

    thx Alex for replying.
    here attached a code example that reproduced the error. the same project is well functioning in the other board.
    still have a question : can the flash memory be locked or something similar by downloading a defected code ? (cause all examples that i tried to implement show up the same error !!)
    Files
    • transmit.pdf

      (60.66 kB, downloaded 1,431 times, last: )
  • Hi,

    This sample does not help much since it can not be used as it uses functions from other modules that are NOT included...
    For example:
    WdtGo()
    SysClkCfg()
    DioCfg()
    DioDrv()
    ...


    - Alex
    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.
  • Ahh, in fact it's a code from the examples provided with the miniboard (ftp.analog.com/pub/evalcd/ADuC…ntation/DasLib/index.html ) and it's supposed to be OK !
    but as i said, i tried other codes which i tested with the other board and it didn't work neither. By the way, isn't there any tool or way to erase the flash a part of this IAR -> download -> erase memory 'cause the JLink debug log show the message "Jlink_IsHalted returns Error" million times and it seems to me that the CPU couldn't be stopped or sth like that ! :S

    Best,
  • Hi,

    Hip Hip Holley !! :D finally, it's solved !
    I didn't found the problem in itself but i succeeded to erase the whole Flash memory by using the CM3WSD software.
    PS: i tried to erase the flash memory using IAR -> download -> erase memory and it showed the same error as described upper.
    Thx for all and For you Alex. :thumbup:

    Have a good day !